Sales order VA01 with material checking
When I create a sales order in VA01, when I enter less than 3 different brand( material in line item), The system should first generate message, after that I should be able to block that order with giving proper reason and then I should be able to save that sales order.
so that the higher authority can check it for further processing.
This is the scenario.
Can anybody suggest me the user exit name with simple coding.
thanks
naresh
Hi
You can use the exits
userexit_save_document
userexit_save_document_prepare
in the order program(SAPMV45A) and include MV45AFZZ
Regarding coding...consult your ABAPer and explain the exact requirement.
Thanks,
Ravi
Similar Messages
-
How to create a Contract with reference to a Sales-Order(VA01) with a BAPI
Hi,
my name is Wadim and i need help.
My problem:
I am creating a sales-order(VA01) with the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'.
After that i have to create a contract(VA41) with reference to this order. I found the BAPI "BAPI_CONTRACT_CREATEFROMDATA" and it has the same interfaceparameters like the salesorder-bapi. but there are no parameters to get a connection to the sales-order.
Is it even possible to get a connection to a sales-order with a bapi???
thanks for help
regards mark
Edited by: Krapp Wadim on May 20, 2010 9:19 PMHi Wadim,
I have a similar requirement to create order lines in an existing contract with reference using BAPI_CUSTOMERCONTRACT_CHANGE. The order lines get created in the contract. However, the condition types from the order line which i'm referencing are not getting referenced and are not getting added in the Contract's line after referencing.
Did you come across any such issue ? If yes , could you suggest the solution ?
Regards,
Venkat. -
I trying to create sale order VA01 with reference of contract but contract not showing when I search.Can you guys help me to find out how to assign the contract to a sale order.
ThanksHello Sunil,
Contracts can be created in Tcode- VA41, Enter the document type according to your requirement. There are many kind of contracts such as quantity contract- QC, general value contract- WK1, Material related contract- WK2, Service contract - SC, Rental contract- RC or QP and master contract- GK.
Key in the required details and save the document. Create the sales order in VA01, click select with reference, you will find the pop up window where you will get six tabs, amonst em click on contract and enter the selection criteria and you will find your saved contract. If you want to change the quantity or value click on item selection which lets you to change the detail or else click on copy button.
This how it works. Let me know if you have any doubt.
Regards,
Jay -
Hi!
I'm trying to create a sales order VA01 with reference to a quotation QT, I get the error "Version 0 is not defined for the fiscal year 2011.
Thanks
SunnyHi,
Goto the T.Code "OKEV".
Enter the Controlling area.
Choose Append.Select "Version".Enter.
Enter Controlling area and version "0" and enter.
Choose item and double-click on "Settings for each fiscal year".
Choose last year item and press key F6.Copy.
Change the fiscal year.Enter.
Save.
Regards,
Krishna. -
VA01 - Sales Order - Cannot select Material relevant to Customer
Hi Gurus,
I tried to create a sales order VA01. I have put a SP and when I try to select his matching material, the system cannot find it when pressing F4 into the item field.
However, both customer and material have been created for:
- Same Sales Area
- The pricing procedure RVAA01 has been maintained in the Customer MD + at Sales Area Level
- The pricing condition PR00 is maintained at: Customer/ Material level
Can anyone help me find where the problem can come from.
Thank you.
ChrisHi guys,
Thanks for your support so far. The system tells me this:
No Item category available (Table 184 ZAM NORM)
ZAM is a Z- sales document which is a direct copy from OR a sales order.
Regards
Chris -
Order as Direct material check is not coming for shoppingcart with material
Hi,
We are using portal indpendent navigation screen (NWBC) SRM 7.0 extended classic scenario. Order as direct material check box is not coming in item data of shopping cart for shopping against the material. I checked every thing but not able to get the check box for order as direct material.
Please advise what to do.
(N. Kiran Kumar)Hi,
Please check that the component configuration has not hidden the field, it is under the following configuration:
General Information About the Application and Component
Application: /SAPSRM/WDA_L_FPM_GAF
Web Dynpro Component: /SAPSRM/WDC_DODC_SC_I_BD
Window Information: IV_L_FPC_CA_DETAILS
View Information: V_DODC_SC_I_BD
Configuration ID: /SAPSRM/WDCC_FPM_DODC_SC_I_BD_WI
Component Element you are looking for is ORDER_DIRECT_MAT_LABEL
Also check if someone has hidden the field using WD customizing onscreen, right click over the screen and choose 'User Settings', here check if any fields are hidden.
Regards,
Jason -
Sales Order (VA01)- Addtional Data Tab B Request
Hi All,,
This is sales order(VA01) relevant and I have added the new "ZZFIELD" field in the "Additional data B" which i kept screen painter attributes check box chosen "Input Field" and Input "required".
When i am creating sales order(VA01), the moment click on "addtional data B" ZZfield become mandatory input field able to save sales order sucessfully after keying data. But user want's, after enter line item data which is material & qty , then cursor required to go additional data B which is mandatory field ZZFIELD. Right now, user enters line item material , qty and he is able to save it Sales order and cursor is not going or waiting at ZZFIELD in addtional data B Tab(unless and unitl he press Additional data B Tab) .
Is there any solution after user enter material and qty after clicking enter cursor should go "Additional data B" wait at "ZZFIELD"(as this mandatory field before sales order save) ?
If we dont go the Additional data B and save the document , it's not giving the message "Make an Entry required fields and it is directly saving the document.?
Any help is highly approciate ....
Below code written already:
Program:SAPMV45A screen :8459 put PBO code as per below:
Loop at Screen.
If screen-name = 'VBAP-ZZFIELD'.
if SY-TCODE = 'VA01' AND ORDERTYPE = 'ZSS'
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
Best Regards
KushalHi Abdul ,
You dont have to do ny extra coding for the scroll bar once the no of fields increase with respect to the tsb screen area it will automatically have a scroll bar in it .
Hope it helps
Regards
Swapnil -
Sales Order and obligatory material's parameter fields - help!!!
Hi,
My problem is:
I've got to create material in MM by using BAPI_MATERIAL_SAVEDATA, so that this material can be later used as an item in Sales Order (SD). Do you know what parameter fields from which structures are obligatory in my case? I've already passed quite a lot of data to this BAPI, but I still get following error:
"Material myMaterial is not defined for sales org. 4000, distr.chan. 01, language FI"
Any suggestion will be appreciated and properly rewarded if useful.
My Java source-code is available below. Check this out and let me know what is missed.
* HEADDATA FOR BASIC VIEW
Structure headData = input.getStructure("HEADDATA");
headData.setValue(_material, "MATERIAL");
headData.setValue("1", "IND_SECTOR");
headData.setValue(_matl_type, "MATL_TYPE");
headData.setValue("X", "BASIC_VIEW");
headData.setValue("X", "SALES_VIEW");
//headData.setValue("X", "MRP_VIEW");
headData.setValue("E", "INP_FLD_CHECK");
* CLIENTDATAX FOR BASIC VIEW
Structure clientDatax = input.getStructure("CLIENTDATAX");
clientDatax.setValue("X", "MATL_GROUP");
clientDatax.setValue("X", "OLD_MAT_NO");
// clientdatax.setValue("X", "PROD_HIER");
clientDatax.setValue("X", "BASE_UOM_ISO");
clientDatax.setValue("X", "NET_WEIGHT");
clientDatax.setValue("X", "UNIT_OF_WT_ISO");
clientDatax.setValue("X", "ITEM_CAT");
clientDatax.setValue("X", "PUR_VALKEY");
clientDatax.setValue("X", "LABEL_TYPE");
clientDatax.setValue("X", "LABEL_FORM");
clientDatax.setValue("X", "DIVISION");
* CLIENTDATA FOR BASIC VIEW
Structure clientData = input.getStructure("CLIENTDATA");
clientData.setValue("02", "MATL_GROUP");
clientData.setValue("testmaterial", "OLD_MAT_NO");
// clientdata.setValue("1000000790","PROD_HIER");
clientData.setValue("PCE", "BASE_UOM_ISO");
clientData.setValue(0.111, "NET_WEIGHT");
clientData.setValue("KGM", "UNIT_OF_WT_ISO");
clientData.setValue("NORM", "ITEM_CAT");
clientData.setValue("UV03", "PUR_VALKEY");
clientData.setValue("1", "LABEL_TYPE");
clientData.setValue("E1", "LABEL_FORM");
clientData.setValue("01", "DIVISION");
* SALESDATAX
Structure salesDatax = input.getStructure("SALESDATAX");
salesDatax.setValue("4000","SALES_ORG");
salesDatax.setValue("01","DISTR_CHAN");
salesDatax.setValue("X","ITEM_CAT");
salesDatax.setValue("X","DELYG_PLNT");
* SALESDATA
Structure salesData = input.getStructure("SALESDATA");
salesData.setValue("4000","SALES_ORG");
salesData.setValue("01","DISTR_CHAN");
salesData.setValue("NORM","ITEM_CAT");
salesData.setValue("4200","DELYG_PLNT");
* PLANTDATAX
Structure plantDatax = input.getStructure("PLANTDATAX");
plantDatax.setValue("4200", "PLANT");
plantDatax.setValue("X", "MRP_TYPE");
plantDatax.setValue("X", "MRP_CTRLER");
plantDatax.setValue("X", "REORDER_PT");
plantDatax.setValue("X", "MINLOTSIZE");
plantDatax.setValue("X", "LOADINGGRP");
* PLANTDATA
Structure plantData = input.getStructure("PLANTDATA");
plantData.setValue("4200", "PLANT");
plantData.setValue("ND", "MRP_TYPE");
plantData.setValue("001", "MRP_CTRLER");
plantData.setValue("0", "REORDER_PT");
plantData.setValue("100", "MINLOTSIZE");
plantData.setValue("0001", "LOADINGGRP");
* MATERIALDESCRIPTION EN
Table materialDesc = tables.getTable("MATERIALDESCRIPTION");
materialDesc.appendRow();
materialDesc.setValue("ENGLISH", "LANGU");
materialDesc.setValue("EN", "LANGU_ISO");
materialDesc.setValue(_material+" - test for sales order", "MATL_DESC");
* MATERIALDESCRIPTION FI
materialDesc.appendRow();
materialDesc.setValue("FINNISH", "LANGU");
materialDesc.setValue("FI", "LANGU_ISO");
materialDesc.setValue(_material+" - test FI", "MATL_DESC");
// materialdesc.insertRow(0);
// MeasureX
Table measurex = tables.getTable("UNITSOFMEASUREX");
measurex.appendRow();
measurex.setValue("X", "ALT_UNIT_ISO");
measurex.setValue("X", "UNIT_DIM_ISO");
measurex.setValue("X", "LENGTH");
measurex.setValue("X", "WIDTH");
measurex.setValue("X", "HEIGHT");
measurex.setValue("X", "VOLUME");
measurex.setValue("X", "VOLUMEUNIT_ISO");
measurex.setValue("X", "GROSS_WT");
measurex.setValue("X", "UNIT_OF_WT");
measurex.setValue("X", "UNIT_OF_WT_ISO");
// measurex.insertRow(0);
// Measure
Table measure = tables.getTable("UNITSOFMEASURE");
measure.appendRow();
measure.setValue("PCE", "ALT_UNIT_ISO");
// measure.setValue("X","DEL_FLAG");
measure.setValue("CMT", "UNIT_DIM_ISO");
measure.setValue(0.111, "LENGTH");
measure.setValue(0.111, "WIDTH");
measure.setValue(0.111, "HEIGHT");
measure.setValue(0.3, "VOLUME");
measure.setValue("CMQ", "VOLUMEUNIT_ISO");
measure.setValue(0.111, "GROSS_WT");
measure.setValue("KGM", "UNIT_OF_WT");
measure.setValue("KG", "UNIT_OF_WT_ISO");
//Tax classifications
Table tax = tables.getTable("TAXCLASSIFICATIONS");
tax.appendRow();
tax.setValue("FI", "DEPCOUNTRY");
tax.setValue("FI", "DEPCOUNTRY_ISO");
tax.setValue("MWST", "TAX_TYPE_1");
tax.setValue("1", "TAXCLASS_1");
//tax.setValue("01", "TAX_IND");
tax.appendRow();
tax.setValue("EN", "DEPCOUNTRY");
tax.setValue("EN", "DEPCOUNTRY_ISO");
tax.setValue("MWST", "TAX_TYPE_1");
tax.setValue("2", "TAXCLASS_1");Hi Alistair,
I have a full access to SAP, so I can create and extend material whenever I want through MM01/MM02, but my target is to develop a method in Java, which creates a fully functional material to be used later in Sales Order.
A code listed in my prevoius post shows most of my method. I've got to indicate that my method works correctly and creates material. I've checked it through MM03 - I mean my material created with my method exists.
Moreover both sales org. and distr. channel are passed to BAPI, as you may see in the following code:
* SALESDATA
Structure salesData = input.getStructure("SALESDATA");
salesData.setValue("4000","SALES_ORG");
salesData.setValue("01","DISTR_CHAN");
salesData.setValue("NORM","ITEM_CAT");
salesData.setValue("4200","DELYG_PLNT");
But the problem occurs when I wanna create Sales Order (VA01) and when I choose the item. Material created by my method causes error:
"Material myMaterial is not defined for sales org. 4000, distr.chan. 01, language FI"
I don't understand why? I'm not SAP specialist, but in my opinion I've passed necessary data.
Do you any idea?
Thanks in advance. Every helpful suggestion will be properly rewarded.
BR,
Rafal -
Hi Everyone
I want to create return but linked to original sales order where the material was delivered in the first instance, I don’t want to create other sales order (to return) with references to the original, and then other sales order to be delivered again (replacement).
Example
SALES
1. Create a sales order number 33 with 10 Ton
2. The delivery is linked to sales order 33 just with 8 Ton
3. Invoice is created linked to the delivery with 8 Ton
4. Sales order number 10 pending qty is 2 Ton
RETURN
5. We would like to link the return delivery to the sales order, 5 Tons will be retuned
6. Credit memo is created
7. Sales order number 10 pending qty update to 7 TonThe only way is to change the item categories in the delivery.
Create the delivery wrt the original sales order.
Change the item category(In the config make sure the return is checked)- But I think you need to do some changes in the user exit to enable the item category in the delivery)..
The other option is to have a return order document(type RE) and then create the return delivery for this document. In the copy controls you can maintain the return item categories while creating the return order from sales order..
Thanks -
Read Sales Order Price with Pricing Date (PRSDT)
Hello ABAP Gurus,
I have once requirements and is, I need to extract sales order prices with a given Pricing Date (PRSDT).
Could you please tell me if these is Function Module or BAPI that I can use?
Regards,
MuraliMaintain a condition record for Rs.10/- with a validity date (only as an example) as 1st March'14 to 15th March'14. Another condition record for Rs.15/- with validity date as 16th March'14 to 31st March'14.
Now create a sale order for 500 nos. with one line item and change the pricing date as 15th March'14. Similarly, create another line item for the same material with 500 nos. and here, change the pricing date as 16th March'14 at line item level. By doing so, system would fetch the pricing in billing accordingly.
I told as per my knowledge System will bring old price only for reserved stock if you want to apply new price for reserved stock just 411 e return the stock from reservation and now create sales order
i hope this right
Your understanding is incorrect. System will never validate pricing based on age of the stocked material but based on validity period what you maintain in condition record.
G. Lakshmipathi -
Sales order report with order attachments
Hi All
I am writing a program for a 2 part report that gives a list of sales orders with attachment flags and a list of invoices that do not have the output processed due to the presence of attachment flag.
Firstly i need help regarding few queries in the process of writing this program.
1. How can i distinguish between a sales order with attachement and one without an attachment.
2. What is the related field for attachment in sales header/sales item table(s) or any other sales related table which will contain information of the attachment in the sales order.
3. If I have an attachment in sales order, will it have an effect in the output being processed for the invoice for that order.
Thanks in Advance
--MikeHello Erik,
is there a sales order report with the complete line-item pricing
breakdown. For example, In VA05 I'm only able to get the Net
Price and Net Value as an output. I would also like to view the
breakdown of the conditions (e.g. disounts, tax, etc.)
Is there another report in SAP that will show this? Or a backend
table I can pull this information from to create a query?
The best way to handle your requirement is to create a Custom report using the standard table for Sales Order i.e. VBAK and you can pick up the Document Condition Number. You can pass this number to table KONV and pull up all the values for the active contion type which was responsible for Sales Order price calculation. Please reach out to a ABAPer to develop this sort of a custom report.
Just FYI, if you want to check out all the value for a specific condition type, then you can use the standard report i.e. V/LD.
Please update your post after carrying out this exercise.
Regards,
Sarthak -
Sales Order Report with Pricing Breakdown
HI, is there a sales order report with the complete line-item pricing breakdown. For example, In VA05 I'm only able to get the Net Price and Net Value as an output. I would also like to view the breakdown of the conditions (e.g. disounts, tax, etc.)
Is there another report in SAP that will show this? Or a backend table I can pull this information from to create a query?
Thanks, ErikHello Erik,
is there a sales order report with the complete line-item pricing
breakdown. For example, In VA05 I'm only able to get the Net
Price and Net Value as an output. I would also like to view the
breakdown of the conditions (e.g. disounts, tax, etc.)
Is there another report in SAP that will show this? Or a backend
table I can pull this information from to create a query?
The best way to handle your requirement is to create a Custom report using the standard table for Sales Order i.e. VBAK and you can pick up the Document Condition Number. You can pass this number to table KONV and pull up all the values for the active contion type which was responsible for Sales Order price calculation. Please reach out to a ABAPer to develop this sort of a custom report.
Just FYI, if you want to check out all the value for a specific condition type, then you can use the standard report i.e. V/LD.
Please update your post after carrying out this exercise.
Regards,
Sarthak -
BAPI SALES ORDER & Copy with reference
Hello,
I'm creating sales order copied with reference to an invoice. My problem is that the data item is empty. When I create the sales order manually and use the option 'Create with reference' and choose an invoice, the sales order is created with all data item. I don't know how I can get to copy the data item from the invoice in the new sales order. The code that I'm using is the following:
DATA: order_header_in LIKE bapisdhd1,
order_partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
order_text LIKE bapisdtext OCCURS 0 WITH HEADER LINE,
order_header_inx LIKE bapisdhd1x,
order_item_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
order_schedules_in LIKE bapischdl OCCURS 0 WITH HEADER LINE,
order_conditions_in LIKE bapicond OCCURS 0 WITH HEADER LINE,
extensionin LIKE bapiparex OCCURS 0 WITH HEADER LINE,
partneraddresses LIKE bapiaddr1 OCCURS 0 WITH HEADER LINE,
order_cfgs_ref like BAPICUCFG occurs 0 with header line.
DATA: salesdocument LIKE bapivbeln-vbeln.
DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
order_header_in-doc_type = 'ZA09'.
order_header_in-sales_org = '1700'.
order_header_in-distr_chan = '01'.
order_header_in-division = '01'.
order_header_in-BILL_DATE = '20060701'.
order_header_in-ref_doc = '0900000019'.
order_header_in-refdoc_cat = 'M'.
*order_header_in-REF_DOC_L_LONG = '0900000019'.
order_header_in-purch_no_c ='prueba'.
*order_header_in-ord_reason = '003'.
*order_header_in-pmnttrms = '0002'.
*order_header_in-sales_off = '2800'.
order_header_in-ref_doc_l = 'FACTURA ES'.
*order_header_in-fix_val_dy = '20060701'.
*order_header_in-currency = 'USD'.
*order_header_in-exchg_rate = '1.2'.
order_partners-partn_role = 'AG'.
order_partners-partn_numb = '0000000001'.
order_partners-langu = 'EN'.
order_partners-name = 'El corte aleman'.
order_partners-country = 'ES'.
APPEND order_partners.
order_partners-partn_role = 'RE'.
order_partners-partn_numb = 'ARR000'.
order_partners-addr_link = '0000030044'.
APPEND order_partners.
CALL FUNCTION 'ADDR_GET_COMPLETE_ALL_TYPES'
EXPORTING
addrnumber = order_partners-addr_link
PERSNUMBER =
address_object_type = '1'
IV_CURRENT_COMM_DATA = 'X'
IMPORTING
ADDR1_COMPLETE =
ADDR2_COMPLETE =
ADDR3_COMPLETE =
ADDR1_COMPLETE_BAPI = partneraddresses
ADDR2_COMPLETE_BAPI =
ADDR3_COMPLETE_BAPI =
EXCEPTIONS
PARAMETER_ERROR = 1
ADDRESS_NOT_EXIST = 2
PERSON_NOT_EXIST = 3
INTERNAL_ERROR = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
data: vl_texto(40) value 'NUEVOOOOO'.
partneraddresses-name = vl_texto. clear vl_texto.
partneraddresses-name_2 = vl_texto.
partneraddresses-name_3 = vl_texto.
partneraddresses-name_4 = vl_texto.
partneraddresses-langu = 'E'.
APPEND partneraddresses.
DATA: vl_cantidad LIKE bapisditm-target_qty.
vl_cantidad = 1.
order_item_in-itm_number = 10.
order_item_in-material = 'HONORARIOS'.
order_item_in-ref_doc = '0900000019'.
order_item_in-ref_doc_it = 10.
order_item_in-ref_doc_ca = 'M'.
APPEND order_item_in.
order_schedules_in-itm_number = 10.
order_schedules_in-req_qty = vl_cantidad.
APPEND order_schedules_in.
order_text-text_id = 'Z001'.
order_text-ITM_NUMBER = ''.
order_text-langu = 'EN'.
order_text-text_line = 'Hola, CARACOLAcola'.
APPEND order_text.
order_text-text_id = 'Z001'.
order_text-langu = 'EN'.
order_text-text_line = 'Adios caracol'.
APPEND order_text.
order_text-itm_number = '000010'.
order_text-text_id = '0001'.
order_text-langu = 'EN'.
order_text-text_line = 'Hola, POSICIÓN'.
APPEND order_text.
extensionin-structure = 'BAPE_VBAK'.
extensionin-valuepart1 = ' BCL 7'.
APPEND extensionin.
order_cfgs_ref-posex = '10'.
order_cfgs_ref-config_id = '10'.
order_cfgs_ref-root_id = '00000001'.
append order_cfgs_ref.
CALL FUNCTION 'ZBAPI_SALESORDER_CREATEFROMDT2'
EXPORTING
SALESDOCUMENTIN = salesdocument
order_header_in = order_header_in
ORDER_HEADER_INX = order_header_inx
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
salesdocument = salesdocument
TABLES
return = return
order_items_in = order_item_in
ORDER_ITEMS_INX =
order_partners = order_partners
order_schedules_in = order_schedules_in
ORDER_SCHEDULES_INX =
order_conditions_in = order_conditions_in
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF = 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_text
ORDER_KEYS =
extensionin = extensionin
partneraddresses = partneraddresses
PERFORM report TABLES return.
*DATA: salesdocument LIKE bapivbeln-vbeln.
*DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
*refresh return.
*CALL FUNCTION 'BAPI_SALESDOCUMENT_COPY'
EXPORTING
salesdocument = '0400000191'
documenttype = 'ZA04'
TESTRUN = ' '
IMPORTING
SALESDOCUMENT_EX = salesdocument
TABLES
RETURN = return
*PERFORM report TABLES return.
*write: / salesdocument.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
*& Form report
text
-->P_MENSAJE text
FORM report TABLES p_mensaje STRUCTURE bapiret2.
DATA: vl_mensaje TYPE string.
LOOP AT return.
CLEAR vl_mensaje.
MESSAGE ID return-id
TYPE return-type
NUMBER return-number
INTO vl_mensaje
WITH return-message_v1
return-message_v2
return-message_v3
return-message_v4.
WRITE: / vl_mensaje.
ENDLOOP.
ENDFORM. " reportHi Manuel,
There are some function modules which is there to copy the order details. I am not sure about the function module name. But you can search in SE37. But bapi for creating the sales order does not have the functionality of copying the data from one document to another document.
You can try using this function module.
BAPI_SALESDOCUMENT_COPY
Data will be copied based on the copy control routines that is set between the two document types.
Thanks,
Arun -
Error : Sales order 'create with Reference' to the contract
We have made a value contract. Now we are trying to make a Sales order 'create with Reference' to the contract.
when we do that, we am getting error 'copying material in any value contract item is not permitted'
Any help or directions would be greatly appreciated . We are on Ecc 6.0
RohitAs of now my value contract has just one material. so i dont need assortment module settings. right?
in VTAA settings are as follows
Target type: OR
Source type: ZK1
there is only on item category
Target item category: TAN
Source item category: WKN
Copying requirement : 301
update doc flow : 2
pricing type : C
cont item copy mode : A
DataT am using 151,102,002
There are no schedule line.
Rohit
Edited by: rohit kumar on May 15, 2008 7:36 PM -
How to restrict saving of a sales order without a material.
Hi Gurus
Please advice How to restrict saving of a sales order without a material. That is the system saves the order even if no item is assigned to it.Hi Raghu,
In standard SAP we can not do that. Even for some requirements of the customer this feature is required, specially in case of milestone billings, custom materials etc. client after saving the empty sales order they may create materials based on that sales order number.
If it is mandatary for u to save sales order only after the entry of the materials, u can try user exits or go for a code with the help of an ABAPer.
Regards,
Ravi Duggirala
Edited by: ravi duggirala on Jun 20, 2008 11:11 AM
Maybe you are looking for
-
File does not exist... Unknown request from my internet network
Mu Web server log is full of this kind of entry : [Wed Mar 14 22:04:31 2007] [error] [client 192.168.0.2] File does not exist: /Library/WebServer/Documents/wpad.dat 192.168.0.2 is my PC (under Windows XP) on my local network and I tried to understand
-
Help on calling servlet class!!!!!!!
hi there in my jsp, i have a form as follow <form method="post" action="?"> </form> i need to call a servlet to do something when i click on the button in the form. i have created my servlet.java and stored it under the same project directory. what d
-
Why does my converted raw to jpeg image have an arrow pointing to it?
When I have taken a raw image through the camera raw edit and then to full edit in elements 10 and then post the converted image onto my desk top to then move elsewhere why does it show up with an arrow pointing to the image and why am I unable to us
-
Extractor parameter "maxsize " and ABAP parameter "s_s_if-maxsize"
Hi folks Can anyone explain how the ABAP parameter s_s_if-maxsize is populated in the FETCH of an extractor function module? - Using RSA3 you get what you set, of course : 100 by default, - but how does an Infopackage populate this field ? There are
-
Layer Break Won't Change-- Corrupt File
I'm trying to change my layer break marker and no matter what I do it won't change. I even tried automatic and it doesn't change. Not only that, but the marker that it seems to be stuck on being the break point doesn't show up as such and when I chan