‎2012 Nov 15 11:46 AM
hi friends ,
i have created inspection plan using "BAPI_INSPECTIONPLAN_CREATE",it not showing no error .it also return group number .But when i see in QP03 .its not show the values
i have entered the following fields "TASK_LIST_USAGE","PLANT","TASK_LIST_STATUS","TASK_MEASURE_UNIT","LOT_SIZE_TO","MATERIAL""PLANT", i have entered these values directly run the bapi and entered manually in that bapi structure.
kindly help me on this
Thanks in Advance
Vignesh
‎2012 Nov 15 12:39 PM
Make sure you run CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' in sequence.
Check http://wiki.sdn.sap.com/wiki/display/ABAP/Function+Module+Test+Sequence
‎2012 Nov 16 5:08 AM
Actually i'm creating Inspection plan by directly executing "BAPI_INSPECTIONPLAN_CREATE" I have entered following values in table structure
TASK-Valid-From Date
TASK-Task list usage
TASK-Plant
TASK-Status
TASK-Task list unit of measure
TASK-To Lot Size
MATERIALTASKALLOCATION-Material Number
MATERIALTASKALLOCATION-Plant
when executing the bapi i'm getting group number and group counter .But when i checking in QP03 it shows group number does not exist .
Am i Missing any mandatory value for this bapi .?
I didnt use Zprogram for this .
All i need is i need to update Status,Usage,To lot size field for the material .thats why i'm using this bapi .any other bapi for update these field ?
‎2012 Nov 15 2:39 PM
Yes, you should use 'BAPI_TRANSACTION_COMMIT'.
Refer to below page in case you are facing issues.
SAP Community Network Wiki - Code Gallery - ABAP Program to upload QM Inspection Plan Using BAPI
‎2012 Nov 16 5:10 AM
Actually i'm creating Inspection plan by executing "BAPI_INSPECTIONPLAN_CREATE" I have entered following values in table structure
TASK-Valid-From Date
TASK-Task list usage
TASK-Plant
TASK-Status
TASK-Task list unit of measure
TASK-To Lot Size
MATERIALTASKALLOCATION-Material Number
MATERIALTASKALLOCATION-Plant
when executing the bapi i'm getting group number and group counter .But when i checking in QP03 it shows group number does not exist .
Am i Missing any mandatory value for this bapi .?
All i need is i need to update Status,Usage,To lot size field for the material .thats why i'm using this bapi .any other bapi for update these field ?
‎2012 Nov 16 6:08 AM
Again, use bapi_transaction_commit and refer to the link I have given.
‎2012 Dec 04 9:08 AM