Skip to Content
author's profile photo
Former Member

problem in fbra bdc recording

hi experts,

when i am entering in fbra and i am passing clearing document ,company code and year.

the pop up appears and asks for the confirmation of reversal and the i will enter the date and then save...

but when i am recording it is not displaying the popup and it is getting saved in the same date...

which we dont want to happen .. the pop should be displayed

can any body help me?

with thanks in advance,

syed

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Posted on Oct 07, 2010 at 11:51 AM

    You can try capturing the OK_CODE for the popup programatically.

    e.g

    PERFORM BDC_TABLE_BUILD USING:

    'PROGNAME' 'SCREEN' 'X' '' '',

    FORM BDC_TABLE_BUILD USING LP_PROGRAM LIKE SY-REPID

    LP_DYNPRO LIKE SY-DYNNR

    LP_DYNBEGIN LIKE GT_BDCTAB-DYNBEGIN

    LP_FNAM TYPE C

    LP_FVAL.

    '' '' '' 'BDC_CURSOR' 'SPOP-VAROPTION2',

    '' '' '' 'BDC_OKCODE' 'OPT2'.

    DATA: L_DATAVAL(132) TYPE C.

    CLEAR GT_BDCTAB.

    WRITE: LP_PROGRAM TO GT_BDCTAB-PROGRAM,

    LP_DYNPRO TO GT_BDCTAB-DYNPRO,

    LP_DYNBEGIN TO GT_BDCTAB-DYNBEGIN,

    LP_FNAM TO GT_BDCTAB-FNAM.

    WRITE LP_FVAL TO L_DATAVAL.

    CONDENSE L_DATAVAL NO-GAPS.

    WRITE L_DATAVAL TO GT_BDCTAB-FVAL.

    APPEND GT_BDCTAB.

    ENDFORM.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Oct 07, 2010 at 12:26 PM

    Hi,

    While recording, choose the simulate background mode and check it. You have to set it in the program using CTU_PARAMS.

    Hope it helps.

    Sujay

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi,

      sorry for the late reply.

      As mentioned earlier , record the BDC with simulate backgroun checked on.

      Then in the program add the following.

      OPT-DISMODE = 'N'.
      OPT-UPDMODE = 'S'.
      OPT-NOBINPT = 'X'.
      OPT-NOBIEND = 'X'.
      OPT-DEFSIZE = 'X'.
      CALL TRANSACTION 'FBRA' USING bdcdata  OPTIONS FROM OPT.
      

      with regards,

      Syed