‎2011 Jul 13 11:19 AM
Hai,
I have a task to write off vendor stock , To achieve this i am using BAPI_GOODSMVT_CREATE.
I tried executing thi sbapi in se37 its works fine and generates a Material Document Number.
But the same BAPI with same fields executed in a program gives me the following error......
Fld selectn for mvmt type 702 / acct 74016601 differs for Vendor goods movement (014)
I have gone through many forums, every one points to some functional setting in OMJJ..
I doubt ho wit could execute sucessfull in se37 and not through a program .
Thanks,
Jeevan...
‎2011 Jul 13 11:40 AM
Hi Kumar,
Please check whether you are passing the input data with correct data type declared.
Also check the data which you are passing should contain preceding zeros for account number.
Thanks & Regards,
Ramya
‎2011 Jul 13 11:49 AM
Hai Ramya,
Account number I am not pssing, It may be checking in runtime.
And all data is correctly updated into the bapi parameters same as done in se37 ...
Thanks,
Jeevan.
‎2011 Jul 13 1:24 PM
Hi ,
I think this may i saw in one of the thread
Goto SE38 and execute the program RM07CUFA
In the input screen , enter the movement type as 702 and give ur G/L account and the company code.
Then execute.
You will get a red line highlited for the fields for which the field selection mismatch is there.
In your case, the vendir goods movement is the mismatch field.
So click on the movement type or the field status group for the G/L in the top heading level. It will lead you to the field selection screen.
In the materials management section, you can see the field 'vendor goods movement'. Make it display.
Now save the entries and exit and then check the transaction.
Cheers
‎2011 Jul 14 6:24 AM
Go to OMWB enter movement type 702 check the account assignments in simulation mode for material. Then take that material, look at it's stock for example if it's already 100 qty in a particular storage location using MMBE, then go to MI10 then post an PI document less than that qty ex 80 so that it creates a movement type 702, then note down the Material Document number, go to MB03 and go to Accounting documents and then accounting document detail. Look at what posting key and account assignment it's posting. Use that account assignment in your BAPI.
‎2011 Jul 14 11:44 AM
Hi Kumar,
Can u please try to use conversion_exit_alpha_input function from vendor number etc.
when u try to run bapi from se37 it converts itself.
but in program u have to convert it before sending.
Best Regards,
Burak