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

Error while creating GR using BAPI

Former Member
0 Likes
356

*I am creating material document using BAPI_GOODSMVT_CREATE .

When I create the Material document using this BAPI I am able to create is successfully when there is no Account assignment category used means it blank at scheduling agreement level.

But if the Account assignment category is given at the scheduling agreement level then BAPI fails and shows the error message u201CNo goods receipt possible for purchase order.

I am using SAP version 4.6C

SPLIT w_file-dln AT '.' INTO w_dd w_mm w_yyyy.

CONCATENATE w_yyyy w_mm w_dd INTO w_dt.

w_gm_hdr-pstng_date = w_dt. " Posting Date

w_gm_hdr-doc_date = sy-datum." Doc Date

w_gm_hdr-pr_uname = sy-uname." User Name

w_gm_cd-gm_code = '01'. "01 Goods Receipts for Purchase Order

w_gm_itm-move_type = '101'.

w_gm_itm-mvt_ind = 'B'.

BAPI Call.

Edited by: Nandkumar Ghodke on May 21, 2010 4:15 PM

Edited by: Nandkumar Ghodke on May 21, 2010 4:16 PM

1 REPLY 1
Read only

former_member206439
Contributor
0 Likes
295

As per i know..

that the account assignment information applies to the item level and not to the schedule line level. This means that the quantities, values, and percentage rates indicate how the account assignment information of an item is assigned. This also applies to service items and purchase orders with invoicing plan

Thanks

Naresh