Goods movemets for negative quantity (BAPI_GOODSMVT_CREATE)
Hi gurus,
I am posting goods movements with function BAPI_GOODSMVT_CREATE. (with BWART 101)
Is it possible create goods movemets for negatives quantity?
Thanks in advance
an you explain the need & logic to post a 101 mvt with -ve qty???
Regards,
I really need to post a movemetn with negative quantity. It is not necesary that type was 101.
I am posting movemetns 101 and this is ok, but I have an speciall movement that I have to post with negative quantity
Regards,
Similar Messages
-
Partial Goods Receipt for Inbound Delivery
Hello Frends,
We have a requirement to generate partial goods receipt against Inbound delivery created in Intercompany scenarios, however when we analzed there two alternative ways possible -
1. Goods Receipt in Inbound Delivery - Transaction VL32N : In this transaction,ssytem allows goods receipt for complete quantity but not for partial quantity
2. Goods Receipt reference to Inbound Delivery - Transaction MIGO : In thsi transaction, there is a provision to generate partial goods receipt however system not updating the status in inbound delivery document.
In this regard, requesting your support on what is possibility to fulfill our requirement, is there any standard SAP approach for this.
Appreciate your support. Thanks
Best Regards,
GouthamHi,
Thanks for your quick reply..
I have a outbound delivery with 100 EA, now system automaticallly generates a Inbound delivery for 100EA using output message. Now we need to generate partial goods receipt for the inbound delivery, mean first 20, then 40 and the remaing.
What are the best practices available since when I check from the Inbound delivery,we cannot make partial goods receipt.
Best Regards,
Goutham -
Hi
We are creating STO without delivery. Goods issue (mvt type 351) for STO is posted via portal using BAPI.
We then want to post goods receipt for full quantity using movt type 101. Is there any std program available to be used in batch job to post goods receipts for STO? This way we will be able to do auto goods receipts.
Any help will be highly appreciated.
Thanks
SanjayHi,
Check the following limks hope it will help you...
STO Process Automation
http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b90dc43ad11d189410000e829fbbd/frameset.htm
Regards,
Udaya. -
ML81N Negative Quantity Posting for Credit or Difference Adjustments.
ECC 5.0 - DIMP
This is a VERY, VERY common situation at nearly all companies where a credit or small difference may occur between the invoice amount and the SES. Reversing / canceling and reentering documents, along with all of the additional accounting documents created is not an appropriate option.
=========================
I have a situation with Service Entry Sheets where a vendor delivers services for a PO line item. There can be MANY service entries, and MANY invoices for a single PO Line item.
Invoices are posted against the open GR SES amount on the PO Line Item and not specifically to the service entry sheet. As a result there may be more than one invoice tied to a single service entry sheet. The reversal option would requie
When credits come in, or when vendor discounts are taken the SES amount does not match but there is a need to ensure that the SES amount matches the vendor credit amount (whether credit memo or discounts taken).
NUMEROUS SAP OSS Notes say that Negative Service Entry Sheet Amounts are possible, and in the first step I even get an SE042 warning message about the negative quantity. However, when I press ENTER to go past the warning I then get messgae SE396 as a hard error and the dialog box for the error has JUST an exit button causing the entire transaction to exit the process.
Has anyone ever worked successfully with negative service entry sheet quantities?
If so, what were your lessons learned?
Here are some of the notes I have reviewed, and the ability to do the negative SES quantity goes back to 4.6:
365648
375799
411262
455707
1068156
1166693Hi Bill,
If you try to save an SES with ONLY a negative quantity you will receive
the following error Value of specs. less than zero (function cannot be
performed) Message no. SE396.
You can enter negative VALUES based on the
following rules:
The service specifications contain lines with negative values.
Service lines with negative values are only allowed if the following
conditions are fulfilled:
The total value of the specifications is positive.
The total value of each account assignment is positive.
Please see other notes attached.
354903 Postings: Invoices for services
499575 FAQ: Invoice verification/goods receipt in service
1174830 FAQ: Invoice cancellation for services
Regards,
Edit -
Goods receipt for subcontracting order! BAPI_GOODSMVT_CREATE
I wanna use BAPI "BAPI_GOODSMVT_CREATE" to create goods receipt for subcontracting order.
But it says that this combination is not possible. Combination of my movement type and this BAPI.
What can i do to solve it?
thanks in advance.>
Julia Nikiforva wrote:
> I wanna use BAPI "BAPI_GOODSMVT_CREATE" to create goods receipt for subcontracting order.
> But it says that this combination is not possible. Combination of my movement type and this BAPI.
>
> What can i do to solve it?
>
> thanks in advance.
Might work
report zbapi_goodsmovement.
parameters: p-file like rlgrap-filename default
'c:\sapdata\TEST.txt'.
parameters: e-file like rlgrap-filename default
'c:\sapdata\gdsmvterror.txt'.
parameters: xpost like sy-datum default sy-datum.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
data: begin of pcitab occurs 100,
ext_doc(10), "External Document Number
mvt_type(3), "Movement Type
doc_date(8), "Document Date
post_date(8), "Posting Date
plant(4), "Plant
material(18), "Material Number
qty(13), "Quantity
recv_loc(4), "Receiving Location
issue_loc(4), "Issuing Location
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
del_no(10), "Delivery Purchase Order Number
del_item(3), "Delivery Item
prod_doc(10), "Production Document No
scrap_reason(10), "Scrap Reason
upd_sta(1), "Update Status
end of pcitab.
call function 'WS_UPLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
loop at pcitab.
itab-move_type = pcitab-mvt_type.
itab-mvt_ind = 'B'.
itab-plant = pcitab-plant.
itab-material = pcitab-material.
itab-entry_qnt = pcitab-qty.
itab-move_stloc = pcitab-recv_loc.
itab-stge_loc = pcitab-issue_loc.
itab-po_number = pcitab-pur_doc.
itab-po_item = pcitab-po_item.
concatenate pcitab-del_no pcitab-del_item into itab-item_text.
itab-move_reas = pcitab-scrap_reason.
append itab.
endloop.
loop at itab.
write:/ itab-material, itab-plant, itab-stge_loc,
itab-move_type, itab-entry_qnt, itab-entry_uom,
itab-entry_uom_iso, itab-po_number, itab-po_item,
pcitab-ext_doc.
endloop.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = gmcode
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ mthead-mat_doc, mthead-doc_year.
perform upd_sta.
endif.
endif.
FORM UPD_STA *
form upd_sta.
loop at pcitab.
pcitab-upd_sta = 'X'.
modify pcitab.
endloop.
call function 'WS_DOWNLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
endform. -
'Maintain serial numbers for total quantity error in bapi_goodsmvt_create
HI Experts,
I am doing a goods movement programatically by using BAPI_GOODSMVT_CREATE.
Though I am passing the serial no. for the document item still I am getting an error: 'Maintain serial numbers for total quantity'.
My code goes like this:
*-- Read all the items for the item category belonging to the plant
loop at lt_lips into lw_lips where pstyv is not initial.
*-- Process the goods movement - Fill the data
lw_gmvt-material = lw_lips-matnr.
lw_gmvt-plant = lw_cat-werks.
lw_gmvt-stge_loc = lw_cat-lgort.
lw_gmvt-batch = lw_lips-charg.
lw_gmvt-move_type = lw_cat-bwlvs.
lw_gmvt-customer = <st_xvbpa>-kunnr.
lw_gmvt-s_ord_item = lw_lips-posnr.
lw_gmvt-entry_qnt = lw_lips-lfimg.
lw_gmvt-entry_uom = lw_lips-meins.
lw_gmvt-entry_uom_iso = lw_lips-meins.
lw_gmvt-ref_doc = xlikp-vbeln.
lw_gmvt-quantity = lw_lips-lfimg.
lw_gmvt-base_uom = lw_lips-meins.
append lw_gmvt to lt_gmvt.
clear: lw_gmvt.
BOC for serial numbers
if lt_ser02 is not initial and lt_objk is not initial.
clear: lw_ser02,
lw_objk.
read table lt_ser02 into lw_ser02 with key sdaufnr = cvbak-vbeln
posnr = lw_lips-posnr
sd_postyp = lw_lips-pstyv binary search.
if sy-subrc = 0.
read table lt_objk into lw_objk with key obknr = lw_ser02-obknr binary search.
if sy-subrc = 0.
*-- Check if serial number is populated
if lw_objk-sernr is not initial.
*-- Fill the serial number table for BAPI movement
clear: lw_sno.
lw_sno-matdoc_itm = lw_lips-posnr.
lw_sno-serialno = lw_objk-sernr.
append lw_sno to lt_sno.
endif. "Serial number not initial
endif. "OBJK read
endif. "SER02 read
endif. "SER02 and OBJK is not initial
EOC for serial numbers
endif. "Category table read
clear: lw_cat, lw_lips.
endloop.
*-- Execute the BAPI only if item table is filled on the above condition
if lt_gmvt is not initial.
*-- Fill the header details
lw_header-pstng_date = xlikp-erdat.
lw_code-gm_code = lc_03.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = lw_header
GOODSMVT_CODE = lw_code
IMPORTING
MATERIALDOCUMENT = lv_mblnr
MATDOCUMENTYEAR = lv_mjahr
TABLES
GOODSMVT_ITEM = lt_gmvt
GOODSMVT_SERIALNUMBER = lt_sno
RETURN = lt_return.
Please suggest.
Regards,
Sangeeta.Hi Banerjee,
Actually we are trying to use the same bapi from se37, we are passing all the details which is required to process the bapi_goodmvt_create. But still the bapi returning the same error what sangeeta got in the above. Can you please guide me how to achieve this.
how the values has to pass to the Serial Number?
What exactly meant by Counter Values ?
Regards,
Siva -
Maintain serial number for total quantity" error in BAPI_GOODSMVT_CREATE
Hi!
I also encountered the error "Maintain serial number for total quantity" in using BAPI_GOODSMVT_CREATE .
In retrieving the serial number, I use this code:
Select all
READ TABLE l_it_ser03 ASSIGNING <ser03> WITH KEY mblnr = <gm_items>-mat_doc
mjahr = <gm_items>-doc_year
zeile = <gm_items>-matdoc_itm.
IF sy-subrc is INITIAL.
MOVE:
<gm_items>-matdoc_itm TO l_wa_goodsmvt_sernum-matdoc_itm,
<ser03>-sernr TO l_wa_goodsmvt_sernum-serialno.
APPEND l_wa_goodsmvt_sernum TO l_it_goodsmvt_sernum.
ENDIF.
And then i pass the l_it_goodsnvt_sernum to BAPI_GOODSMVT_CREATE.
The error shows up whenever i tried to execute a PO having the serialised parts from the Goods Issue, but if the GI has no serialized part, the program works well.
Please, please help.
Thank you.may i know how you solve the issue ?
-
Negative quantity not allowed for Put Away Planned
Dear Experts,
I'm trying to activate the PDI document but the system show the error message: Negative quantity not allowed for Put Away Planned.
I was looking the document flow from the item 10 and I saw there is one task was created with quantity "1 box" and the same document was cancelled but the quantity "2 box" was cancelled. I believe because of this is happening the error.
All items from my HU is with the same problem, duplicate the quantity during canceling.
Somebody can give me advice how fix it.
I found a SAPNote but Note 1674037:Negative Put Away Planned quantity (PWP) due to "Store HUs" but I need a workaround to fix my actual PDI and finish the process.
Regards,
Alan MattosHi Petr,
I checked the transaction SMQ2 and I dont have anything stuck there. Then I tried to change de deliveryquantity but the field quantity isn't available to change. My PDI document already been the Goods Receipt Status "Completed". I try to reverse this document and the system show the message: Delivery is locked (Posting Not Possible). I believe its happening because the PDI isn't active.
Do you have other idea ???
Thank you a lot for your help. -
Call BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order
Hi,
I'm calling the bapi BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order, but the following code doesn't work. It doesn't give me any kind of error message but it does nothing as well...
Can anyone help me please?
Thank You
Hugo
Code
DATA: wa_goodsmvt_header LIKE bapi2017_gm_head_01,
wa_goodsmvt_code LIKE bapi2017_gm_code,
wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
wa_goodsmvt_header-pstng_date = SY-DATUM.
wa_goodsmvt_header-doc_date = SY-DATUM.
wa_goodsmvt_header-ref_doc_no = '4500000020'.
wa_goodsmvt_code-gm_code = '01'. "Goods receipt for purchase Order
it_goodsmvt_item-stge_loc = 'BPF2'.
it_goodsmvt_item-move_type = '101' .
it_goodsmvt_item-entry_qnt = 17.
it_goodsmvt_item-entry_uom = 'KG'.
it_goodsmvt_item-mvt_ind = 'B'.
it_goodsmvt_item-po_number = '4500000020'.
it_goodsmvt_item-po_item = '00010'.
it_goodsmvt_item-material = '50'.
APPEND it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_header
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = wa_bapi2017_gm_head
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_return.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ 'Ok'.
endif.
endif.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ' '.Hi,
Thank you for the asnwer! I'm a rookie at ABAP so please forgive my stupid questions
I've changed the code to:
DATA: wa_goodsmvt_header LIKE bapi2017_gm_head_01,
wa_goodsmvt_code LIKE bapi2017_gm_code,
wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
wa_goodsmvt_header-pstng_date = SY-DATUM.
wa_goodsmvt_header-doc_date = SY-DATUM.
wa_goodsmvt_header-ref_doc_no = '4500000020'.
wa_goodsmvt_code-gm_code = '01'. "Goods receipt for purchase Order
it_goodsmvt_item-plant = 'BP01'.
it_goodsmvt_item-stge_loc = 'BPF2'.
it_goodsmvt_item-move_type = '101' .
it_goodsmvt_item-entry_qnt = 10.
it_goodsmvt_item-entry_uom = 'KG'.
it_goodsmvt_item-mvt_ind = 'B'.
it_goodsmvt_item-po_number = '4500000020'.
it_goodsmvt_item-po_item = '10'.
it_goodsmvt_item-material = '50'.
APPEND it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_header
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = wa_bapi2017_gm_head
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_return.
write:/ it_return-message.
And the return message is : Material document data and PO data do not match (Material)
Any idea of what might be the problem?
Thanks -
Goods Receipts for Purchase Order using BAPI_GOODSMVT_CREAT
Hi experts,
I am working on the a program where am generating Goods Receipts for Purchase Order. the BAPI_GOODSMVT_CREAT returns an error saying "Material 6003022 not maintained in plant 1001"
Can any one assist? is there a field I may be missing?
Here is a sample code.
DATA: gm_header TYPE bapi2017_gm_head_01.
DATA: gm_code TYPE bapi2017_gm_code.
DATA: gm_headret TYPE bapi2017_gm_head_ret.
DATA: gm_item TYPE TABLE OF bapi2017_gm_item_create WITH HEADER LINE.
DATA: gm_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: gm_retmtd TYPE bapi2017_gm_head_ret-mat_doc.
CLEAR: gm_return, gm_retmtd.
REFRESH gm_return.
Setup BAPI header
"data
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '02'.
" MB1A * Write 971 movement to table CLEAR GM_ITEM.
MOVE '101' TO gm_item-move_type .
" MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
MOVE '6003022' TO gm_item-material.
MOVE '10' TO gm_item-entry_qnt.
MOVE 'EA' TO gm_item-entry_uom.
MOVE '1001' TO gm_item-plant.
MOVE '' TO gm_item-stge_loc.
MOVE '0901' TO gm_item-move_reas.
" MOVE '4500006877' TO GM_ITEM-WBS_ELEM.
" MOVE '0020' TO GM_ITEM-VAL_WBS_ELEM.
MOVE '0020' TO gm_item-deliv_numb.
MOVE '4500006881' TO gm_item-po_number.
MOVE '0010' TO gm_item-po_item.
APPEND gm_item.
Call goods movement BAPI
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gm_header
goodsmvt_code = gm_code
IMPORTING
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
TABLES
goodsmvt_item = gm_item
return = gm_return.
IF NOT gm_retmtd IS INITIAL.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ELSE.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ENDIF.>
Spark842 wrote:
> Hi experts,
> I am working on the a program where am generating Goods Receipts for Purchase Order. the BAPI_GOODSMVT_CREAT returns an error saying "Material 6003022 not maintained in plant 1001"
> Can any one assist? is there a field I may be missing?
>
> Here is a sample code.
>
> DATA: gm_header TYPE bapi2017_gm_head_01.
> DATA: gm_code TYPE bapi2017_gm_code.
> DATA: gm_headret TYPE bapi2017_gm_head_ret.
> DATA: gm_item TYPE TABLE OF bapi2017_gm_item_create WITH HEADER LINE.
> DATA: gm_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
> DATA: gm_retmtd TYPE bapi2017_gm_head_ret-mat_doc.
> CLEAR: gm_return, gm_retmtd.
> REFRESH gm_return.
> * Setup BAPI header
> "data
> gm_header-pstng_date = sy-datum.
> gm_header-doc_date = sy-datum.
> gm_code-gm_code = '02'.
>
>
> " MB1A * Write 971 movement to table CLEAR GM_ITEM.
> MOVE '101' TO gm_item-move_type .
> " MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
> MOVE '6003022' TO gm_item-material.
> MOVE '10' TO gm_item-entry_qnt.
> MOVE 'EA' TO gm_item-entry_uom.
> MOVE '1001' TO gm_item-plant.
> MOVE '' TO gm_item-stge_loc.
> MOVE '0901' TO gm_item-move_reas.
> " MOVE '4500006877' TO GM_ITEM-WBS_ELEM.
> " MOVE '0020' TO GM_ITEM-VAL_WBS_ELEM.
> MOVE '0020' TO gm_item-deliv_numb.
> MOVE '4500006881' TO gm_item-po_number.
> MOVE '0010' TO gm_item-po_item.
> APPEND gm_item.
>
> * Call goods movement BAPI
>
> CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
> EXPORTING
> goodsmvt_header = gm_header
> goodsmvt_code = gm_code
> IMPORTING
> goodsmvt_headret = gm_headret
> materialdocument = gm_retmtd
> TABLES
> goodsmvt_item = gm_item
> return = gm_return.
>
> IF NOT gm_retmtd IS INITIAL.
>
> COMMIT WORK AND WAIT.
> CALL FUNCTION 'DEQUEUE_ALL'.
> ELSE.
> COMMIT WORK AND WAIT.
>
> CALL FUNCTION 'DEQUEUE_ALL'.
> ENDIF.
My guess, is that this material is not really maintained in the Plant '1001', to be on the safer side, get the exact values from EKPO itself, also check if this material exists in the table MARC for the plant and storage location.
MOVE '1001' TO gm_item-plant. "<< Hard coded
MOVE '' TO gm_item-stge_loc.
Replace the above hardcodes to something like this to get the actual value from EKPO.
select werks lgort into (gm_item-plant, gm_item-stge_loc) from ekpo
where ebeln = gm_item-po_number
and ebelp = gm_item-po_item. -
BAPI For Create Goods Issue for Sales order with picked quantity
Hi friends,
Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
with sales order .......its creating delivery order but not doing goods issue with piked quantity........pls,reply its argent
-
Allow negative quantity for items manage by batch
Hi All,
I am having this issue where all items are required to be managed by batch and yet stock is allow to go negative (with the Block negative quantity unchecked) due to customer requirement.
E.g. there are no batch to select when the item hits negative quantity.
Any idea if this is possible in SAP B1 and possible workaround.
Thank you in advance.
Lip SinHi Lip Sin,
You need to discuss and ask the same to your customer.
Your customer has to make choice between one of this two, because when there is possibility of negative stock, just imagine how the software can keep the integrity with batch nos. ?
You need to clearly ask your customer to choose any of this and still the customer insist, you can think to handle it using UDF for batch no, but then your customer will loose the control by batch.
BR
Samir Gandhi -
BAPI_GOODSMVT_CREATE for Processing a Goods Reciept for a Delivery
We have a requirement to use the Goods Movement Create BAPI to create Goods Reciepts for deliveries since it mimics MIGO. Problem is that we cannot get this BAPI working to Goods Reciept our Deliveries... Has anyone used it for Deliveries? What data is required for the BAPI to work?
thanks,
brianGive a try on the following BAPI:
BAPI_OUTB_DELIVERY_CONFIRM_DEC
Check its documentation.
Let me know,
Leonardo De Araujo -
BAPI for goods receipt for subcontracting PO
Dears,
I Just want to confirm that whether BAPI "BAPI_GOODSMVT_CREATE " will do the goods receipt for the subcontracting PO. SInce I will be passing only 101 mvy type in BAPi, will the system automatically call 543 mvt type and post the consumption.
Require suggestions
Regards
KameshHi,
Yes, BAPI_GOODSMVT_CREATE will work for subcontracting GR as well.
It all depends on the parameters you pass to the BAPI.
Example give below:
*Item Parameters to be passed:
Ordered (Subcontracting) Material:
Parameter Field Description Value
GOODSMVT_ITEM MATERIAL Material Number 100-200
PLANT Plant 1000
ENTRY_QNT Quantity in Unit of Entry 0.000
MOVE_TYPE Movement Type 121
PO_NUMBER Purchase Order Number 4500000007
PO_ITEM Item Number of Purchasing Document 00010
MVT_IND Movement Indicator O
LINE_ID Unique identification of document line 000001
PARENT_ID Identifier of immediately superior line 000000
Note: Quantity of ordered material must be zero.
Component Material 1:
Parameter Field Description Value
GOODSMVT_ITEM MATERIAL Material Number 100-100
PLANT Plant 1000
ENTRY_QNT Quantity in Unit of Entry 2.000
LINE_ID Unique identification of document line 000002
PARENT_ID Identifier of immediately superior line 000001
Note: LINE_ID should be incremented for each component and the PARENT_ID remains same for all the components of an ordered material. Component negative quantity can be given in case of Under Consumption.
Component Material 2:
Parameter Field Description Value
GOODSMVT_ITEM MATERIAL Material Number 100-100
PLANT Plant 1000
ENTRY_QNT Quantity in Unit of Entry 3.000
LINE_ID Unique identification of document line 000003
PARENT_ID Identifier of immediately superior line 000001 -
Post Goods Receipt for Inbound Delivery using WHSCON IDoc
Dear All
Currently I am working on a big project dealing with EDI connections to our logistics partner for the Export business. The entire message flow between Lindt and our partner should be via EDI. Our SAP release is (still) 4.6c.
We will create two kinds of despatch advice messages, one for inbound deliveries and one for outbound deliveries for customers.
I would appreciate your support in the following problem that I am facing with the inbound delivery scenario:
We create stock transport orders (purchase orders, POs) for the goods intended to be delivered into the plant at our partner
We create a delivery (type NL = replenishment delivery) for this POs
As soon as we post the goods issue we send the despatch advice (as EANCOM D96A DESADV message) to our partner.
At this point the delivery is basically completed, i.e. packing status (PS) and goods movement status (GM / GS) are equal to 'C' (= completed).
Our logistics partner uses the same EDI message to send us the goods receipts data, e.g.:
We dispatched 50 units of a product => QTY:50:12
The partner received indeed 50 units => QVR:50:66
Please note that we do not use the QVR segment for the quantity difference (between despatched and received quantity) but it contains the received units. This way we avoid negative values in the QVR segment.
When the logistics partner sends back the DESADV message containing the received quantities (QVR segment) we want to make
the goods receipts for the products in the original stock transport order and
upate the message flow in the delivery
My idea was to transform the incoming DESADV message into a WHSCON.DELVRY03 IDoc based on the documentation in: [Delivery Interface|http://help.sap.com/saphelp_crm40/helpdata/en/e2/654b15a9f411d184ec0000e81ddea0/content.htm]
In the delivery header control E1EDL18 I used QUALF = 'PGI' (Post goods issue).
I prepared an inbound WHSCON IDoc according to the documentation mentioned below. I managed to get some feedback from the Idoc processing implying that the system tried to do the goods receipt in the PO but failed.
To make a long story short here are my questions:
Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
Does anybody have an example on how to fill the WHSCON IDoc?
Or is my approach a cul-de-sac ?
Kind Regards
Uwe
PS: A related question can be found here: Goods Receipt in PO AND Message Flow Update in Inb. Delivery using WMMBXYHi Uwe,
Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
The binary answer would be no. You should use WMMBXY or MBGMCR instead.
But if we are doing goods receipt against Inbound delivery then answer is YES with additionally E1EDL18-QUALF = 'PIC' populated. But please remember no partial receipt is possible against Inbound Delivery.
We should populate E1EDL20-VBELN with our Inbound delivery number and line item info should go to E1EDL24.
I have done a similar interface recently where we are doing receipt against Inbound delivery. But our case was a bit complex because we had to support against Inbound delivery. So we had to go for a custom solution on top of IDOC_INPUT_DELVRY.
Hope this helps. Let me know if you have more questions.
Regards,
Rudra
Maybe you are looking for
-
Digital Connection with Audigy 4 and DTS5
Hallo Everybody I have the same Problem with the nice man in this post. (Felix2) http://forums.creative.com/creativelabs/board/message?board.id=soundblaster&message.id=46632&vie w=by_date_ascending&page= Exactly same problems! I emaild the Support an
-
SONGS NOT PLAYING iTunes 7, iPod 1.1.2.8
WOW, HOW ABOUT THAT?! MY IPOD WON'T PLAY MUSIC... I recently upgraded to the new itunes (computer reformat) and upon plugging my working ipod in, it prompts to upgrade to iPod 1.2. Assuming (regretably) that it might have fixed some of the problems i
-
Change from Parameter to Select-options.
Hi All, Requirement is to change the existing program. One of my requirement is to change parameter(P_VKORG) to Select-options(S_VKORG). I mean earlier we have only one Slaes Organization, now we have got to use multiple Sales organizations. For thi
-
It appears that an unflattened image processed from LR is much larger than when the same image is processed through Bridge. For example, a 9.5mb DNG becomes a 216.5mb image after Curves, Levels, and Unsharp Mask when processed as a Smart Object in PS
-
Moving first interface to Production
Hi frineds, After completing the interface in development i have to move the complete interface to production. And i have one query i need to change the CC before exporting ( Mean the values of production system). Or after moving to production we ha