02-06-2012 1:01 AM
Hi ,
Our ABAP er is using the above BAPI to create BOM for certain material numbers .
However if there is any error on a given line item the FM is unable to show in which line item the error has actually occured .
Is there any way that the FM can throw an error with the exact line item where the error is .
<removed by moderator>
** BAPI for creating PO.
CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
EXPORTING
MATERIAL = LWA_UPLOAD-MATNR
PLANT = LWA_UPLOAD-WERKS
BOM_USAGE = LWA_UPLOAD-USAGE
VALID_FROM = LWA_UPLOAD-VDATE
I_STKO = LI_STKO
TABLES
T_STPO = LI_STPO
* T_DEP_DATA =
* T_DEP_DESCR =
* T_DEP_ORDER =
* T_DEP_SOURCE =
* T_DEP_DOC =
* T_LTX_LINE =
* T_STPU =
EXCEPTIONS
ERROR = 1
OTHERS = 2
Edited by: Thomas Zloch on Feb 6, 2012
02-06-2012 5:44 AM
Hi,
You can use CSAP_MAT_BOM_MAINTAIN.
In the importing parameter "O_STKO " , you will come to know if there is any issue while uploading.
Please try and check.
Regards,
Nagaraj
02-06-2012 5:35 AM
Hi,
Check the bellow link which is some what related to your post.
Regards,
Goutam Kolluru.
02-06-2012 5:44 AM
Hi,
You can use CSAP_MAT_BOM_MAINTAIN.
In the importing parameter "O_STKO " , you will come to know if there is any issue while uploading.
Please try and check.
Regards,
Nagaraj