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 parameters mismatch problem

Former Member
0 Likes
601

Hi All,

I have been assigned to object wherein i need to insert bapi BAPI_GOODSMVT_CREATE in function module ZQM06_FM_TASK_GOODS_MOVEMENT. The problem is that i need to fill the structure that i can pass it to BAPI but the import parameters of FM ZQM06_FM_TASK_GOODS_MOVEMENT contain structure that is mismatching. I mean to say that the FM is importing VIQMEL data and from that data i need to fill up structure that would be paased to Bapi BAPI_GOODSMVT_CREATE .

As of now i am not able to map data into structure from VIQMEL so is there any FM or BAPI available for which i can pass VIQMEL data and it returnns me sales order data which in turn i can pass it to the specified bapi BAPI_GOODSMVT_CREATE ?

Your response is highly appreciable.

Thanks & Regards,

Parag

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
536

Hi Parag,

There is no any such function module to pass the data from Bapi to normal function modules.

If the structure of the Function modules are different, only way is finding the matching fields of the both function modules.

Check what all are the matching fields and populate internally after calling the Bapi BAPI_GOODSMVT_CREATE fm. within the function module code itself. Then commit your work. It will definitely work.

But increases the program overhead for you populating and checking all the fields. It is the way to solve this issue.

Because BAPI structures some times will not match with standard structures.

First you try to populate the Item data, with structure BAPI2017_GM_ITEM_CREATE. if this is done correctly you can handle the rest.

Regards,

Santosh Kumar M.

2 REPLIES 2
Read only

Former Member
0 Likes
536

hi,

As my understanding the FM is ZQM06_FM_TASK_GOODS_MOVEMENT. ( this is custome FM) so that you can declare the structure like which you want to pass to the bapi and populate the data in to it and pass it to

BAPI_GOODSMVT_CREATE .

Regaurds,

Sree...

Read only

Former Member
0 Likes
537

Hi Parag,

There is no any such function module to pass the data from Bapi to normal function modules.

If the structure of the Function modules are different, only way is finding the matching fields of the both function modules.

Check what all are the matching fields and populate internally after calling the Bapi BAPI_GOODSMVT_CREATE fm. within the function module code itself. Then commit your work. It will definitely work.

But increases the program overhead for you populating and checking all the fields. It is the way to solve this issue.

Because BAPI structures some times will not match with standard structures.

First you try to populate the Item data, with structure BAPI2017_GM_ITEM_CREATE. if this is done correctly you can handle the rest.

Regards,

Santosh Kumar M.