Monday, February 16, 2015

Activate MIRO Reference Key (Xref3) - Using Substitution and BADI Techniques

A. Below is the step to activate the Reference Key in the  MIRO - Details screen.

1.  Create Implicit Enhancement in program LMR1MF6Q .
2.  Implement below code.
PERFORM modify_fi_subscreen TABLES t_acscr
                                USING  'XREF3'  'ACTIVE'  '1'.

B.1  User exit Activation for Substitution 

1. Execute tcode GCX2 .
2. Change the line with Application Area = GBLS . Change the value Ex. Program to = ZRGGBS000
3. GO to SE38 . Copy the standard program RGGBS000 to ZRGGBS000
4. Create new exit and paste below code.

*       FORM U111                                                                  *
*       Populate XREF3 BSEG-XREF3
FORM u111 USING xref3 TYPE bseg-xref3 .

  DATAl_v_lifnr  TYPE lifnr.
  CHECK sy-tcode EQ 'MIRO'.

*  DATA: field_accit TYPE char18 VALUE '(SAPLMRMP)xaccit[]'.
  DATAfield_invfo TYPE char18 VALUE '(SAPLFDCB)INVFO'.

*  ASSIGN (field_accit) TO .
*  CHECK sy-subrc EQ 0.

  ASSIGN (field_invfoTO .
*  IF bseg-bschl = '31'. " Posting Key.
    xref3 -xref3.


B.2 Step to configure Substitution .

1. This substitution is for  FI checking to save xref3 in BSEG table.
2.  Go to tcode GGB1 - Substitution , Choose Finacial Accounting and Line Item.

3, Create new Substitution  and apply below configuration.

4. Create new Step with selection of BSEG-XREF3

5. Maintain the checking condition . Select Prerequisite icon and choose sy-tcode = 'MIRO'.
6. Choose the Substitution  and key in the Exit name. Activate the Substitution 

C. Activate and Configure for Substitution - User Exit

1. Execute OBBH Tcode - To select the and activate the substitution based on company code.
2. Click new entries for each company code.

D. Display Reference Key(XREF3) in MIR4 transaction

1. Implement BADI - BADI_FDCB_SUBBAS04.
2, Make sure activate all the screen, and hide it (as dummy).
3. There is example of implemetation in BADI - BADI_FDCB_SUBBAS01.
4. Put below code at GET_DATA_FROM_SCREEN_OBJECT method.

METHOD if_ex_badi_fdcb_subbas04~get_data_from_screen_object .

        l_xref3 TYPE bseg-xref3,
        l_aworg TYPE acchd-aworg.


CHECK sy-tcode 'MIR4'.
MOVE ex_invfo-gjahr TO l_aworg.

      i_awtyp            'RMRP'
      i_awref            ex_invfo-belnr
      i_aworg            l_aworg
*     I_AWSYS            =
*     I_AWTYP_INCL       = ' '
*     I_AWTYP_EXCL       = ' '
*     I_BUKRS            = ' '
     I_VALUTYP          '0'
     X_DIALOG           ' '
     t_documents        lt_doc
*     NO_REFERENCE       = 1
*     NO_DOCUMENT        = 2
*     OTHERS             = 3
  IF sy-subrc <> 0.


  SELECT SINGLE xref3 INTO l_xref3 FROM bseg
          WHERE bukrs ex_invfo-bukrs
            AND gjahr ex_invfo-gjahr
            AND belnr -docnr
            AND bschl '31' .

  IF sy-subrc 0.
    me->if_ex_badi_fdcb_subbas04~invfo-xref3 l_xref3.

* fill export parameters from interface attributes
  ex_invfo  me->if_ex_badi_fdcb_subbas04~invfo.



  1. This comment has been removed by a blog administrator.

  2. In the Substitution exit code there is some code missing

    1. Please share what code is missing i;ll update . Thanks

    2. You forgot to add this code.

      Define your user exit in the FORM routine GET_EXIT_TITLES with the correct exit type (EXITS-PARAM).
      exits-name = 'U111'.
      exits-param = c_exit_param_none.
      exits-title = text-100. "Give any suitable text for your exit
      APPEND exits.

  3. I want you, all of you. I want to feel you inside me, deep inside me. I want you to tell me when you’re going to cum, hear you moan my name and fuck me harder. Hey, i am looking for an online sexual partner ;) Click on my boobs if you are interested (. )( .)

  4. This comment has been removed by the author.

  5. Through our portal you will be able to know and learn about the different techniques used for verification. We are growing in scale and serving more new Miro COA customers around the world. Our purpose is to help you make the right choice. So what are you waiting for? Now it is the right to add certificate of authentication to your expensive possession.

  6. Off late these professional Miro Certificate of Authenticity art authentication services have become very much popular. We are coming up in many places around the world. Customers from different places are seeking our help, we are more than happy to help you make the right purchase.