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_GOODSMVT_CREATE

Former Member
0 Likes
570

Can anyone suggest me how to use BAPI_GOODSMVT_CREATE to receive goods for Mvmt Type 521? I use the following parameters for calling BAPI

Header_Txt ='test01'

Doc_Date = '20060101'

Pstng_Date = '20060101'

Ref_Doc_No = 'test02'

Gr_Gi_Slip_No ='test03'

Gm_Code ='05'

Move_Type ='521'

Plant = '2010'

Move_Reas = ''

Mvt_Ind = ''

Material = 'mymaterial'

Stge_Loc = '5000'

Entry_Qnt =1

Entry_Uom =''

Move_Plant =''

Move_Stloc =''

Orderid = 'MyProd_doc'

Spec_Stock =''

Vendor =''

I logon SAPGUI and posted the GR successfully with Tcode "MB1C".

However, When I run the BAPI, the return code show error:

Message Class: KI

Message NO.: 235

Message:

Account 41016105 requires an assignment to a CO object

Log Number:

Msg Serial NO.:

000000

Message Variable1:

41016105

Message Variable2:

000

Message Variable3:

Message Variable4:

Parameter Name:

GOODSMVT_ITEM

Line:1

Thank a lot!

2 REPLIES 2
Read only

Former Member
0 Likes
494

Nereus,

When you run the t-code on-line, what account number are you using (not 41016105, I would assume)?

The error should be passed onto your FI/CO team. They need to set-up the appropriate CO object/"bucket" for this to function for you.

Read only

0 Likes
494

John Jakabcsin,

Thanks for your reply.

When I run T-code "MB1C" on SAPGUI,I do not need to enter the account number. But when I submit the same data with BAPI calling ,SAP return errors.