Failing Idoc Based on Posts Goods Issue
Hi experts,
I have a requirement where I need to check whether a STO exists for the idoc PORDCR102. Another requirement is to check Post Goods Issue is present. If STO exists and PGI exists, I need to fail the idoc. How to do this(both failing idoc and checking how PGI exists). I am using the user exit EXIT_SAPL2012_001 for this purpose.
Regards,
Sajith
Below are the inbound function module which in turn are calling the bapis to post the document
IDOC_INPUT_PORDCR1 calls BAPI_PO_CREATE1
IDOC_INPUT_PORDCR calls BAPI_PO_CREATE
Search for a exit in BAPI ...which will serve you requirement ....ie. in turn throw a error message if the bapi throws a message the idoc will fail...!
Similar Messages
-
Create idoc DESADV when POST GOODS ISSUE
Hi everybody!!
I have a problem and I donu2019t know how to solve it, my question is the following:
What can I do to make an outbound idoc type DELVRY03, message:
DESADV doesnu2019t go off until the outbound delivery getu2019s post it, with the fact of creating it going off.
Thank for your comments.Hello There,
The functionnality you can use for your process is described in notes 340238 and 421276.
I am afraid that the process to create an inbound delivery via DELVRY-IDOC for a stock transfer is not possible as it´s not designed for this.
For the DELVRY-IDOC scenario for inbound deliverys the preceeding document has to be a SD document and not a MM document.
The DELVRY process is designed for purchase orders for your customer:
e.g. CUSTOMER SIDE YOUR SIDE
purchase order - > sales order
^
Y
inbound delivery < - outbound delivery
The outbound delivery does not fill the purchase order number in the IDOC as a check is looking for a SD document wich does not exist.
If you need the DELVRY process for stock transfer then you need a USER-EXIT or a modification in the outbound function module to fill the PO number and the purchase order item number in segment E1EDL41.
We only read out the PO number and the item number if the subsequent document on the vendor side was an sales order.
I hope this helps,
Elaine. -
Idoc to post goods issue against an outbound delivery
We happened to simulate both the idocs 'WPUWBW01' and 'MBGMCR02' for posting goods issue for an outbound delivery but failed.
Request you people to help us on this. Is there another idoc that we have to use to post GI... if so please let us know... and if we are using the right one, guess we are not executing it in the right way... in such a case please guide us with the steps...
Thanks
Arun
We got hold of the Idoc type 'DELVRY03 PGI SHPCON' we are able to post the Idoc but we are able to do the packing only or we are able to change the deliveries but the PGI is not happening..
please help us on this.. is there some condig that updates the delivery with the PGi or is there something else do be done in the Idoc....
will provide additional details if required.
ThanksHi Arun,
There are no configuration settings in this. It is development that your abaper need to carry out.
Explain to him that this is the func module. And intrun it has to either trigger a BDC or BAPI for creating packing and PGI.
He should then do the recording of that and will assign the program pertaining to BDC with in the function module.
One more suggestion is to put the same query in ABAP section too. U will definitely get a positive response.
Hope this helps.
Kind Regards
Chakradhar -
Posting goods issue using Message type SHPCON and idoc type DELVRY03
Hi SAP Gurus,
I am using message type SHPCON and idoc type DELVRY01 with processing code DELV to post goods issue for a delivery note.
I tried to simulate the inbound entry via WE19. The scenario should be posting goods issue based on the delivery order.
In some cases, quantity issued is less than the quantity in the DO. For this, I need to change the delv quantity in the DO via VL02N before I select Post goods issue button. This will change at the same time post the goods issue.
What I have filled up are the fields:
E1EDL20-VBELN = DO num
E1EDL20-VSTEL = Plant
E1EDL18-QUALF = "PGI"
E1EDTH13-QUALF = "006"
E1EDTH13-NTANF = date today
E1EDL24-POSNR = 000010
E1EDL24-MATNR = material num
E1EDL24-WERKS = delv plant
E1EDL24-LGORT = sloc
E1EDL24-LFIMG = updated quantity
But everytime I simulate using WE19, the entire quantity in the DO is not changed at all. The goods issue quantity posted is still the original DO quantity.
May I know how to do this? Thanks.Put value in E1EDL24-LGMNG for qty to pgi.
-
Generate DELVRY Idoc when Post goods issue is done in SAP
I need to generate an Idoc when post goods issue is done in SAP (outbound to SAP) .I understood that I can do this using the message control .The message type DESADV with the process code DELV will support this.
But I didnt understand how to trigger the Idoc.In the current scenario our Company is doing the post goods issue in SAP for the in three different ways.
1.Manually doing the post goods issue through the transaction VL02N
2. an Inbound Interface (using Idoc) which will do Post goods Issue in SAP
3.Another Interface using BAPI, which will, do post goods issue in SAP
I have to run my outbound interface when the post goods issue is done by all the above three ways. Can any one help me out in this?You have to configure the output first .
You can use output type LAVA ( avaialble in Std SAP ) .
( Tcode is NACE , Select Application V2 -> Outputtypes ).
( Create condition records suitable to generate an output)
Next is ALE.
Setup a distribution Model ( for DESADV ) and all other setup for ALE i.e. Distribute Dist. Model / Generate Partner Profile .
In the Partner profile in WE20 select your partner system. Double CLick on Outbound Message DESADV ( this wd be there after you generate partner profile , if not add it here in outbound ) . On this screen goto tab MESSAGE CONTROL .
Application - V2
Message Type - LAVA
Process Code - DELV.
Now you are ready to go. The moment a PGI is done in any form an output LAVA would be proposed and processed using process code DELV.
Cheers. -
Help on IDOC -POST GOODS ISSUE
Hi Folks,
I have requirement with me, but I dont know where to start could you please help me regarding that..
Here is the scenario....
Requirement Specification:
XYZ Company Mexico operations uses third party systems Foursite) for their inventory process.
The communication between Foursite and SAP is thru EDI/IDOC.
In the case of goods customer return to Mexico warehouse, using the following steps the process will be mapped in to SAP.
Customer calls the account specialist.
Account specialist creates a ZO order in SAP and conveys a RA to customer.
Account specialist creates a delivery. The delivery information conveyed to Mexico warehouse thru Inbound receipt IDOC.
Customer physically returns the goods to Mexico warehouse.
Mexico warehouse receive the goods with reference to delivery number in Inbound receipt IDOC.
Once the goods are received, Mexico warehouse send a conformation (Receipt confirmation IDOC) to SAP, which triggers PGI and credit memo.
Functional Specifications:
Create POST GOODS ISSUE in SAP for the material and quantity for the delivery mentioned in Receipt conformation EDI.
Receipt confirmation from Foursite
Data fields received in the EDI
Delivery number:LIKP-VBELN
Material number::LIPS-MATNR
Quantity:LIPS-LFIMG
Unit LIPS-MEINS
Plant :DMEX
Status :RS
Possible IDOC: SDPICK
Trigger:
This IDOC should trigger a Post good issue, for the possible values.
Transaction: Post good issue.
Please give ur input /suggestion , What steps I should take to get it complete .
Thanks in Advance..
Bye and have a good one .Somnath,
If I understand the right, it is like a integration using EDI formats. Do you have a middleware in place to do the mapping transformation? If yes, the message in EDI format will be recieved by the middleware and will be transformed into IDOC format.
Then you do the normal settings for an IDOC to be recieved into a SAP system (Partner Profiles, Inbound Messages etc).
Is this what you were looking for?
Regards,
Ravi
Note : Please reward the posts that help you. -
Help: one request using ALE&IDOC to Posting Goods Issue about MaterialScrap
Hi Exports,
i got a situation. My client is using ALE&IDOC to deal with the Material Scrapping. The business scenario is:
1. One third system (Non-SAP) Send IDOC to SAP Production Server through the Intermedia SEEBEYOND.
Message Type: MBGMCR
IDOC Type: MBGMCR02
BUSINESS OBJECT: BUS2017
2. SAP Production Server use "Message Type: MBGMCR" to find out the BAPI in Distribution Model and trigger the BAPI.
the Distribution Model:
Model View
SEEBEYONG
PRODUCTION
GoodsMovement.CreateFromData
Reciever determination: no filter
Now my client's request is:
When the Movement Type is 551 in the IDOC Segment "E1BP2017_GM_ITEM_CREATE", This IDOC will be ignore and not trigger the BAPI to post goods issue.
i try to add the destination filter in the Distribution Model. but when i add the filter group, there are only two filter parameter ("Plant" and "Storage Location") and don't allow to add others.
i have no idea now. can anyone give me a favor. thank you very much in advance.
Edited by: Dave Wang on Feb 29, 2008 7:09 AMWe got hold of the Idoc type 'DELVRY03 PGI SHPCON' we are able to post the Idoc but we are able to do the packing only or we are able to change the deliveries but the PGI is not happening..
please help us on this.. is there some condig that updates the delivery with the PGi or is there something else do be done in the Idoc....
will provide additional details if required.
Thanks
Arun -
Post goods issue failed because of serial number
in outbound delivery,post goods issue failed because of serial number,but this serial number was not assigned to any other material
Hello,
Check the serial number and material with IQ03. Serial number is material specific.
Prase -
Need User Exits for Creation of Delivery and for Posting Goods Issue
Hi,
I need User Exits for
Creation of Delivery
Posting Goods Issue
I need to make some checks regarding customer license expiration and if checks fail, I need to stop Creation of Delivery and Posting Goods Issue.
Thanks in advance,
Will reward,
MindaugasIn the delivery you can use userexit USEREXIT_SAVE_DOCUMENT_PREPARE to make your checks and send an error message to the user in case they fail.
You can find this user exit (form routine) in include MV50AFZ1.
Hope that helps,
Michael -
Special stock partner data problem in ERP system during "Post Goods issue"
Hi all,
I have a (probably) customizing issue in an ERP 6.0 EhP4 test system which not occurs in the ERP 6.0 test system. There is a difference but no one could tell me, what causes the problem in this scenario:
I have two customers, C1 and C2. C2 is the special stock partner (SB) of C1.
I've created a Consignment Fill-up order, then a delivery document based on the order and posted it with "Post Goods Issue". During the update process, a function module (SD_PARTNER_UPDATE) receives partner data in an internal table which contains the sold-to, ship-to and special partner data.
When we tried the same process in the ERP 6.0 EhP4 test system then special-partner data did not occur in the parameter table (I've used the same customers and materials). The special stock partner is probably not taken into consideration due to some customizing settings.
My question is what should I change in the customization to run the process the same way as in the ERP 6.0 system? As far as I know there are no new modifications which have effect on this area, and the used test customers and materials are almost the same - there are no noticable differences.
Thanks in advance.
AkosI tried setting that field in the sale order this morning. By defaulting it to "C"; I was able to get warning message for TAE line. I was able to post goods with TAE and TAQ, being different quantities. I need the check to determine if TAE and TAQ delivery quantity are different. Using this fields seems to be line specific. Thanks for the suggestion. I now know what that field does to the delivery.
I rewarded points.
Thanks,
Tony -
EXIT or BADI for Post Goods Issue
Hello Experts,
I need help in finding a USER EXIT, or BADI to change the contents of MSEG at PGI moment in VL02N.
I'm using version 4.6c.
When I click at Post Goods Issue, I need to insert the customer number at MSEG for certain documents that the standard does not use this field.
Can anyone PLEASE help?
Will reward points!
Thanks a lot and regards,
FernandaHi
Enhancement/ Business Add-in Description
Enhancement
V02V0004
User Exit for Staging Area Determination (Item)
V02V0003
User exit for gate + artl staging area determination (headr)
V02V0002
User exit for storage location determination
V02V0001
Sales area determination for stock transport order
VMDE0004
Shipping Interface: Message SDPACK (Packing, Inbound)
VMDE0003
Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0002
Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0001
Shipping Interface: Error Handling - Inbound IDoc
V53W0001
User exits for creating picking waves
V53C0002
W&S: RWE enhancement - shipping material type/time slot
V53C0001
Rough workload calculation in time per item
V50S0001
User Exits for Delivery Processing
V50R0004
Calculation of Stock for POs for Shipping Due Date List
V50R0002
Collective processing for delivery creation
V50R0001
Collective processing for delivery creation
V50Q0001
Delivery Monitor: User Exits for Filling Display Fields
V50PSTAT
Delivery: Item Status Calculation
Business Add-in
DELIVERY_PUBLISH
Announcement of delivery data during database update
If it is helpful rewards points
Regards
Pratap.M -
COPA document not generated when Post Goods Issue is reversed.
Hello Friends,
WE uses Stock Transport Order in two steps for transfering Stock from one plant to another. We have defined a Condition type FRB1 to capture the Freight cost involved in the stock transfer.
When the Post goods issue is done for the Stock Transport Order. following Accounting documents are generated.
Accounting
Profit Center
COPA
Spec. Purpose Ledger
Controlling Document
Material Ledger document.
But When the Post goods issue is reversed through transaction code VL09 all the above documents are generated except for COPA document. Though in controlling document it shows the object type hit is REO i.e profitability Analysis
For further information we have mapped cost element (600150) with Value field in PA transfer structure (Direct assignment from FI and MM. Movement type used for PGI are 641 & 642.
Thank youDear Colleagues
I thank all those who put in thier time and efforts for possible solution for my problem. But I could resolve this issue with help from SAP.
Basically in costing based COPA the system does not post the cost of goods sold to COPA during goods issue but it is done at the time of posting the invoice since the system wants to see the revenues and the COGS values together.
Since the system posts the COGS into COPA at the time of invoice posting, you will appreciate that if this is also done during goods
issue then you will have duplicate entries in your COPA (i.e. the COGS will be doubled).
If in transaction VL01N/VL02N a costing-based line item would be posted, the costs would be double in CO-PA (the billing and goods issue). For this reason, no costing based line items will be created in the standard R/3 system for transaction VL01N/VL02N.
If for some reason you still wish to post the COGS to COPA during goods issue you have to do the same thro a modification of the system.In your case you have applied note 214381 for the same. Please note here that movement type '641' is used as an example. For other movement types you will need to code accordingly.
as per note 337488 point 2. the changes of note 214381 were not required in our case. Therefore we reverted these changes in LKEIIF01 and added the relevant coding for movement type 642 in function COPA_DOCUMENT_CHECK as per note 337488 point 2.
Looking forward for your continued support
Regards
Umesh Gothankar -
Post Goods Issue without reference to order
Dear All
We are using both Account and Costing Based COPA. We do post goods issue without reference to order. Now our problem is that at the time of post goods issue there is no Profit Analysis document posted in the system and Profit Segment field is not modifiable. We have marked the field profit segment optional in movement type 601.
Please let me know what can be the problem.
Regards
Farhan QaiserCheck the field status variant on GL (OBC4)
-
Post Goods Issue Accounting Entry & Profit Center Updation???
Dear All,
At the time of Post Goods issue it generates an accountng entry.
we are getting an error related to Profit center.
we maintained profit center in the sales order. and please clarify me can we create cost element for COGS account which hits at this level.
I am getting the following errror.
Balancing field "Profit Center" in line item 001 not filled
Message no. GLT2201
Diagnosis
The field Profit Center marked as balancing is not filled with any value in line item 001, even after document splitting.
System Response
The document cannot be posted.
Procedure
First check your entries.
Additional causes could be:
No value can be derived for this field from the current document data.
You have entered a document type that is not designed for this business purpose.
Procedure for System Administration
Customizing
But we need profit cener wise balance sheet.
so please guide me.
regards,
shashi kanth.If you define document splitting criteria based on Profit Center and if your document contains multiple line items with different profit center, this type of error will come.
To check this, Go to IMG Path -- Financial Accounting (New) --> General Ledger Accounting (New) --> Document Splitting --> Define Document Splitting Characteristics for General Ledger
There check whether the mandatory check box is selected for profit Center. So check in your delivery document, whether any line item does not have profit center.
You can also have a look at any of the following notes
a) 995055
b) 1074689
c) 1079819
thanks
G. Lakshmipathi -
Post Goods issue after clicking on Load Starting push button
Hi All,
Post goods issue for deliveries, suppose if the shipment document is created for XXXX country do the post goods issue after clicking the push button loading start on. and if the shipment is created other than the XXXX Country do the post goods issue after clicking the shipment start button(Done by Standard SAP).
There will be validation table in background to identify which shipping point to allow Post Goods Issue before shipment completion. This will require enhancement of Delivery User Exit to incorporate above check based on below mentioned Z Table.
Z-Table
- Shipping Point.
- Delivery Type
Any body please suggest the user exit or any function module and how to start code for this particular requirement.
Thanks & Regards,
NarasimhaHi,
You can write your own vaalidation on click of loading start button.
Go to include MV56AI_IS_ENHANCEMENT of program SAPMV56A.
Click on the circular button(Enhance).
Then Edit --> Enhancement Operation --> Create.
Create your enhancement giving it a Z name.
Then in this enhancement you can write your code.
For loading start you can write your code in the following fashion.
IF fcode = 'MM_ST03'.
business logic.....
ENDIF.
Regards,
Firoz.
Maybe you are looking for
-
Filled form is blank when sent to email address
trying to get a form to send to my email address. It working fine and i must have deleted something accidentaly. Here is the link to my site page http://www.owendawsonpga.com/contactformprocess_original_db.html html page <!DOCTYPE html PUBLIC "-//W3C
-
Hello, I've seen many posts on the web about the infamous Premiere Pro "A Serious Error has occured and Premiere needs to close the program..." I've encountered this error doing numerous different things while editing my project and can never seem to
-
Tried to run the iPhone update on my iPhone 4. After an interminable amount of time (4+ hours) the screen remained black. I unplugged it from the computer. Still black (as if off). I hit the round button twice, and got the USB > iTunes image on the s
-
I want to be able to open a form in query mode - is there any way to set this? I am using Designer and Headstart. Thanks
-
Adding a Flash-Type Slideshow in iWeb
I want to add a slideshow to my home page, but not the kind of slideshow that has a bar of thumbnails and an enlarged version of the selected image. I'd like a frame that automatically plays a slideshow of images that play for a few seconds with a si