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 with pop-up screens in BDC

Former Member
0 Kudos

I have recorded a transaction in SHDB.

when i run the recording from SHDB, it is running fine,...but after I transfer the recording to a program or function module and then run it, the second screen which is a pop up screen is not getting displayed.

wat can be done?

4 REPLIES 4

FredericGirod
Active Contributor
0 Kudos

Try to make your SHDB with the option : simulate background mode.

Fred

Former Member
0 Kudos

Hi,

If the Popup belongs to a Warning message or a Success or a information message then the BADC program will ignore this

If you run the Program in the Foreground then the POPUP will come, if you run the Program in the background then the Pop's will not displayed,

So, while running this in the background just comment the Popup box code then run it

Regards

Sudheer

Former Member
0 Kudos

Hi,

i think u r working with mm01 or that like tcode.

in that case what ever the tabs u have selected while recording will appear in the program.u don't need to bother about that.in case if u want to select different tabs u need to write the code again as a different program.

rgds,

bharat.

kowong
Participant
0 Kudos

Dear Balaji,

OK, I encountered this before. There are two scenarios here:

1. The screen pop up. (Because this is the first time you get into the transaction for this login session.).

2. The screen will not pop up. (Because this might be the second time or after, you get into the transaction.)

In the second case, because the parameter ID (or what ever SAP's memory is holding) got the value after the fist time entry through the pop up, so it wouldnt pop up again. You have to select it from the menu and enter it if you want to change the value. I believe there is a place for you to change the value.

So, now, come to your BDC. Your BDC records could only handle one of the case.

To cater for both cases, I did a Dummy BDC (which did nothing on the transaction, using the RED Cancel ( 'BDC_OKCODE' '/EEESC'.)button.), fill in everything required, then press cancel button.

Then only, do your actual processing. This time, remember to fill in your value of the pop up window through the menu button to invoke the pop up.

Bellow is my dummy BDC:

&----


*& Form f_dummy_first

&----


  • This routine will execute CJ88 without doing anything.

  • The purpose is to eliminate the popup window to enter

  • controling area. The controlling area will be enter through

  • the button on the manu.

----


  • --> p1 text

  • <-- p2 text

----


form f_dummy_first.

PERFORM dynpro USING :

'X' 'SAPLSPO4' '0300',

' ' 'BDC_CURSOR' 'SVALD-VALUE(01)',

' ' 'BDC_OKCODE' '=FURT',

' ' 'SVALD-VALUE(01)' 'MY01',

'X' 'SAPLKO71' '1000',

' ' 'BDC_CURSOR' 'LKO74-BZDAT',

' ' 'LKO74-PERIO' p_fispd,

' ' 'LKO74-BUPERIO' p_fispd,

' ' 'LKO74-GJAHR' p_fisyr,

' ' 'LKO74-BZDAT' p_budat,

' ' 'LKO74-VAART' '1',

' ' 'LKO74-TESTLAUF' ' ',

' ' 'BDC_SUBSCR'

'SAPLKAOP 0550BLOCK1',

' ' 'LKP74-POSID' ' ',

' ' 'BDC_OKCODE' '/EEESC'.

CALL TRANSACTION c_cj88

USING bdc_tab MODE 'N' UPDATE 'S'.

clear bdc_tab. refresh bdc_tab .

endform. " f_dummy_first

Please suggest if there is any other better solutions.

Good luck....

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong