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: 

IDOC idenfifier

Former Member
0 Kudos

Hi,

We are using BAPI_SALESORDER_CREATEFROMDATA2 and are used the IDOC version.

The problem is that for the online transaction the user want to have a popup, and we do not want it for the idoc processing.

Is there a way to test, if we are processing an idoc so we can skip the popup?

Regards Daniel.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

if the Popup is Designed by you then you can use SY-BATCH and SY-BINPUT parameters and you can avoid the popup.

if sy-batch =  'X' or sy-binput = 'X'.
 "Block popup...
else.
 "Show poup here
endif.

2 REPLIES 2

former_member188685
Active Contributor
0 Kudos

if the Popup is Designed by you then you can use SY-BATCH and SY-BINPUT parameters and you can avoid the popup.

if sy-batch =  'X' or sy-binput = 'X'.
 "Block popup...
else.
 "Show poup here
endif.

Former Member
0 Kudos

Jeg solved the problem with


if SY-CALLD <> 'X'. 
    find screen. 
endif.