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: 

How to create internal order using bapi_internalorder_create

Former Member
0 Kudos

Hi,

Am new to BAPI and i need some suggetions

how to create internal order using

BAPI_INTERNALORDER_CREATE

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

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...

Former Member
0 Kudos

This message was moderated.