‎2007 Mar 22 4:34 AM
Hi,
Am new to BAPI and i need some suggetions
how to create internal order using
BAPI_INTERNALORDER_CREATE
‎2007 Mar 22 6:02 AM
Arun,
Just Pass the required data as an ordinary Function module.It will create the internal order .
DATA : I_MASTER_DATA like BAPI2075_7,
E_MASTER_DATA like BAPI2075_2,
EXTENSIONIN like BAPIPAREX occurs 0 with header line,
ORDERID like BAPI2075_2-ORDER,
TESTRUN like BAPI0012_GEN-TESTRUN,
SRULES like BAPI2075_6
occurs 0 with header line,
RETURN like BAPIRET2
occurs 0 with header line.
CALL FUNCTION 'BAPI_INTERNALORDER_CREATE'
exporting
I_MASTER_DATA = I_MASTER_DATA
TESTRUN = TESTRUN
importing
E_MASTER_DATA = E_MASTER_DATA
ORDERID = ORDERID
tables
SRULES = SRULES
RETURN = RETURN
EXTENSIONIN = EXTENSIONIN
exceptions
OTHERS = 1
Pls. reward if useful.
‎2007 Mar 22 9:10 AM
CALL FUNCTION 'BAPI_INTERNALORDER_CREATE'
EXPORTING
I_MASTER_DATA = I_MASTER_DATA
TESTRUN = TESTRUN
IMPORTING
E_MASTER_DATA = E_MASTER_DATA
ORDERID = ORDERID
TABLES
SRULES = SRULES
RETURN = RETURN
EXTENSIONIN = EXTENSIONIN
EXCEPTIONS
OTHERS = 1.
Look at the FM IDOC_INPUT_INTERNAL_ORDER_CREA for more info...
Reward if helpful...
‎2011 Sep 15 10:58 AM