‎2009 Jul 03 2:07 PM
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
‎2009 Jul 03 2:29 PM
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
‎2009 Jul 03 2:43 PM
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.....
‎2014 Aug 27 2:30 PM
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.