Rfc to idoc...... how to create order
hi,
i worked on rfc to idoc scenario...... using matmas idoc to create material from r/3 system to IDES system through (rfcxiidoc) scenario
Now i want to do it to create an order using rfc to idoc
I am not sure which IDOC structure i will use and which fields are mandatory and optional?
I am looking to do that scenario with minimum required fields
hussaan
hi,
The fields which are mandatory in case of order creation depends on your system settings.Like for a sales order or purchase order,you first create an orderusing transaction me23n for purchase order and va01 for sales order and check which fields are mandatory and get minimum no of required fields.
In this PO to SO scenario Idoc message controls will also come into picture.
Then after doing the required ALE settings you can test your scenario.
regards,
ujjwal kumar
Similar Messages
-
IDOCS: How to Create Address Master to tranfer TPSLOC01 Idoc
Hi Gurus,
We are tranferring Location Masters like Customer, Vendor, Plant through TPSLOC01 IDOCs from SAP ECC 6.0 to Third party Trnasport Management System.
How to create Address Master Data (TRMTYP-AD) separately like Customer Master (TRMTYP-CU, Vendor Master (TRMTYP-SU) so that we can tranfer the Address Master Data through TPSLOC01 IDOC.
Thanks&Regards
SreekanthHi All,
This is closed as we have transferred only General data of the customer.
Thanks for all.
Sreekanth -
IDOC: How to create child segment with abap code.
Hi,
I'am trying to write an abap code to create segments for an Idoc which structure is the following:
ZLE_00060_DLVY
> E1EDL20
> Z1DEL_CONS
>Z1DEL_MAT_HEADER
> Z1DEL_MAT
> E1EDL20RET2
> E1EDL22
> E1EDL21
> E1EDL23
> E1EDL51
I receive a sintax error: Error in IDoc with status 26 .
Checking the result I note all segment at the same level and an error about the segment E1EDL22
EDI: Syntax error in IDoc (segment cannot be identified)
Message no. E0078
Diagnosis
The segment E1EDL22 does not occur at the current level of the basic
type DELVRY05 (extension ZLE_00060_DLVY).
This error can have several reasons:
o The segment E1EDL22 is assigned to a group whose header segment does
not occur.
o The segment E1EDL22 does not exist in the syntax description of the
basic type DELVRY05 (extension ZLE_00060_DLVY).
o The sequence of segments in the group in which the segment appears
is incorrect.
Previous errors ('mandatory' segment or group missing) may be due to
this error.
Procedure
Please check the IDoc or the syntax description of the basic type
DELVRY05 (extension ZLE_00060_DLVY).
After the error I have:
data records
E1EDL20
Z1DEL_CONS
Z1DEL_MAT_HEADER
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
Z1DEL_MAT
E1EDL20RET2
E1EDL22
E1EDL21
Abap code:
idoc_data-segnam = 'Z1DEL_CONS'.
idoc_data-sdata = s_z1del_cons.
append idoc_data.
idoc_data-segnam = 'Z1DEL_MAT_HEADER'.
s_z1del_mat_header-tsegment = 'MATERIAL'.
idoc_data-sdata = s_z1del_mat_header.
append idoc_data.
clear idoc_data-sdata. <<<<<<<<<<< how to indent the structure because this is a child.
idoc_data-sdata = s_Z1DEL_MAT.
idoc_data-segnam = 'Z1DEL_MAT'.
append idoc_data.
idoc_data-segnam = 'E1EDL20RET2'.
idoc_data-sdata = s_E1EDL20RET2.
append idoc_data.
clear idoc_data.
idoc_data-segnam = 'E1EDL22'.
idoc_data-sdata = s_e1edl22.
append idoc_data.
clear idoc_data.
idoc_data-segnam = 'E1EDL21'.
idoc_data-sdata = s_e1edl21.
append idoc_data.
Any help will be well appreciated.
Thanks in advance.
Regards,
GiovanniHi,
following in debugging mode the abap code of the INCLUDE ZXTRKU02 where is defined the TABLES IDOC_DATA STRUCTURE EDIDD, I find that all field of the table IDOC_DATA are not set. More exactly my expectation is to find values for SEGNUM, HLEVEL, PSGNUM.
In a few words I need to execute an enhancement, via abap code, of the struscure of the idoc before sending it out since I have a requirement to test this enhancement in my XI environment, receiving as input this ideoc modified.
Then, I need to add a new segment and one child.
Any suggestion will be well appreciated.
Thanks in advance.
Regards,
Giovanni -
ALE/IDOC-How to create Change Pointers for Custom Infotype
Hi,
My requirement is to transfer custom OM infotype changes using IDOCs.
But its not creating any change pointers for that infotype.
The message used is a copy of standard message OM_HRMD_A.
Can any one please help me out in this issue.
Thanks,
SarikaHi Sarika,
How did you solve this issue? We are also facing a similar problem, it will be helpful if you could explain how you found out the solution.
Thanks
Anu. -
HOW TO CREATE ORDER ON REST???
hey anyone has created crs order using rest web services ???
Edited by: 961757 on Sep 27, 2012 1:11 AMI think all you need is to create a REST session for a given user and then access ShoppingCart component's current property which will create the order if it is not already existing. Pseudo code would be like:
RestSession session = RestSession.createSession(HOST, PORT, USER, PASSWORD);
session.setUseHttpsForLogin(false);
String loginStatus = session.login();
if(loginStatus == null || "null".equals(loginStatus)) {
// Login failed
else {
// Login successful
RestResult result = RestComponentHelper.getPropertyValue("/atg/commerce/ShoppingCart", "current", null, session);
String responseData = result.readInputStream();
if (responseData != null) {
JSONObject json = new JSONObject(responseData);
String currentOrderJson = json.toString();
}And of course, to make it work you would also have to setup REST security configuration in /atg/rest/security/restSecurityConfiguration.xml giving the required privileges to the user that you are using in creating the RestSession. -
I would like to analyze orders according to several criterias. For example, first by region : region 1 and region 2. Then, for every region, I would like to analyze by tcustomer type : type X and type Y. Then, for every customer type, I would like to analyse by product brand...
I believe I can do that via Orders Group (tcode: KO01).
Could you help me with that please ?
Regards,
Bahia.Hi,
Functionally, your group is not hierarchy-oriented; that's why SAP does not allow it. It's not an hierarchy, but rather an OLAP-cube, that you are describing.
I suggest you create independent groups; for cities, brands , regions, etc. Alternatively, you can work with classifications in internal orders and assing a characteristic to each internal order in terms of city, brand, etc. This will be better approach for reporting, if you want to see/select all the dimensions together. For separate analysis of the dimensions, creation of separate groups will be enough.
Regards,
Eli -
How to create order of filterPath?
Hello! I'm a complete newbie to Adobe Flex and coding in general. But I've been tasked with creating a Treemap for work. I can get the Treemap to filter by sector. But I need an overarching filter by team.
This is my xml coding.
<project name="Automated Staff Distribution"
description="Automated Staff Distribution" team="Priority One" sector="Resources" priority="2"
completion="3">
My filterPath is set up like this.
filterPath="{['@sector', '@name']}"
Whenever I try adding team into it, I lose the sector or the name or both. I have three team categories which should branch into about other categories. Ex., Team=Priority One has four sectors, Team=Priority Two has five sectors, Team=Priority Three has two sectors.
Please help!
Thank you!!Hi,
It's in the customization. You can access it via KOT2_OPA transaction (that's for Controlling internal orders).
Regards,
Eli -
How to create orders and deliveries on Non-working day.
Greeting all,
We set up all our national holidays and Sundays as non-working day in our working calendar for Japan(OY05) .
But I have a request from Sales Dept that only one customer wants us to deliver products on the holidays.
We don't want to affect other customers delivery date so we are thinking we have to change the holiday to working day on the day before the holiday for the customer.
But we need a complicated procedure to change the calendar in our company IT rule so I am wondering if there is any other good solution that we don't have to change the calendar so often.
Does anybody have the same situation like this?
I will appreciate any kind of suggestion.
Thank you very much for your help in advance.
Best regards,
MikiGeorge,
I understand that is simple and correct procedure but I wanted to consider other possibilities to ship on non-working day because it is NOT working day here.
Finally, our management have decided we don't change the calendar and ship with date the system proposes. They explained the customer and our distributor center that shipping date is one day ahead because of the calendar.
To all,
Thank you very much all of your advice.
Best regards,
Miki -
Soft errors/warnings are creating idocs in 51 status, and creating orders
In our SAP 4.7 environment, inbound orders that encounter credit checks, materials in the wrong status, blocked customers, and several other issues that should just be warnings or messages rather than resulting in status 51 idocs, are hitting 51 error status, and they are creating orders in SAP as well (51 status idocs are still creating orders, and nuisance messages are creating 51 status idocs, and still creating orders). I assume someone made some programming changes years ago to cause this to happen. This is really polluting workflow and BD87, and customer service is duplicating orders as they process 51 status idocs through workflow, unaware that orders already created immediately regardless of the 51 status.
Can anyone point me in the direction of where I can specify what warnings or errors constitute 51 status, and where I can stop 51 status idocs from creating orders until the error is repaired?
Would it be in program RBDAPP01, or the inbound function module EDI_DATA_INCOMING?
Any help would be appreciated. Thanks!Hi Kevin,
so then it is time to check it out in WE19 debug mode. After each PERFORM in the EDIDC Loop in the FM IDOC_INPUT_ORDERS, check the control and status data, this will lead you to the point where the unexpected and/or unwanted behavior appears.
In the LOOP AT IDOC_CONTRL, in our system line 183 you find the comment fill IDOC Status. Check if field OK is not cleared here. If OK is set although you should have errors, then it's already too late.
But please double-check EXIT_SAPL_VEDA_004 if it changes the tables parameter didoc_status = idoc_status.
What I did not mention yet as I think you are talking only about IDoc not about online processing, applies to both:
Customizing SPRO, SAP Reference IMG, Sales and Distribution -> Sales -> Sales Documents -> Define variable messages:
Here you may have entries for application area V4, Sales messages (variable messages and EDI messages). Check if you find suspicious messages set to 'W' here.
If this is the case and table logging is switched on as it should be, you can use menu uitilities -> change logs to find out who changed what when.
Good luck!
Regards
Clemens -
Free goods , contract, creating order
Hello SAP Prof,
1. what is the diff b/w Free goods and Bonus buy?
2. What is Rental Contract and service contract?
3. How can we create our own order ,
( we can copy std order.) But plz tell me how to create order with copy controls in detail.Hi Rajesh
Free goods are considered to be merchandise, moveable belongings or personal property. Free goods are those which economists are not interested in because in free goods doe not offer the opportunity for creating a cost for usage. The best example of free goods is air because there is no scarity of air. Economists are interested only in goods, which can be manipulated to create cost for useage. Free goods are plentiful, you have as much as you want without a chance for future cost to society.
A bonus buy refers to any product manufactured or otherwise made available for purchase at a lower cost for a certain period of time. A bonus buy can relate to food, cars, stocks, bonds, insurance, bank loans or almost any product you can think of.
Examples of Bonus buys are: Buy one and get one free, 20% original price, 15% Reduced Mortgage today.
SERVICE CONTRACT:
A service contract is an arrangement between a service provider and service recipient and is characterized by a separate lease and service contract term. The lease usually ranges from 22 to 27 years while the service contract ranges from 13 to 18 years in length. The combination of the lease and service contract terms is typically 80% of the useful life of the asset. While the equity return is based on the overall term, depreciation occurs over 125% of the lease term only which differs from a pickle structure where depreciation occurs over the entire deal term. The participants in this type of transaction are the service provider or lessor, service recipient or lessee, operator, and customer. Typically, a service contract is used with assets such as gas, water, and power distribution networks and generation facilities. However, they can also be applied to real estate and securitization transactions.
A service contract is considered a property lease under section 7701(e) of the IRS Code if certain requirements hold. These requirements are divided into general and special criteria groups. Section 7701(e) outlines six criteria in the general case which indicate when a service contract should actually be classified as a lease:
If the service recipient is in physical possession of the property
If the service recipient controls the property
If the service recipient has a significant economic interest in the property
If the service provider has no economic risk in the contract
If the service provider does not provide services to a third party
If the contract price does not substantially exceed the rental value of the property
To obtain classification as a service contract, the first two rules essentially require a management contract so that the service provider maintains control of the property. The service recipient is allowed to retain an interest in the land underlying the asset via a ground lease without being considered in physical possession of the property. However, they will not be able to mandate how the property is maintained, operated, or improved. There are five rules to consider which determine significant economic interest in a property:
If the property is utilized by a service recipient for most of its useful life
If the service recipient bears the risk of a decline in value of the property
If the service recipient shares the reward for an increase in value of the property
If the service recipient receives a portion of savings in operating costs
If the service recipient bears the risk of damage or loss of the property
To be considered a service contract, the fourth general rule requires the service provider to bear the risk of reduced receipts or increased expenses as the result of non-performance under the contract. An exception to this rule is a provision which allows for an output contract to remain in force during short shut-downs of a facility. To resemble a service contract, the fifth rule states that services must be provided to someone other than the service recipient. For example, a purchaser of power should allow sales to customers and not use all of it for themselves. The last rule states that the total contract price should substantially exceed the value of the property to be classified as a service contract. Thus, if the contract price is derived mostly from recovery of costs of the property or there is a separation between use and service charges of the property, then the contract will resemble a lease.
An important item to note is that not all six requirements need to be satisfied to be considered a service contract. Section 7701(e) does not weight any of the criteria but simply allows for a contract either resembling a lease or a service contract. This would imply that a simple majority of criteria is necessary for classification.
Section 7701(e)(3) provides special rules for determining whether a contract is a service contract. These special rules apply only to the following types of facilities: qualified solid waste disposal, cogeneration, alternative energy, and water treatment works. The following four special rules replace the general rules for the above facility types and indicate when a service contract should actually be classified as a lease:
If the service recipient operates the facility
If the service recipient risks a significant financial loss when there is non-performance under the contract
If the service recipient risks a significant financial gain when operating costs are less that the standards of performance under the contract
If the service recipient has a purchase option or is required to buy all or part of the facility at a fixed price other than the fair market value
There are three main differences between the special and general rules. The first one is that with the special rules, lower operating costs cannot be passed on to the service recipient. Secondly, the risk of temporary shut down of the facility can be shared by the service recipient. Lastly, all costs and benefits due to changes in the law can be passed on to the service recipient.
Service contracts have less tax downside and less financial risk as well as more even returns over time. Also, the contract must be carefully structured to qualify as a service contract. While it is easier to qualify under the special rules, there are many fewer available facilities. The main tax benefit for classification as a service contract is the allowance for depreciation over 125% of the lease term rather than 125% of the combined lease and service contract terms.
RENTAL CONTRACT
A rental agreement is a contract, usually written, between the owner of a property and a renter who desires to have temporary possession of the property. As a minimum, the agreement identifies the parties, the property, the term of the rental, and the amount of rent for the term. The owner of the property may be referred to as the lessor and the renter as the lessee.
COPY CONTROL
Copy Controls
The Copy controls enable a Document in SD to be created by referring to an existing document
Document referred: Source document
Document created: target document
Copy controls enable data to be copied from source to Target document
Copy controls to be maintained for Header, Item, Schedule line
QT---OR
Header Header
Item Item
Schedule line schedule line
Copy controls have 3 controls
a) Copying requirements
b) Data transfer routines (a program)
c) Switching requirements
Copying requirements: only if the requirement is met copying takes place
IMGSDsalesMaintain copy controls for Sales documents
Copying control sales document to sales document
Header
Position
Target: OR
Source: QT
Select OR+QT and then select details button
We can see Copy controls
Copying requirement: Same Customer
Only if the requirements met then only Copying possible
Data transfer routines
a) General header data
b) Business data
c) Partners
Switching requirement: Copy item number
Only those items cleared for copying will be copied into target document with item numbers unchanged
Item level Copy Controls
First select combination OR+QT
Click item
Select Item category of source document and select Details button=AGN
Copy controls for item level
Requirement: item rejection reason
Only those items which are not rejected in source document will be copied into target doc
Switching requirements: Copy schedule lines
Activate document flow at item level
This automatically updates item status in the reference document and new document
+Ve/ -ve qty
Quotation 200302 AGN
10 M1 100 Pcs
Copied into order 25 pieces TAN
Completed qty= 25
2nd copy
Copied 50 nos
Completed item = 25+50=75
This means there is + ve effect on Completion qty
-ve effect exists in the case of item level copyng from credit note in the case contracts
Pricing type: Pricing type controls how the pricing to be determined in target documents
Example:
a) Copy all pricing elements unchanged and redetermine scales
This can be overruled by update Control in the Pricing
Schedule line
Select OR+ QT
Select schedule line
Select schedule line category BN
Select Details
Copying requirements:
Schedule line qty>0 then only copy
Note1: when we create a new document by copying standard document, copy controls also get copied
Note2. Copy controls can be seen at all different times of documents like sales, delivery and billing in customization
Reward if useful to u
null -
Create order with CHANGED_AT CREATED_AT old
Hi Gurus,
My requirement:
I have to do a massive load of orders with the fields CHANGED_AT and CREATED_AT old.
The thing is exist a table which doesn't allows me to changed CRMC_FIELDCHECK (and I cannot change)
Does anybody know how to create orders with filling this parameters with old date values.
Thanks in advance.
Regards.
DiegoI'm afraid you won't be able to do it that way, I would suggest to create a custom date profile to store this information.
Cheers!
Luis -
How to create IDOC from Function module or RFC
Hi all,
I have tested one inbound IDOC for Time Upload to CAT2 using basic type "CATS_INSERT01" in WE19 through function module BAPI_IDOC_INPUT1 .It works well.
Now i need to create this IDOC once the sale order gets created thru BAPI.
For creation of Sale order i wrote one RFC in which i will call the Standard Sale Order Bapi.My question is once the Sale order gets created in that RFC How do i trigger the IDOC for CATS upload.Hi,
Which SAP product of wich release of which SP are you using ?
The procedure is documented in help.sap.com and in blogs and SDN forum messages.
It means that the use of the SEARCH button should give plenty of answers...
>When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
As usual, begin your choosen name with an "Z".
Regards,
Olivier -
SD How to create IDoc once Sales Order Invoice (Billing) has been created ?
Hi,
How to create IDoc once Sales Order Invoice (Billing) has been created ?
I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
ThanksHello,
Go to T.code VV31 and select the billing output type and select the access sequence required and in the details screen of create condition records give all the required entries for eg: may be Billing Type, Sales Organsiation etc.and in the medium choose the option as 6(EDI) and time select as 4 that is immediately after saving the document.Also please ensure that particular partners for whom idoc should be generated they need to have partner profile setup with the billing message types. Hope this helps. -
How to create IDoc once Sales Order Invoice (Billing) has been created
Hi,
How to create IDoc once Sales Order Invoice (Billing) has been created ?
I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
Thanks.Hi,
We need to do custom configuration for this scenario such that an output type will be attached when ever an INVOICE is created.
Refer to application V3 in NACE. The Output type should contain an entry with transmission medium: Distribution (ALE).
for example check the customization done for an output type in NACE.
Goto NACE ---> Select an application V3 ---> Click on processing routines ---> select the output type (Eg: RD00) ---> Click on Details button (CNTRL + SHFT + F2) which gives the configuration info.
For example we can generate the IDOC based on the settings in partner profiles for the customer (Sold To)
With Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 8:16 AM -
How to Create a Return Order wrt a Standard Order using Inbound IDOC Orders
HI,
We have a scenario :
Standard Order - is exiting in System with 2 line items :
Item 10
Qty 20
Item 20
Qty 30
Is it possible create a Return Order With Reference to this standard order for Line Item 20 only using inbound IDOC Orders?
If yes what should be the mapping in the IDOC about the Standard Order, Item and QTY ?
Regards
Anuraghi,
try using this bapi.
/AFS/BAPI_SALESORD_CREATEFDATA.
thanks,
satish
Maybe you are looking for
-
How to delete a Root Organization in Process Control 3.0
Hi Experts, Wrongly I created a root Organization in Our PC 3.0 system.Now I am unable to do that. Can anyone please tell me, how to delete the same. Thanks in advance. Regards, Guru
-
Adobe reader not open the file immediately after saving it with Microsoft Office
I have an older version Adobe Reader 9, and worked fine until today. I did the upgrade to Adobe Reader XI (11.0.06). I have Window´s Office 2010 on my computer. When I save a document on *pdf file, Adobe starts automatically and open the document (Op
-
Can't make drag and drop aiff file from finder work
I've tried, many times, to drag and drop an aiff file from the finder into a GB 1.1 document without success: it does not appear in a track previously created in the document, nor will it create a new track for itself. Any suggesstions would be a gre
-
In ipad 3 upgraded to 4 ios, may by anyway view Local Network files[e-book] or videos or html pages, from the main PC if, this main has local host[php/mysql] or, from the local network itself: eg //user/downloads/pdf/ebook1.pdf?
-
Getting Error :Error when instantiating WebService runtime
Hello All, I am a new to Webservices and writing a test program .I am using the ECC 5.0 .I am calling a Webservice from R/3 .I am trying to call this webservice :[http://webservices.daehosting.com/services/isbnservice.wso?WSDL]. I am