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

IDOC idenfifier

Former Member
0 Likes
581

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
Read only

Former Member
0 Likes
540

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.

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.

2 REPLIES 2
Read only

Former Member
0 Likes
541

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.

Read only

Former Member
0 Likes
540

Jeg solved the problem with


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