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_INTERNALORDER_CREATE Object Class field

RahulKeshav
Active Contributor
0 Likes
1,026

Hi ,,

I want two fields for creating internal order...

Object Class (COAS-SCOPE)

Statistical(COAS-ASTKZ)

I didnt find these two fields in BAPI_INTERNALORDER_CREATE...

Please suggest which field can i use for this....

Thnx

rahul

3 REPLIES 3
Read only

Former Member
0 Likes
646

Hi,

In the BAPI the fields are not available.

But if you see the source code before call to FM KAUF_ORDER_STORE; the customer fields are mapped to structure COAS from the EXTENSIONIN structure.

Try using teh same.

Regards,

Ankur Parab

Read only

0 Likes
646

sorry AP,

i dont have that much time to check ...so plz if you have any specific field or way please suggest...

how to use EXTENSIONIN.....

Read only

Former Member
0 Likes
646

I had the same problem, so I just copy the BAPI_INTERNALORDER_CREATE to ZBAPI_INTERNALORDER_CREATE, and add and import parameter C_ASTKZ like this :

CALL FUNCTION 'ZBAPI_INTERNALORDER_CREATE'
           EXPORTING
             I_MASTER_DATA       = WS_INTORDER
             C_ASTKZ = 'X'
                   .


Then inside the BAPI code, I replaced line 108 109 110 by :


IF ( NOT i_master_data-cctr_posted IS INITIAL ) OR C_ASTKZ = 'X'.
     orext-astkz = 'X'.
   ENDIF.

You can do that for all fields contained in structure OREXT.


This is working perfectly.