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

BAPI and IDOC

Former Member
0 Likes
357

Hi ,

I am calling IDOC from BAPI .

IDOC is giving popup saying 'IDOC created' .

ex: like below

from BAPI : ZBAPI_GIT_PAT_SCRN_SAV

CALL FUNCTION 'ZBAPI_GIT_PAT_IDOC_SEND' EXPORTING

I_KUNNR_GIT = G_NEXT_DOC_NUM.

if i am calling the above one in background task it is not creating the idoc ..

Ex like below

CALL FUNCTION 'ZBAPI_GIT_PAT_IDOC_SEND' IN BACKGROUND TASK

EXPORTING

I_KUNNR_GIT = G_NEXT_DOC_NUM.

please give me suggestions on this .

Cheers,

Srinivas P

9886580658

1 REPLY 1
Read only

Former Member
0 Likes
331

This BAPI is a copy from a standard. Check that the ZBAPI contais all the upgrades of the original one.

Often we create a function or a BAPI too for make improvements in the code .In the future SAP changes the code of the BAPI and our BAPI code with the improvements is deprecated