Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Posting problem in BAPI : /AFS/BAPI_GOODSMVT_CREATE (MB1C)

$
0
0

Hi,

 

  I am facing a problem when uploading an excel file with this BAPI : /AFS/BAPI_GOODSMVT_CREATE. An error occurs "Enter a sales order for special stock E". I don't know, it a configuration problem. There is no error when manually inputing the same datas through MB1C tcode.

 

   gmcode = 05 - MB1C - Enter Other Goods Receipt

   Fields in gmhead are posting date and document date


call function '/AFS/BAPI_GOODSMVT_CREATE'
   exporting
     goodsmvt_header             = gmhead
     goodsmvt_code               = gmcode
*   TESTRUN                     = ' '
   importing
     goodsmvt_headret            = mthead
*   MATERIALDOCUMENT            =
*   MATDOCUMENTYEAR             =
   tables
     afs_goodsmvt_item           = lt_itabfl
*   GOODSMVT_SERIALNUMBER       =
     return                      = errmsg.

 

Movement typeStock TypeDocument DatePosting DateSO #li.noSpecial StockPlantStor. Loc.Material FG #SizeQuantityUoMRemark
561E05.09.201305.09.20134000003910E3110RM012000034436 C5SHORT SHIP
561E05.09.201305.09.20134000003910E3110RM022000034438 C5SISA PRODUKSI

 

Thanks/Regards,

Charls.


Viewing all articles
Browse latest Browse all 8332

Trending Articles