Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem in fbra bdc recording

syed_ibrahim5
Active Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Sandeep_Kumar
Advisor
Advisor
0 Kudos

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.

9 REPLIES 9

Sandeep_Kumar
Advisor
Advisor
0 Kudos

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.

0 Kudos

hi sandeep,

thanks for the quick reply....i will try that ..

but can you please clear me on why it is not showing the pop up during recording..

thanks in advance...

syed

0 Kudos

may be the pop is not supported during recording.i know for sure that gui controls can differ for tcodes .

for recording the gui may change and probably you need to check what is the procedure without pop up to complete your task.

check in sap market place if there is some other tcode to handle the same requirement if you dont find any then there must be procedure adapted..

0 Kudos

thanks sniper for clearing me.

with regards,

syed

Former Member
0 Kudos

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

0 Kudos

thanks a lot sujay...

0 Kudos

Hi Syed,

I am having a similar requirement for mass reversal wherein the FBRA BDC is required. Could you please guide me on how this issue has been solved.

Thanks.

Edited by: vineela sravanthi on Mar 14, 2011 6:24 AM

0 Kudos

Hi Syed,

I am having a similar requirement for mass reversal wherein the FBRA BDC is required. Could you please guide me on how this issue has been solved.

Thanks.

0 Kudos

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