‎2022 Nov 16 12:41 PM
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'.
‎2022 Nov 16 12:43 PM
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
‎2022 Nov 16 12:50 PM
Hello tanisha24
Unmark the following field in GUI options:

That should prevent okcode popups.
See SAP Help for details: Visualization
Best regards
Dominik Tylczynski
‎2022 Nov 16 12:56 PM
Hello 3a9e4ce873a94034b33dc62b0ce600ee sir,
I tried doing this, but even after unchecking the box, the pop-up is still coming up.
‎2022 Nov 16 12:51 PM
You should post the content of IT_BDC
it looks like you run the BDC in foreground
‎2022 Nov 16 2:21 PM