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

Issue regarding BAPI_INSPECTIONPLAN_CREATE

Former Member
0 Likes
506

Dear Experts,

I am creating a inspection plan through the BAPI mentioned in the subject and getting the following errors :

1. Specify a valid data import mode for master inspection characteristic

please help resolve the issue....

Thanks & Regards,

Ramesh Manoharan

2 REPLIES 2
Read only

Former Member
0 Likes
405

closing the thread

Read only

Former Member
0 Likes
405

HI

Sample code can be useful to you

data: wa_test_run type bapiflag,

wa_group like BAPI1191_TSK_C-TASK_LIST_GROUP,

wa_gr_counter like BAPI1191_TSK_C-GROUP_COUNTER.

  • Determine Group and Group Counter.

perform get_group_groupcounter.

IF V_EXIT = 'X'.

EXIT.

ENDIF.

*call BAPI

CALL FUNCTION 'BAPI_INSPECTIONPLAN_CREATE'

EXPORTING

TESTRUN = wa_test_run

  • PROFILE = c_profile

IMPORTING

GROUP = wa_group

GROUPCOUNTER = wa_gr_counter

TABLES

TASK = t_task

MATERIALTASKALLOCATION = t_matalloc

OPERATION = t_oper

  • REFERENCEOPERATION =

  • PRODUCTIONRESOURCE =

INSPCHARACTERISTIC = t_insp_char

TEXTALLOCATION = t_text_all

TEXT = t_text

RETURN = t_return.

call function 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = t_wait

IMPORTING

return = wa_return.