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_INSPECTIONPLAN_CREATE

Former Member
0 Likes
3,296

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

6 REPLIES 6
Read only

former_member189779
Active Contributor
0 Likes
2,111

Make sure you run CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' in sequence.

Check http://wiki.sdn.sap.com/wiki/display/ABAP/Function+Module+Test+Sequence

Read only

0 Likes
2,111

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 ?

Read only

Former Member
0 Likes
2,111

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

Read only

0 Likes
2,111

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 ?

Read only

0 Likes
2,111

Again, use bapi_transaction_commit and refer to the link I have given.

Read only

Former Member
0 Likes
2,111

Closed!!