*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