Multiple sales/plant views from matmas idoc
Hi gurus,
I want to create multiple sales and plant views for an inbound material master idoc using the incoming reference sales org and plant.
Please help
cheers
kaustubh
Hi,
You might need to develop a custom inbound function module to handle your case and attache it to the process code.
Rgds,
HR
Similar Messages
-
Work scheduling view via MATMAS idoc
Can somebody tell me which segment and field is used in MATMAS idoc to create Work scheduling view?
Hi,
Identify the various Basic Types available for MATMAS and then provide the basic type in transaction WE30 and you can check the various segments being generated.
Thanks
Krithika -
Change sales order values from Inbound Idoc
Hi all,
In my scenario i have to change sales document automatically(Workflow) by getting the values from the inbound idoc ordchg (one more thing i dont want to create another sales document). Is there is any function module? please tell me how to do this.
Regards,
Adithan S.Hi Adithan;
You can read the IDoc information using the function IDOC_READ_COMPLETELY as demonstrated in the example below:
DATA: int_edidd TYPE STANDARD TABLE OF edidd WITH HEADER LINE,
wf_docnum type edidc-docnum.
MOVE: 'IDOC_NUMBER' to wf_docnum.
CLEAR int_edidd.
REFRESH int_edidd.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
document_number = wf_docnum
TABLES
int_edidd = int_edidd
EXCEPTIONS
document_not_exist = 1
document_number_invalid = 2
OTHERS = 3.
After that call, you can loop through int_edidd to get at the segment information you need.
You can update the sales order using BAPI_SALESORDER_CHANGE. Below is an example of updating line 10 of a sales order with a new material number.
DATA: l_vbeln LIKE bapivbeln-vbeln,
so_headx TYPE bapisdh1x,
change_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
so_item_in TYPE bapisditm OCCURS 0 WITH HEADER LINE,
so_item_inx TYPE bapisditmx OCCURS 0 WITH HEADER LINE.
MOVE 'U' TO so_headx-updateflag.
MOVE <insert sales order number here> to l_vbeln.
MOVE: '00010' TO so_item_in-itm_number,
'MATERIAL_NUMBER' TO so_item_in-material.
APPEND so_item_in.
MOVE: '00010' TO so_item_inx-itm_number,
'U' TO so_item_inx-updateflag,
'X' TO so_item_inx-material.
APPEND so_item_inx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = l_vbeln
order_header_inx = so_headx
TABLES
return = change_return
order_item_in = so_item_in
order_item_inx = so_item_inx.
Cheers,
John -
Hello,
I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
Appreciate your inputs on this.
Thanks and Regards
Mohammed RoshanThank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
Could it be an issue with e Update rule in this Infostructire S008
Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
"Maintenance of SAP standard updates not allowed"
Kindly advice
Thanks and Regards
Mohammed Roshan -
Multiple MATMAS IDoc getting created through RBDMIDOC program
Hello All,
I am creating MATMAS Idocs by RBDMIDOC proram, but as MATMAS message type is used in multiple distribution models ( i.e. MATAMAS is being sent to multiple partners), its creating multiple IDocs.
I want my IDoc to get triggered only for a particular partner. How can i acheive this ?
Searched on SDN but did not found solution.As the standard settings, IDOCs will be transmitted to all the Partners which are maintained in WE20 (Partner Configuration). You can restrict the triggering of IDOC based on some condition using the Business transaction event MGV00100 (Publish & Subscribe). This event is called from Function module MASTERIDOC_CREATE_MATMAS (Line number 2074). Documentation of Standard FM SAMPLE_INTERFACE_MGV00100 reads
* Event rissen by the ALE outbound process for MATMAS.
* It allows to modify the idoc's control header the idoc data aswell
* as serialization information created by the standard SAP outbound
* process.
* Raising the EXCEPTION ERROR will prevent the IDOC from being
* submitted to the ALE layer.
* BE CAREFUL WITH ANY CHANGES TO IDOC_CONTROL. IT MAY EFFECT YOUR WHOLE
* ALE-SCENARIO
You have to copy the Standard FM SAMPLE_INTERFACE_MGV00100 to a Z function module and assign it using transaction code FIBF. Search SCN to get more details about configuring Business transaction events using FIBF. -
Creating multiple graphs dashboard in Crystal XI using a single View from MS SQL Server 2005
How to create multiple graphs dashboard in Crystal XI using a single View from MS SQL Server 2005?
I need to use Crystal XI and create a dashboard which shows some sales data and stuff, multiple graphs on a single screen.
My tech team says they can display one graph per page but not 4 graphs on the same page as it uses a common view from SQL Server 2005.
How to manage this? Can we call in multiple views / graphs in the same page? Say 4 graphs on the same page?
We use ASP or .NET for calling crystal reports into the App.
Regards,
Akshay.
INDIAHave you tried creating multiple sections, putting each graph in a separate section and then underlaying the sections so they appear next to each other?
-
I am testing creating Sale Order from inbound IDOC with WE19.
Partn. number = AAA001
Partn. type = KU
Partn.func = PY
Message Type = ORDERS
Process Code = ORDE
I get message 51 "Error: Application document not posted" in IDOC status:
VKORG, VTWEG, SPART cannot be determined for customer AAA001 , vendor
Message no. VG 204
Diagnosis
No sales organization, distribution channel or division were sent to the
IDOC. This data is necessary if a sales order is to be added
automatically. If this data is unavailable, you cannot create a sales
order document.
Procedure
If data on the sales organization, distribution channel and division
have not been entered in the IDOC, it must be determined using a user
exit defined in the program.I will receive IDOC from external non-SAP system.
How can i populate E1EDK14 segment with appropriate values:
E1EDK14 -QUALF = 006
E1EDK14 -ORGID = Division (VBAK-SPART)
E1EDK14 -QUALF = 007
E1EDK14 -ORGID = Distribution Chanel (VBAK-VTWEG)
E1EDK14 -QUALF = 008
E1EDK14 -ORGID = Sales Organisation (VBAK-VKORG)
If external system does not know this values?
Edited by: S S on Feb 28, 2009 12:46 PM -
Create multiple sales orders from single service notification?
Is it possible to create multiple sales orders from a single notification (IW51)?
We currently create sales orders directly within transaction IW51 (Create Service Notification). We kick off the sales order creation by pressing the "SALES ORD." button in the notification screen. We're now interested in creating a 2nd Sales Order which would tie directly to the same Service Notification. This is so that we can have the second order assigned to a different account assignment WBS (there are two different parties doing work on the service notification).
I assume you would have to go to VA01 to create the Sales Order, but am not sure how to tie it directly to the service notification from here. I treied to do a create with reference, but there is no ability to create with reference to a service notification.
Do I have to create a second service notification for the 2nd Sales Order for this to work? I want to avoid doing this if at all possible.
I'm running SAP R/3 Enterprise
Thanks for your help!Hi,
go to vtaa- copy controls for sales document to sales document.
select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
No need to change update document flow.
After setting zero in copy control that be told on above. create order with respective to the quotation.
After saving the order.
go to document flow to see the status in between quotation and order.
If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
Have a good day.. -
Multiple Sales Orders from One Quotation.
Hey SD Gurus,
I want to create multiple sales orders referring to one quotation. When I create the first sales order the status from quotation change to Completed and this doesn't enable me to create a new sales order. Please let me know how to satisfy this requirement. Thanks in advance.
Please search the forums before posting - see [rules of engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
Edited by: Ian Kehoe on Mar 2, 2012 2:17 PMHi,
go to vtaa- copy controls for sales document to sales document.
select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
No need to change update document flow.
After setting zero in copy control that be told on above. create order with respective to the quotation.
After saving the order.
go to document flow to see the status in between quotation and order.
If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
Have a good day.. -
Single idoc generation for multiple sales orders
Hi,
Pls let me know how do we generate single idoc for multiple sales orders.
Its not collecting idoc. As we know we can generate an idoc for one sales order correspondingly
my requirement is to generate single idoc number for multiple sales orders.
Do we need to write a program.Amar,
To understand take HRMD_A04 as example. Root segment has Maximum 9999999999 defined.
Segm.type E1PLOGI
Minimum number 1
Maximum number 9999999999
Parent segment
Hier.level 2
This means that this IDOC types has capability to hold multiple HR Master data objects. PFAL program creates this IDOC and it has facility to mention the Objects per process, check selection screen.
I checked for INVOICE01/02 its not possible there. Hope this clarifies. -
Issue while trying to create Sales Order from Inbound Idoc ORDER05
Hi All,
I am trying to create a sales order through an Inbound idoc ORDERS05 created out of a Purchase order. The header pricing conditions from the Purchase orders gets populated in E1EDK05 segment and this needs to go to the Sales order header conditions while trying to create the Sales order.
But when the fields are getting incorrectly mapped to the Sales order. Issue being, the segment E1EDK05-BETRG contains the condition value. But this fields gets populated to the KOMV-KWERT (condition value) screen field on the Sales order header conditions. But this should have got mapped to field KOMV-KBETR (Rate). If I look at the Purchase order, E1EDK05-BETRG is the field getting fetched from field KOMV-KBETR on the Purchase order. So this should have correspondingly got mapped to KOMV-KBETR on the Sales order as well.
This looks like a standard behavior. But if any of you have encountered this issue before please let me know if any Correction instructions are available for the same. If this some issue in Pricing conditions configuration, do let me know.Hi Paaavan
You can set a break-point include "FV45PFAP_VBAP_BEARBEITEN_VORBE" that is called by both the SAP Standard and BAPI where the data is prepared and checked in the internal table XVBAP. Compare both SAP standard VA01 and your 'Z' program for what may be different in XVBAP.
I think the problem my be with regards to the business_object number that is hardcoded in the standard function module. It has given me issues before and hence I tend to use the function module SD_SALESDOCUMENT_CREATE to create sales documents with.
Regards,
Marius -
How to create an invoice from multiple sales doc.
Hi,
how to create an invoice from multiple sales doc.
thanx,
souravhello, friend.
assuming that your settings in VTFA and VTFL allow, you can create 1 invoice for many sales orders or deliveries by using VF04. choose all documents that apply and click "collective billing document".
you can also click on "simulation" if you want to test if the combination is possible and the system will give you a split analysis if this is not possible.
regards. -
Find Sales order number from IDOC number
I have a bunch of SO idocs, in status 64. They are then posted and Sales orders are created.
How can I programatically find the Sales order Number from the Sales Order idoc number once it is in status 53 (other than going to EDIDS and checking if status = '53' and grabbing the 'STAPA2' field there ).Look at table EDIDS for sales order idocs and you can see SO number in any of STAPA1/2/3/4 variable for specific message id and message number.
-
Crating multiple sales orders based on one inbound purchase order idoc
Hi All,
I have a requirement to create multiple sales orders based on single inbound PO idoc.Please let me know whether is it possible or not?
Regards
maheshHi Mahesh,
What is your crieteria for different SO's ?
Regards
Megha -
Assign Multiple Sales Org for One Plant in STO process
Hi Experts,
Aware that I can assign multiple sales org to 1 plant (relationship: many to many).
I am trying to create STOs to supplying plant and assigning them to different sales organization but encountered problem.
Example:
Supplying Plant 1000 - Sales Org 1000A (food) and 1000B (apparel)
Receiving Plant 1100
Plant 1100 wants to issue 2 STOs to Plant 1000 - 1 for each Sales Org (for instance STO1 to food division, and STO2 for apparel division).
However, when I tried creating STO in the system, noticed that in the shipping tab (item details) the sales org, DC has been assigned to 1 particular assignment and data is locked.
Tried to get into SPRO to configure and define the shipping data for plants but noticed that it's 1 to 1 relationship (SPRO - IMG - MM - PO - Set up Stock Transport Order - Define Shipping Data).
How can this be done?You can set different sales areas (~sales organisation) for one plant in SAP - based on issuing SLoc provided STO between storage locations is activated.
SPRO > Materials Management > Purchasing > Purchase Order > Set up Stock Transport Order > Set Up Stock Transfer Between Storage Locations > Define Shipping Data for Stock Transfers Between Storage Locations
Edited by: Csaba Szommer on Jul 2, 2011 6:14 PM
Maybe you are looking for
-
Can I move the Lightroom Catalog from one location to another?
Lightroom by default, places the Lightroom Catalog in the Pictures folder on my PC. My image library though, is located on an external hard drive. I've read that it is better to have the Catalog at the same location to avoid disconnected images, whic
-
Can't start macbook after a failed installation.
-
Adobe Acrobat 8 unable to load plug-in in Window Vista
I have developed a plug in for Adobe Acrobat, but Abode Acrobat unable to load the plug in. I try to troubleshoot the problem by putting a messagebox in the PIHandshake function. Noticed that, the function is not being called by Adobe Acrobat when Ac
-
MOVED: how can i find out if my video card has reached the repair centre
This topic has been moved to Anything Under The Sun. https://forum-en.msi.com/index.php?topic=183793.0
-
How do I override expired black ink cartridge error on d145
My All in One d145 printer started to show a black ink supply expired error. I replaced the old black ink cartridge with a new one but it too is expired. It was new and still in plastic so the ink should still be good. When I get the error the mes