Application Development and Automation 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: 
Read only

BDC OK Code

Tanishaa
Participant
0 Likes
2,322

Hi all,

There is a scenario where PA40 needs to be called using BDC. For this, the initial screen has to be skipped and the Organizational Assignment should open up. All this is working for me but the only issue is that when it is executed, the OK Code dialog is appearing in the window and only after I press OK, does it go away and present the Organizational Assignment screen.

Does anyone know how to get rid of the OK Code and directly get to the Org Assignment screen?

P.S. I am calling it using mode 'E'.

5 REPLIES 5
Read only

Tanishaa
Participant
0 Likes
2,238

PA40 is being called in the following manner:

CALL TRANSACTION 'PA40' USING lt_bdc MODE 'E' MESSAGES INTO lt_messages.

Here, lt_bdc contains all the information to call the required screen

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
2,238

Hello tanisha24

Unmark the following field in GUI options:

That should prevent okcode popups.

See SAP Help for details: Visualization

Best regards

Dominik Tylczynski

Read only

0 Likes
2,238

Hello 3a9e4ce873a94034b33dc62b0ce600ee sir,

I tried doing this, but even after unchecking the box, the pop-up is still coming up.

Read only

FredericGirod
Active Contributor
0 Likes
2,238

You should post the content of IT_BDC

it looks like you run the BDC in foreground

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,238

Could you try something like

                ctu_params-dismode = 'E'.
                ctu_params-nobinpt = abap_true.
                ctu_params-nobiend = abap_true.
                CALL TRANSACTION 'PA40' USING bdcdata OPTIONS FROM ctu_params.