Create Sales Order with ES and LORD throws "not an input field"
Hello,
Im am getting the error:: "Field AUART is not an input field"
I am trying to use the enterprise service: PurchaseOrderRequest_In for creating a Sales Order in ERP. I have done the settings under:
- (IMG: Sales and Distribution -> Electronic Data Interchange -> EDI Messages -> Configure EDI Partners -> Convert External To Internal Partner Numbers )
- (IMG: Sales and Distribution -> Electronic Data Interchange -> EDI Messages -> Configure EDI Partners -> Assign Customer/Vendor To Sales Organization Data )
- Customizing transaction WUFWUF -> Transformations , application CL_PUR_PURCHASEORDER_RQ
- SD_01 business function is activated
Now when I send in a message I can monitor the errors in /SAPPO/PPO2 I get a list of errors telling me:
"Field AUART is not an input field" and the same error for 5 other fields. If I debug the method I can see that the table LORD_MAPPING is read. It also looks like the service actually calls program SAPMV45A with screen 4440. This screen does not contain the fields with error. The errors are caught in
class: CL_LORD_OBJECT
Method: DO_IMPORT_MAPPING
Line: 58-72
, due to <field_inpmod> eq '0'. This is the input mode for the screen used.
Any pointers to what I have missed would be greatly appreciated.
Best regards,
Emil Jessen
check function group XVED. Within this function group there are some includes that allows you to change the behavior of SAP while creating the sales order after EDI inbound.
There are the two includes ZXVEDU03 (to add additional data from the IDOC to the sales order) and ZXVEDU04 (to modify the batch input for creating the sales order). Maybe you can find your fields in here and clear them, so that SAP doesnt try to change the order-type field in EDI processing.
In case you want to allow certain fields to be editable, check userexit MV45AFZZ form "userexit_field_modification". There you can set fields editable or not.
Example:
CASE screen-name.
WHEN 'VBAP-MVGR3'.
IF sy-tcode = 'VA01'.
screen-input = 0. " 0 = field NOT editable, 1 = field editable
ENDIF.
ENDCASE.
Regards
Ralf
Similar Messages
-
How to create sales order with configuration?
Hi, all!
I'm trying to create sales order with multi-level BOM's explosion using BAPI_SALESORDER_CREATEFROMDAT2, but with no success.
Scanning and following ton's of OSS notes and already posted answers in this forum regarding configuration in sales order doesn't lead to success to.
So can anybody throw light on rules for populating data structures for items and items configuration in case of multi-level BOM's explosion in sales order? Providing working code snippet would be great.
Regards,
Maxim.Hi, all!
Just want to properly close the thread and share experience gained.
The main reason of error was in incorrect TABLES parameters populating for sales order items and their configuration.
Not the secret that there is a lack of documentation for even BAPIs FM, especially for comprehensive things to do. And it seems that the right way to resolve proper structure of import/tables parameters for "creation/change" function modules is to call "corresponding read-FM" for object created on-line and see how return parameters are populated.
For example, for BAPI_SALESORDER_CREATEFROMDAT2 such corresponding FM is BAPISDORDER_GETDETAILEDLIST, which returns near the same structures.
Actually in my case such algorithm was used in the first place. But BAPISDORDER_GETDETAILEDLIST returned wrong parameters as was discovered later This error was fixed by implementing OSS note 821191 and sales order was succesfully created.
And I want to thank SAP Support experts in effective assistance. 10 points are yours!
Regards,
Maxim. -
Error while creating sales order with ref to contract
while creating sales order, with refernce to contract system is giving a message
Configuration not possible for material : Reason 3 --> Help
Message no. V1360
and the message is as follwed can any one explain
Diagnosis
This may have been caused by one of the following:
1. The configuration profile for the material allows or requires the bill of materials to be exploded during order processing. However, a plant has not been specified in the item.
2. The configuration profile of the material allows or requires the bill of materials to be exploded during order processing, but the order quantity in the item must be greater than 0.
3. A configuration profile has not been maintained
or
A configuration is not permitted for the material
or
4. The configuration profile of the material allows or requires the bill ofmaterials to be exploded during order processing. However, the system could not determine a date because important data is missing from the item (see incompletion log).Hi
I think you have both Variant configuration and BOM.
Pls ensure the following.
1. BOM masterdata is maintained for the variants
2. Variant configuration is configured correctly
Configuration profile is created for the material
Knowledge base object and run time version are available
3. Maintain materials as not relevant for delivery or dont give delivery quantity as 0
Once you are sure that these are in proper shape, you can start creating order. The problem wont come.
Reward points if it helps you. -
BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER
Hi ,
I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
but couldn't find for create with reference to Order ...
Thanks in advance ...
Regards
Rajesh.Hi,
You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
Reward if it's useful.
Thanks,
Anil -
Create sales order with reference to 10 quotation
Create sales order with reference to 10 quotation I want to put all quotation means take reference in one sales order how I can do it because when tried va01 and taken reference of question it allow to put only one question number how can I do it for multiple question
AhmedHi Raj,
If you come back to initial screen after coping the first quotation ,then system will ask you whetehr to save or cancel the data,if we select save then it will be saved immediately,else it will cancel.So ,it is not possible to copy more than one quaotation in standard SAP.The only option is to deveop a BDC with the help of abaper.
We can only create this when header data is same in all the quotations.
Regards,
Pasapula.
Edited by: Pasapula on Jul 24, 2009 9:48 AM -
Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER
Hi,
How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
Thanks in advance,
Alejandro.I have to create sales order with reference to existing billing document. I have tried to following bapis.
1. BAPI_SALESORDER_CREATEed
I have successfully created document with following details.
-->ORDER_HEADER_IN:
DOC_TYPE = ZRK
SALES_ORG = 3000
DISTR_CHAN = 00
DIVISION = 00
ORD_REASON = 100
SD_DOC_CAT = L
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_ITEMS_IN:
ITM_NUMBER = 000010
MATERIAL = 701791
TARGET_QTY = 0000000001000
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_PARTNERS:
PARTN_ROLE = SP
PARTN_NUMB = W12001
COUNTRY = NL
by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN
COND_TYPE = PNET
COND_VALUE = 14,56
COND_D_UNT = PC.
folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
is it something related to configuration problem?
2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
Unpermitted combination of business object BUS2032 and sales doc. category L. -
Create sales order with reference to archived billing
Hello,
Is it possible to create sales order with reference to archived billing?
Thanks in advance and kind regardsHi,
I think it is possible only return sales orders.
regards
karunakar -
BAPI: Create Sales order with reference to Quotation
Hi ...
I am using bapi BAPI_SALESOREDER_CREATEFROMDATA2 and
i want to create sales order with reference Quotation... All quotation data like Materials prices and conditions must be copied from reference quotaion which is allready created .....
..Thanks..
..AshishHello,
nice to see that this has already been solved.
But it actually doesnt work in my scenario. Do you have an example coding which will explain your solution.
Mine looks like this:
* Update Flag
ls_header_inx-updateflag = 'I'.
* Angebotskopf einlesen
SELECT SINGLE * FROM vbak INTO ls_vbak
WHERE vbeln = iv_vbeln
AND vbtyp = lc_vbtyp.
IF sy-subrc <> 0.
EXIT.
ENDIF.
* Auftragskopf setzen
ls_header_in-doc_type = ls_vbak-auart.
ls_header_in-sales_org = ls_vbak-vkorg.
ls_header_in-distr_chan = ls_vbak-vtweg.
ls_header_in-division = ls_vbak-spart.
ls_header_in-req_date_h = ls_vbak-VDATU.
ls_header_in-ref_doc = ls_vbak-vbeln.
ls_header_in-refdoc_cat = 'B'.
* Angebots-Partner einlesen (Nur AG und WE)
* Auftrag anlegen
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
order_header_in = ls_header_in
* order_header_inx = ls_header_inx
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* testrun = 'X'
* CONVERT = ' '
IMPORTING
salesdocument = ev_vbeln
TABLES
return = et_return
* order_items_in = lt_items_in
* order_items_inx = lt_items_inx
order_partners = lt_partners
* ORDER_SCHEDULES_IN =
* ORDER_SCHEDULES_INX =
* ORDER_CONDITIONS_IN =
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES = .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Unfortunatly this just makes the reference to the quotation but does not takeover ALL data from header and pos level.
Thanks and regards
Markus Armbruster -
Issue when creating sales order with Sold-to/Ship-to Party's state
Hi All,
we have issue while creating Sales Order with picking up of State tax
for Ship-to-party & Sold-to-party.
<b>When we create a sales order, for the sold to party 140052732 and
ship to party 140052733 it is picking state tax. Which should not
suppose to pick? Because the partner is marked as tax exemption</b>.
Can any body tell me how can we solve this issue!
Why this is happening!
How to make not to pick tax when it is marked for tax exemtion.
As i am not Functional guy i am not aware what is happening here!
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi Deep
What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
If so go and check the condition record meant for it. Follow the following steps
1) Go to Sales order
2) Select the line item for which the state tax is being picked.
3) In the condition tab select analysis.
4) In Analysis you shall find the condition type meant for state tax.
5) See which condition record has been found.
6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
7) If wrong correct it.
8) If anything else come back to the post and inform the details
Thanks
Regards
Sunil -
Issue when creating sales order with Sold-to/Ship-to Party's state tax
Hi All,
we have issue while creating Sales Order with picking up of State tax
for Ship-to-party & Sold-to-party.
<b>When we create a sales order, for the sold to party 140052732 and
ship to party 140052733 it is picking state tax. Which should not
suppose to pick? Because the partner is marked as tax exemption</b>.
Can any body tell me how can we solve this issue!
Why this is happening!
How to make not to pick tax when it is marked for tax exemtion.
As i am not Functional guy i am not aware what is happening here!
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi Deep
What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
If so go and check the condition record meant for it. Follow the following steps
1) Go to Sales order
2) Select the line item for which the state tax is being picked.
3) In the condition tab select analysis.
4) In Analysis you shall find the condition type meant for state tax.
5) See which condition record has been found.
6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
7) If wrong correct it.
8) If anything else come back to the post and inform the details
Thanks
Regards
Sunil -
Issue in creating sales order with ref contract(quantity)
hi friends,
I am creating sales order with reference contract using
"BAPI_SALESORDER_CREATEFROMDAT1"
my issue is with quantity field when i am entering quantity as 1 then it is taking as 0.001
i am also declaring its unit field too but there is no change.
in my program i am taking quantity as parameter.
field description is like this Order qty in sales units - 00009001 corresponds to 9.001
is there any chance of changing the quantity .
please help.There is another similar post...look at those comments. Consider the data types in use...in true numeric fields with decimals, the decimal is implied, so look at how you're sending and/or converting any value.... For instance, if I were sending data to a quantity field described as curr 15, decimals 3, I would expect that I needed to send 1.000 (or perhaps 1000, depending on my testing) in the input to get a quantity of 1.
-
BAPI_SALESORDER_CREATEFROMDAT2 for creating sales orders with configurable
Hi All,
I want to create sales order with a material which in turn triggers a configurable network order.
I am using the following BAPI : BAPI_SALESORDER_CREATEFROMDAT2.
After reading the "[Variant Configuration (LO-VC)|http://help.sap.com/printdocu/core/print46c/en/data/pdf/lovc/lovc.pdf]" documentation, I thought I had to populate the
following tables ORDER_CFGS_REF, ORDER_CFGS_INST and ORDER_CFGS_VALUE.
The call function return no errors and the sale order is well created. However, I have no values in the network.
If I created a sale order in VA01, a network is created with value. So the customizing is good.
Do you have any idea how to populate this tables ? Sample code will be very helpful.
We found in this forum a lot of sample code about configurable material, with obj_type populate with MARAu2019. But no example with configurable network.
Actually I complete these tables like this :
" E1CUCFG
ls_order_cfgs_ref-posex = '000010'.
* ls_order_cfgs_ref-config_id = '000010'.
ls_order_cfgs_ref-config_id = '000001'.
ls_order_cfgs_ref-root_id = '00000001'.
ls_order_cfgs_ref-complete = 'T'.
ls_order_cfgs_ref-consistent = 'T'.
* ls_order_cfgs_ref-cbase_id = '4ECADFC4BE9F03A6E10080000AC4AB76'.
* ls_order_cfgs_ref-cbase_id_type = 'G'.
APPEND ls_order_cfgs_ref TO lt_order_cfgs_ref.
" E1CUINS
ls_order_cfgs_inst-config_id = '000001'.
ls_order_cfgs_inst-inst_id = '00000001'.
ls_order_cfgs_inst-obj_type = 'PLKONET'. u201C(in replacement of MARA)
ls_order_cfgs_inst-class_type = '300'. u201C(or 020).
ls_order_cfgs_inst-obj_key = '01000000801'.
APPEND ls_order_cfgs_inst TO lt_order_cfgs_inst.
" E1CUVAL
ls_order_cfgs_value-config_id = '000001'.
ls_order_cfgs_value-inst_id = '00000001'.
ls_order_cfgs_value-charc = 'XXXX'. u201C(corresponding to Flag DTA)
ls_order_cfgs_value-charc_txt = 'Flag DTA'.
ls_order_cfgs_value-value = '0'.
APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
Thanks,Have a look to OSS-Message 567348. There is sample coding for using BAPI_SALESORDER_CHANGE, but the parameters should be the same to yout BAPI
Best regards
Torsten Manhardt -
How to create Sales orders with external id ?
Hi Experts,
I wanna write a program to create Sales Order with external id via function muodule 'CRM_ORDER_MAINTAIN' and 'CRM_ORDER_SAVE'.But i don't know how to do and do any body tried it.The key issue is that how to use external id which is supplied by ourself rather than internal id supplied by system.
Thanks for all.Hi,
If you have already set the number range as an external range.
Then just passing the transaction type to field 'process_type' and external id to field 'object_id' of table ct_orderadm_h. Sales order will created with the assigned external id.
Hope this help.
cheers, -
Creating Sales Order with credit card using Process Order API
Hi All,
When trying to create sales order with payment type as Credit card using Order data storing into staging tables and then calling Order Import Concurrent Program. The order is being created in ENTERED state.
While trying to passing the same details to Process Order API to create Sales Order, we are getting following error:
Unable to set up a Credit Card Bank Account for the Customer.
Credit Card information on the order is not valid.
Why getting this error while using Process Order API.
Regards,
KANN.When using the API, are you trying to create the order as booked using the booked flag or the book action? I would recommend using the action if you are not. To troubleshoot, I would try the API without booking and then use the following article to determine the issue:
Unable To Setup A Credit Card Bank Account For The Customer. CC Information On The Order Is Not Valid (Doc ID 1450936.1) -
Problem while creating Sale Order with Reference
Hi Friends,
While creating a Sale Order with Reference, I am unable to copy few fields from Profit Segement(CO - PA Data) in Account assignment Tab.
Any solution how to copy all field values which are in Reference Sale Order Number.
Regards,
sg.Hi,
Go to VOFM you will find out data transfer routine.
Over here go for the order data transfer routine and select your data transfer routine which you use.
Now check you field name and table name for that particular field which was not copying.
It will be better if you ask your abaper for this.
You have to make changes over here only for data transfer routine.
Hope so this will help you out.
Regards
Raj.
Maybe you are looking for
-
HP Pavilion Elite e9120y bios does not recognize any cd/dvd/bluray or hard disk drives
I erased my hard disk to install Windows 7. Now my computer intermittently does not recognize that there are any drives attached to the sata ports. I go into BIOS pressing F10 and it does not list any drives at all. I have a DVD burner and a blura
-
I already paid for the service, but I can't seem to do the above. If I upload the entire thing the process fails, saying the file is too large...
-
Displaying TIF images from a Servelet?
Hi All, I have a servlet sitting between database of Images (of type bmp, tif, DICOM) and the HTML query interface. Baed on the user's input, the servlet queries the database and displays the images. The servelt's code contains out.println("<a href=\
-
Hello I am writing a tab limited file which gets its data from a string[][] array . When i try opening the file its messed up with square blocks in notepad and looks great with wordpad. I do know that Unix has '\n' as the line separator, whereas wind
-
Problem with starting Java IDL HelloClient example
I have no problems when starting orbd and HelloServer on one Windows machine and HelloClient on other Windows machine. But if I start orbd and HelloServer on linux machine I face the problem: HelloClient doesn't want to start. Here is the stacktrace: