Posting Post Goods Issue Idoc using XI
Hi Experts,
My scenario is file to idoc.
I will get the shipping conformation XML file from the client by using that xml file i have to post the PGI idoc, is it possible to post the PGI idoc using shipping conformation xml.
i have one assumption regarding this please correct me if i am wrong.
Already shipping conformation Idoc is there, so by using the shipping conformation xml if i post the shipping conformation idoc, is there any possibility that it will automatically update the PGI idoc. Why i got this idea is the shipping conformation xml file whcih was send by the client is matching with fileds in shipping conformation idoc but not with the PGI idoc. So without having the common fileds in xml file and the respective idoc we cannot post the idoc.
Kindly suggest me the possbile solutions for the scenario.
Thanks & Regards,
Venkat
Hi,
If you want to post an IDOCbased on the data comping from Client.
as i understood.
1. your client is sending data which is similar to shipping conformation idoc.
2. your requirement is to send PGI IDOC.
You can go for BPM where you will do 2 mappings 1 for File to Shipping confirmation and other 2nd for Shipping to PGI.
So at target side you can directly post PGI IDOC.
Regards,
Akshay Jamgaonkar.
Reward points if find useful.
Similar Messages
-
How to amend a do an post a goods issue by using BAPI_OUTB_DELIVERY_CONFIRM
Dear All,
As advised in this forum ,I want to used BAPI_OUTB_DELIVERY_CONFIRM_DEC to amend my DO and post a goods issue. However, I keep getting error message "error in document 80000970 item 000010 (quantity consistency check)"
code:
DATA:
W_HEADER_DATA LIKE BAPIOBDLVHDRCON,
W_HEADER_CONTROL LIKE BAPIOBDLVHDRCTRLCON,
DELIVERY_NUM LIKE BAPIOBDLVHDRCON-DELIV_NUMB,
W_ITEM_DATA LIKE BAPIOBDLVITEMCON,
I_ITEM_DATA LIKE BAPIOBDLVITEMCON OCCURS 0,
I_RETURN LIKE BAPIRET2 OCCURS 0.
DATA :
W_RETURN LIKE BAPIRET2,
L_RETURN LIKE SY-SUBRC.
PERFORM OUTBOUND_DELIVERY
CHANGING
L_RETURN.
FORM OUTBOUND_DELIVERY
CHANGING
L_OUT_RETURN LIKE SY-SUBRC.
DATA:
V_LOGSTR(128) TYPE C. "LOG ÄÚÈÝ
DELIVERY_NUM = '80000970'. "DO NUMBER
"HEAD DATA PART
W_HEADER_DATA-DELIV_NUMB = '80000970'.
W_HEADER_DATA-GROSS_WT = 240.
W_HEADER_DATA-NET_WEIGHT = 240 .
W_HEADER_DATA-UNIT_OF_WT = 'G'.
"HEAD DATA CONTROL PART
W_HEADER_CONTROL-DELIV_NUMB = '80000970'.
W_HEADER_CONTROL-GROSS_WT_FLG = 'X'.
W_HEADER_CONTROL-NET_WT_FLG = 'X'.
W_HEADER_CONTROL-VOLUME_FLG = 'X'.
W_HEADER_CONTROL-POST_GI_FLG = 'X'.
"ITEM DATA PART
CLEAR W_ITEM_DATA.
W_ITEM_DATA-DELIV_NUMB = '80000970'.
W_ITEM_DATA-DELIV_ITEM = '000010'.
W_ITEM_DATA-MATERIAL = '0015223'.
W_ITEM_DATA-BATCH = '20040202'.
W_ITEM_DATA-DLV_QTY = 1.
W_ITEM_DATA-SALES_UNIT = 'CAR'.
APPEND W_ITEM_DATA TO I_ITEM_DATA.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
EXPORTING
HEADER_DATA = W_HEADER_DATA
HEADER_CONTROL = W_HEADER_CONTROL
DELIVERY = DELIVERY_NUM
TABLES
HEADER_DEADLINES =
ITEM_DATA = I_ITEM_DATA
RETURN = I_RETURN
LOOP AT I_RETURN INTO W_RETURN.
IF W_RETURN-TYPE = 'E'.
L_OUT_RETURN = 4.
MESSAGE ID W_RETURN-ID
TYPE W_RETURN-TYPE
NUMBER W_RETURN-NUMBER
WITH W_RETURN-MESSAGE_V1
W_RETURN-MESSAGE_V2
W_RETURN-MESSAGE_V3
W_RETURN-MESSAGE_V4
INTO V_LOGSTR.
WRITE :/ V_LOGSTR.
ENDIF.
ENDLOOP.
ENDFORM.
Does anybody have a hint to the cause of the error message?
There's no problem to do a goods issue manually in VL02n for the delivery.
Best Regards,
ERIC XUHi Lin,
he has changed the commit value to 'X' in DEBUG mode.
If you just want to test it in se37, you have to keep a break point in the WS_DELIVERY_UPDATE_2 fm, and give the value of COMMIT = 'X' in debugging.
If you want to do the same in a program, you have to cal the fm: bapi_transaction_commit after the call to the BAPI_OUTB_DELIVERY_CONFIRM_DEC bapi.
Regards,
ravi -
Posting multiple goods issues against the same delivery
Hello gurus,
We are a fashion apparel company using ECC 6.0 and would like to know if it is possible to post mutliple goods issues against the same delivery?
I will explain the business requirement.
- We create a stock transport order to deliver 400 units of merchandise to on or our retail stores (STO is created and processed to a delivery).
- This information is passed down to our warehouse management system (which is not SAP)
- Our warehouse management system has the ability to split a delivery into multiple shipment when needed. For example, our warehouse may only be able to complete 250 units for our morning shipment and will therefore pick, pack and post this. This will feed back into SAP and process a 641 movement so that the units now show as "in transit". This is needed so that our stores can process the ASN and move the units into their inventory when they receive the merchandise later that day.
- During the afternoon, our warehouse will process the remaining 150 units and will ship this to our store later in the evening or next day.
Currently, we are not able to process another goods issue against a delivery as we close out the delivery during the first goods issue. We would prefer not to have to generate a new delivery for our DC and let them continue to process against the same delivery, but we are unsure how to configure this.
Any help or guideance would be extremely appreciated
Thanks in advanceHi RJ,
First of all sorry to write such a lengthy reply,In one line if i want to summerize then it is not possible with standard SAP however we can achieve this by writing some piece of code in both the system
AS - IS
Business process
From business process point of view you are right that once the pick & pack is in process it is not advisable to create a new delivery document for balance quantity and share the same with WMS as then they have to create a new document in WMS and start picking based on that rather then the old delivery document number. if i am in your position then i can give a thought like this
e.g.
Delivery - 100 Unit
Shipment confirmation from WMS - 60 Unit
Change in delievry quanity / Pick qty - 60 Unit
Invoice from SAP - 60 Unit
Second confirmation from WMS - 40 Unit
Change in the existing delivery quantity - Now here we have two option either
1) Change the delivery quantity / Pick qty to (60+40) =100 or
2) Remove the 60 and update 40 as delivery and pick quantity
Pros & Cons
if you will select option 1 then furhter invoice will happen for 100 unit which is incorrect as physically you are shipping only 40 unit
if you are selecting option 2 then the document flow is incorrect as you don't have history(in SAP) for the 60 unit which was shipped earlier
Solution ::
so in my opinion the best option is to create a seperate delivery document (store the old delviery number in one of the field of the new delivery and pass the same to custom segment of the IDoc) transmit the IDoc to WMS write the validation logic in WMS
Find the record with old deliver number in the WMS system, check the status whether it is active or inactive
if it is acitive Validate the Material + qty with the WMS record(Material + balance quantity) if both are same then pass the new deliery number to custom field of the WMS table
At the time of confirming back to the SAP, Write a piece of code in SAP that if the incoming idoc custom field(new delivery number) field is populated then ignore the orignal document number and post the document using the new delivery document number
Hope this help -
BAPI to post a Goods issue with relation to Sales Order?
Hi Everyone,
After creating a delivery order, I need a BAPI to automatically post a goods issue for this DO.
I tried using BAPI_GOODSMVT_CREATE but it returns the message 'Goods Movement not possible with mvmt type 601'.
Any advice?
Best Regards,
JunwenHi John,
My data are as follows:
GOODSMVT HEADER:
PSTNG_DATE: 30.09.2004
DOC_DATE: 30.09.2004
REF_DOC_NO: had tried 1014000359 or empty
GOODSMVT_CODE: 03
GOODSMVT_ITEM:
MATERIAL: HP0121002
PLAN: 1010
STGE: 10FG
BATCH: BATCH1
MOV: 601
CUSTOMER: 180017
ENTRY_QNT: 1
ENT_UOM: PC
ENT_UOM_ISO: PC
DELIV_NUMB: 1014000359
DELIV_ITEM: 000001
From your feedback, it is possible to use the BAPI to create a goods issue for movement type 601?
Best Regards,
Junwen -
Post a good issue against an outbound delivery with movement type 601 K
Hello,
according to my business scenario I need to manage the stock of different vendors into the client's location (plant) at storage location level and I need to post the good issue against an outbound delivery to decrease the stock level.
Since the owner of the goods isn't my client the item is managed only at quantity level (not value) so I'm not interesed in the accounting document.
To do it I'm using the functionality related to the vendor consignment stock but I'm not able to post the good issue against an outbound delivery using the movemement type 601 and the special stock indicator equal to K.
In particular I've tried in two different ways:
- setup the consignment stock indicator (= K) into the sales item category, but when I post the goods issue the system is not able to find out the right vendor
- to create a stock determination rule instead of the setting previous described, but the system display an error message (Fld selectn for mvmt type 601 / acct L534200770 differs for Cost center (010) ) even if the accouting is not relevant in my scenario
Can you suggest me how the system has to be setup in order to cover my requirements?
Thanks in advance,
AlessandroHi,
Please clarrify which material type you are using in this scenario? I suggest you to use material type UNBW (no value updation will be there) and create a material master. Use special stock indicator K. Proceed with 601K to do GI. Hope it works. Thanking you. -
Error when posting an goods issue of movement type 501: order not contain
I tried to post an goods issue of movment type 501 to a stock transport order. But I get the error as below.
Document 4500000130 does not contain any selectable items
Message no. M7 064
Diagnosis
The document or item entered cannot be adopted.
Possible reasons for this are:
The document items have already been processed
(Suggest zero lines indicator set?).
the document items have been deleted or are blocked.
the document items have been created for a different plant.
(for reservations only) movements are not yet allowed for the reservation items.
(for reservations only) the document items are retrograde components of the order. These are posted using the order confirmations.
The document is an R/2 document.
Procedure
Make sure your entries are correct.
If the system has already processed the total quantity, you can set the Suggest zero lines indicator. The system will suggest the quantity zero for the items that have already been processed.
If you have entered a particular item, cancel the item. If you do not enter an item, the system searches all of the open items in the document.
If the document is a purchase order, production order or a reservation, you can enter search criteria in the dialog box.
You access the dialog box by choosing the menu option Enter with reference on the initial screen.
If the document is an R/2 document, you have to cancel it manually by entering the reversal movement type.
How can I proceed to post?
Thanks,
EdaHi
Go to T.code MB1A, enter the required movement type, Plant and storage location and then click,
The push button of Reservation on the tool bar for refereing the reservation or
The push button of order on the tool bar for refereing the Production order.
Cheers
Kris -
Hi Everyone,
After creating a delivery order, I need a BAPI to automatically post a goods issue for this DO.
I tried using BAPI_GOODSMVT_CREATE . I haven't errors but the Goods issue has not been posted for the delivery.
Any advice?
Best Regards,
NadiaOne way is possible, but it has also negative aspects:
You can set back the current period to a required period. There is a init repor in the customizing of MM. I would set the current one back to june, so you could post im may.
After done this, the normal period report for setting the next month can be run.
But: doing this, current values and the last period are at least the same. You loose one historical period....
I would try this in a test system.
Regards
Uwe Werner -
Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'
Hi experts,
For a Handling Unit number, im Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'
Im passing the below values to the BAPI, to create a Material document and transfer order.
GOODSMVT_HEADER- PSTNG_DATE (System Date)
GOODSMVT_HEADER - DOC_DATE (System date)
GOODSMVT_HEADER- PR_UNAME (SY-NAME)
GOODSMVT_CODE- GM_CODE ( 01)
GOODSMVT_ITEM-MOVE_TYPE (Movement type): movement type '101'
GOODSMVT_ITEM- DELIV_NUMB_TO_SEARCH (Delivery)
GOODSMVT_ITEM-DELIV_ITEM_TO_SEARCH (Delivery item)
GOODSMVT_ITEM-PLANT (Plant) VEPO- WERKS
GOODSMVT_ITEM-STGE_LOC (Storage location) VEPO- LGORT
GOODSMVT_ITEM-ENTRY_QNT (Quantity)
GOODSMVT_ITEM-ENTRY_UOM (Unit of measure)
GOODSMVT_ITEM-PO_NUMBER (Purchase order)
GOODSMVT_ITEM-PO_ITEM (Purch. order item)
GOODSMVT_ITEM-UNLOAD_PT ( HU number)
GOODSMVT_ITEM-MVT_IND (Movement indicator) = 'B'
I dont know what values has to be passed to the following fields in BAPI
*GOODSMVT_ITEM-SU_PL_STCK_1*
*GOODSMVT_ITEM-SU_PL_STCK_2*
*GOODSMVT_ITEM-ST_UN_QTYY_1*
*GOODSMVT_ITEM-ST_UN_QTYY_2*
*GOODSMVT_ITEM-UNITTYPE_1*
*GOODSMVT_ITEM-UNITTYPE_2*
All those values has to be updated in the Material document.
Please help me on this.
Thanks & regards,
Leo
Edited by: Thomas Zloch on Nov 17, 2011 10:11 AMI konw that I'm digging an old thread but let's have a look. I have the same problrm (filling the DMBTR field from the BAPI). I have not tried yet but checking the code of the BAdI I found that the EXTENSIONIN_TO_MATDOC method of the MB_BAPI_GOODSMVT_CREATE BAdI is called before creating the material posting and it has the IMSEG table as changing parameter. I will give it a try soon. Hope that it will work.
Has anyone experience with it by any chance?
Adam -
Error in posting a goods issue
Hi everyone,
We're encountering an issue with posting. When trying to post a goods issue from a delivery via VL02N, an error message is displayed : "The document does not contain any item.". although it does contain items.
Do you have an idea of why thie error would appear ?
Thanks in advance.Hello,
Can you check whether
1. you have picked the item,if not then pick the material and goto Edit>Confirm pick order>All items, or
2. activated warehouse management. if yes then you need to create a transfer order with reference to that delivery.
Hope it helps.
Regards,
Priyanka -
Posting a "goods issue" msg NR751
Hi All,
posting a goods issue, sap gives me the message NR751...
But the number range has been created ...
I can't post the goods issue
Could anyone help me?
thanks
GandalfCiao Gandalf, ( e' sempre un piacere incontrare un fan del signore degli anelli)
the error NR751 have 3 variables
-> For object &1 &2, number range interval &3 does not exist
Please, go to transaction SNRO and enter RF_BELEG (I suppose this is the object in the error) in the 'Object' field.
In the menu path press Go To -> Number Ranges.
Enter the relevant Company Code. Do you have an entry here for the interval &3?
Mauro -
Is it possible to post a good issue movement before post the good receipt m
Is it possible to post a good issue movement before post the good receipt movement for the same material, into the same period?
We try to explain better, today we've done a test:
Step 1 : We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
Step 2 : We have post a good receipt movement, 561 of this material with 1000 ST of stock, and on posting date: 05.05.2011.
Step 3 : Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock, on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
And it has worked, so that on trx "mb51" for this material we saw:
PLANT1-----STO1---- 562----- Mat. Doc.101.05.2011--
500- ST
PLANT1-----STO1---561Mat. Doc.205.05.2011--
1000 ST
And with "fbl3n" for this G/L account , the same situation:
G/LAccount1--DocumentNo101.05.2011--99--
500- EUR
G/LAccount1--DocumentNo205.05.2011--89--
1000 EUR
We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PMHi,
Though sap allows like this ,, the document created will be with the date of the actual posting system date. If you look into the MSEG table you will get to know this.
In theory .. this kind of practice should not be allowed .
since this is a 562 which is a individual entry may be system would have allowed.you try a 102 .
Regards, -
Is it possible to post a good issue movement before post the good receipt
Is it possible to post a good issue movement before post the good receipt movement for the same material, into the same period?
We try to explain better, today we've done a test:
Step 1 : We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
Step 2 : We have post a good receipt movement, 561 of this material with 1000 ST of stock, and on posting date: 05.05.2011.
Step 3 : Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock, on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
And it has worked, so that on trx "mb51" for this material we saw:
PLANT1 STO1 562 Mat. Doc.1 01.05.2011 500- ST
PLANT1 STO1 561 Mat. Doc.2 05.05.2011 1000 ST
And with "fbl3n" for this G/L account , the same situation:
G/LAccount1 DocumentNo1 01.05.2011 99 500- EUR
G/LAccount1 DocumentNo2 05.05.2011 89 1000 EUR
We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PMSAP only checks if there is enough quantity in the period (month), it does not check if there is enough stock at date level.
there is no stock stored in any table for a given date. SAP would need to run the logic of MB5B to calculate the stock at a certain date, this would cause tremendous performance issues.
you either have to do this calculation yourself in a user exit, or you better train your users. -
Hi
Which message type should i use to sent goods issue idoc to an external system?HI
GOOD
KOMIM - CHAR1 - Transfer pick quantities to delivery / post goods issue (as of release 4.0)
If you set the indicator KOMIM to 2, the IDoc can no longer be use for mass processing: If you want to post the goods issue for an outbound deliver via the IDoc, you can only transfer a single transfer order in the IDoc, for each IDoc and communication activity.
go through this link
http://www.sapgenie.com/sapedi/message_types_masterdata.htm
thanks
mrutyun -
Backdate Posting of Goods Issue using standard BADI
Hi Experts!
The standard BADI we are using creates an STO then a Delivery and Goods Issue via a userexit. We have a requirement to backdate the posting dates and have a concern of deficit stock levels at the point of Goods Issue. How do we control this?Hi,
Instead of updating entire data of deliveries and PGI once, you can manually update the stock for a specific period and then update the Deliveries and PGI in the system.
Or update entire stock at once till date and only then update the Deliveries and PGI in the system.
Hope this helps.
Regards,
Sharan -
STO Post goods issue reversal using vl09 not happening.
hi
user has done following cycle
1.ME21N-PO document type UB and Item cat I.
2.VL10B- Outbound delivery
3.VL06G-goods issue using automatic MVT 647 and 101)
4.VF01-Performa Invoice(billing Type JEX)
5.J1IIN- Excise invoice.
In billing base price is missing because of that all duties and net price zero.now user wants to cancel entire cycle. he has done excise cancellation using J1IH. we are not able to reverse billing using VF11, we are not able to PGI reversal using Vl09. it giving error "No dat available for your selection".
Note: is it problem of JEX because we have not assigned cancell billing type and doc pric procedure to JEX?
any solution for the above issue.the optional solution can be as following steps:
1) create the bin manually with ls01n: storage type 904, bin name is the delivery number,
2) reverse with vl09 and a material doc will be created.
3) check the bin stock with ls24, you will see negative stock in 904.
4) create TO to offset this negative qty with lt06 with above mentioned material doc. this TO's source bin is just the one in regular storage type.
5) confirm TO
6) don't forget to delete the bin created in step 1, this is because it is created manually but not dynamic bin that will dissapear automatically.
pls reward if helpful.
Maybe you are looking for
-
HT5510 How do I gift apps to someone from my MAC since I can no longer gift them from my iPAD
I am trying to use my MAC to gift someone and iPad app since I can no longer do it from ios 6, and I can't see a way to do it on my MAC. Help anyone!
-
How to get file name in adapter module
Hi all Is it possible to get the file name in a adapte module? If so how can I achieve this?
-
hi, Good day to all! i created one vendor report but i need net balnce post date, debits , credits , balnce( debit-credit), net balance 01.01.2008, 2000, 1000 1000 02.01.2008 ,3000, 4000 -1000 03.01.2008 5000 2000 3000
-
Hi Bi Experts. I have an issue... how can I be sure than each Bi Content Datasource implemented, are extracting correctly the information from the ECC system? Is there a method to verify that the information in BW is exactly the same than in ECC syst
-
Is there a driver for the PXI-8310 that works with Windows 7?
The only one I can seem to find is for XP.