Zero quantity in line item when creating a sales order
How to avoid the error when the quantity is entered as zero during sales order creation
Praveen's idea worked great! This snippet of code in the BADI supressed the error message for me. I was getting it when a lead was converted to an opportunity, and the quantitiy was 0. We didn't need a warning message for that.
METHOD if_ex_crm_schedlin_badi~crm_schedlin_check.
DATA: lt_msgidno TYPE bal_r_idno,
ls_msgidno TYPE bal_s_idno.
* Set up selection table to include message CRM_SCHEDLIN 303
REFRESH lt_msgidno.
ls_msgidno-sign = 'I'.
ls_msgidno-option = 'EQ'.
ls_msgidno-low-msgid = 'CRM_SCHEDLIN'.
ls_msgidno-low-msgno = '303'.
APPEND ls_msgidno TO lt_msgidno.
* Call standard FM to delete the message
CALL FUNCTION 'CRM_MESSAGES_DELETE'
EXPORTING
it_r_msgidno = lt_msgidno
EXCEPTIONS
appl_log_error = 1
OTHERS = 2.
ENDMETHOD.
Similar Messages
-
Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI
I am having a problem when creating a sale order using BAPI
BAPI_SALESORDER_CREATEFROMDAT2
Problem is that sale order item quantity field is not populating
code is as follows
ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
ORDER_ITEMS_IN-TARGET_QU = 'LB'.
ORDER_ITEMS_IN-TARGET_QTY = 1.Hi,
Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
Regds,
Rudra -
Error in GTS when creating a sales order
Hello All:
Let me first say that I have researched the forums and web for my answer to no avail...there is not a lot of information out there for GTS issues.
When creating a sales order in ECC 600; I am receiving errors...I have looked at SLG1 in order to get more information on these errors. I have validated my config in GQ0 and it appears to be correct. Here is my errors I am receiving:
Legal Control: Item Type Mapping not Maintained
Item Category: ZTAE
Item Category: ZTAQ
Legal Control: Partn. Function Mapping not Maintained
Partner Function: AG
Partner Function: AP
Partner Function: CI
Partner Function: EN
Partner Function: RE
Partner Function: RG
Partner Function: SP
Partner Function: WE
Legal Control: Mapping of Org. Units not Maintained For Fore
Company Code: 1000
Legal Control: Mapping of Org. Units not Maintained For Lega
Plant: 1000
I have looked under the Org Structure for these errors and think my configuration is correct. I have checked under the following:
In SPRO I have done the following Config under Org Structure:
Define Foreign Trade Organizations
Assign Company Code At Feeder System
Define Legal Units
Assign Legal Unit to Foreigne Trade
Assigned Plant at Feeder System
In Spro I have done the following Config under Partner Structure:
Define Partner Functions
Define Groups of Partner Functions
Assign Partner Functions at Feeder system
In SpRO under Compliance Management I have done the following Config under document structure:
Define Doc Types
Assign Doc types at feeder system
Define item categories
Assign item categories at feeder system
It is obvious I am missing something....Please help...it would be greatly appreciated....Hi Dave
Thanks for replying.
For Business Partners the error I am getting in SLG1 is the follwoing:
Sub Object text
Mapping of API to Customs Shipment - Arrival
Program
/SAPSLL/SAPLCORE_APPLOG_SERV
@5C\QError@
The system was unable to determine an FT organiz. for company code 1000
The system was unable to determine a legal unit for plant 1000
No mapping information exists for partner function AG
Another error for Business Partner:
sub object text
Business Partner Distribution
Program
/SAPSLL/SAPLCORE_APPLOG_SERV
@5C\QError@
Please use another function to maintain the SPACE version of the address
For Item Categories
SubObect TextMapping of API to Customs Shipment - Arrival
Program
/SAPSLL/SAPLCORE_APPLOG_SERV
@5C\QError@
No mapping information exists for item type ZTAQ
The system was unable to determine a legal unit for plant 1000
No mapping information exists for partner function AG
Also we are using GTS 7.2 but upgrading to GTS 10 and I am trying to create our testing client for a to test after upgrade
Edited by: Kim Blair on Sep 9, 2011 4:57 PM
Edited by: Kim Blair on Sep 9, 2011 4:58 PM -
Billing date at line item level in a sales order
HI!
Can anyone let me know the significance of billing date being present at the line item level in a sales order?
And why does it get changed as per the Requested delivery date if the Prop. Pricing date in the maintanenece of sales doc type is set as 'A'?
Can it be different for different line items?Hello Asha,
Can anyone let me know the significance of billing date being
present at the line item level in a sales order ???
The comprehensive information is available at SAP technical help(F1) for the "BILLING DATE" field at Sales Order line item level...Before raising these type of questions, i would urge to conduct initiate analysis and then post at SDN forum if you are unable to find out answers...For your quick reference, i have extracted the same description for Billing date from SAP techincal help (F1) and pasted below.
Billing date for billing index and printout
+The date on which the billing is processed and booked for
accounting purposes.+
Use
+You can use the billing date as one of the selection criteria
when you process billing documents collectively.+
Procedure
+If invoice dates are defined for the customer, the system proposes
the billing date from the invoice date calendar. If no invoice dates are
agreed, then the actual goods issue date is formed on the basis of
delivery related billing. In order related billing, the billing date of the
order forms the basis of the billing date.+
+If you are billing services, the system proposes the date of services
rendered. You can change the date manually in the sales document.+
+If you are using a billing plan to bill a project, the system can propose
billing dates for the billing plan on the basis of planned or actual dates
in the corresponding milestone.+
+In a billing plan for a maintenance or rental contract, you can specify rules
by which the system determines billing dates on the basis of other dates in the contract.+
Regards,
Sarthak -
Automatic creation of intercompany PO when creating a Sales Order
Hi Experts
Is there a standard way of triggering an intercompany PO when creating a sales order to the final customer (or the other way around, triggering a sales order to the end customer upon creation of an intercompany PO)? Scenario: business has setup a logistics company (company code X), which its purpose is to deliver goods to the final customer (home customers). However, sales orders are created from seperate chain of stores which belong to another company code (company code Y). This chain of stores have one sales organisation (since there is over 1000 stores under a chain). I need a way to represent that a sale originated from a store/plant belonging to company Y to end customer A. Also, I need a billing document (intercompany) from company code X to store/plant beloning to company Y.
Issues: in the intercompany config (assign intern customer numbers to sales org) - is there a way to assign a customer number at site/plant level so that when creating an intercompany billing it can be picked instead of the one assigned to the sales org and where can this be specified in the sales order (remember: in my scenario there are multiple stores/plants that belong to one sales organisation and it is not possible to use one customer number linked to the sales organisation.)
Desired results:
Sales order from store/plant YY belonging to company code Y to end customer A
Intercompany billing from plant XX belonging to company code X to store/plant YY
End customer billing from store/plant YY to end customer A
Thank you in advance for your help.Hello Tsmash
I think you can acheive this with Regular Sales order + Inter Company STO combination.
Maintain customer numbers for each of the Plants from Company Y for the sales area belonging to Company X.
Then do the config for STO in MM using this menu path:
SPRO/Materials Management/Purchasing/Purchase Order/Set up Stock Transport Order
Here, in the activity 'Define Shipping Data for Plants', enter each of the plant-customers and the Sales area belonging to Comany code Y. Carry out other activities in this area appropriately.
Similarly set up Custom ( say Z1) Special Procurement type for Plant YY for stock transfer from XX using this menu path:
SPRO/Production/Material Requirements Planning/Master Data/Define Special Procurement Type:
Here maintain procurement type as F, Special procurement as U and plant as XX. You may need to repeat this config for each of the receiving plants (over 1000 stores under a chain) from co code Y.
In the material master MRP 2 for Plant YY, maintain procurement type as F and Special Procurement as Z1.
Sales order will be received under Co Code Y and sales area belonging to Y form customer A,
Because of the MRP config, a PO (STO) requirement will be raised on Co code X and plant XX. XX will send the goods to YY via a STO delivery using the Shipping data from 'Set up STO' config,
Plant YY will send the goods to A and bill that customer. Co Code X will raise an inter-comany bill on Co code Y.
That's how it should work. Try it and revert with any issues. -
Hello,
our customer plans to use a Non-SAP solution for variant configuration (Camos) in SAP ERP (ECC 6.0) and in SAP CRM 7.0 EHP1 as well.
ERP sales orders (and ERP quotations) should be created in SAP CRM (CRM WebUI).
Is it possible to use variant configuration (with an external variant configuration tool) when creating ERP sales orders and quotations in the SAP CRM WebUI or do we have to implement SAP IPC for this?
Thanks in advance.
Regards,
AEVDear AEV,
I think LORD (lean orders) should work with variant configuration as well. In the note 1236015 there is not restriction listed. However you need lord2 activated in ECC, and ECC system should be on EHP4.
Best regards
Rene -
Warning message, if Quantity=0, when creating a sales order with VA01orVA02
Hi Experts,
Currently, if the user do not enters any value in QUANTITY field, while creating a sales order(or even VA02 too) ..........we are getting a Warning message(VU001).
So, I need to change it to hard error message type, am changing the message type, but, its not reflecting, and still its throwing a warning message(VU001)!!
Let me know that, What is the correct user exit to incorporate my changes?
From where this message generating? am keeping a watch point with this message (VU001), but, its not stopping!!
System is ECC 6.0
repliaes appreciated
thanq
Edited by: SAP ABAPer on Dec 22, 2008 4:38 PMthanq
(the reason, why my original code was worked is that, I put my code in SAVE user exit!!)
yes, its working, but, the scaenrio is different, so, its like,
if the user entered my_matnr with quantity = 0,
then presses ENTER,
now, we are getting a WARNING MESSAGE of message class & # is VU001, saying the Item 000010 is quantity 0...........so, here I need to change it to HARD ERROR message.
So, as soon as press the ENTER button(after enetring 0 qty matnr)........I need to get HARD error message, so, where should I incorporate the changes? is it MOVE FIELD TO VBAP user exit?
thanq -
Price is not being updated when creating a sales order using DTW oOrders
Hello experts,
When I create a sales Order using DTW (oOrders), the information in the input files document.csv and document_lines.csv is updated with no problem, except the price. The price is being ignored from the input files.
Is there something that I must considered when trying to update the price of a sales order using the DTW?
The field "price" was mapped in the source and target fields in DTW.
Here is the document_lines.csv
RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
1,1,_SYS00000000059, ,30PA08-0360-25,1,11.2,3,20110702,V08,A5
1,2,_SYS00000000059, ,30PA08-0707-25,1,15.2,3,20110702,V08,A5
1,3,_SYS00000000059, ,30PA08-0707-22,1,18.3,3,20110702,V08,A5
And the document.csv:
RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
1, ,c-6167,20110702,20110702,2
Thank you for your help
Jorge ManzoHi,
Try to re-create your dtw using my template,and use text tab when saving your template.
SO-Header
RecordKey CardCode CardName Comments DocDate DocDueDate DocNum
RecordKey CardCode CardName Comments DocDate DocDueDate DocNum
1 24-25 MANUFACTU 24-25 MANUFACTURING 4/5/2010 4/15/2010 11142
SO-LINE
RecordKey linenum itemcode qty uom PriceAfterVAT Price SalesPersonCode
RecordKey linenum itemcode qty uom PriceAfterVAT Price SalesPersonCode
1 0 SHAFT HEX 7/8" 1 pc 4536 4050 CRIS
Note : Line -(LINE NUM and QTY is important upon computation of Price if SO is ITEM TYPE Document.
hope this will help you!
Regards,
Darius -
Error on ATP check when Creating a Sales Order
Hello,
I encounter error on ATP check while creating a Sales Order.
The error is when I create Sales Order using material A, with or with out indicating the Plant and Storage Location, the Purchase Order quantity is returned on ATP check, but when I create an SO with out indicating the Plant and Storage Location, no PO quantity was returned. Note that we applied SAP Note # 387482 to automatically determine the Storage Location. I have also checked material maintenance in MM03 of Materials A and Material B and nothing was different, they have the same Availabity check condition.
Is it possible that the SAP note that I applied causes the error?
By the way I have noticed that when I create Material B and manually populate the Plant and Storage Location there is a pricing error(but it returns the PO during ATP check).
Thanks.
NoreenHello,
I encounter error on ATP check while creating a Sales Order.
The error is when I create Sales Order using material A, with or with out indicating the Plant and Storage Location, the Purchase Order quantity is returned on ATP check, but when I create an SO with out indicating the Plant and Storage Location, no PO quantity was returned. Note that we applied SAP Note # 387482 to automatically determine the Storage Location. I have also checked material maintenance in MM03 of Materials A and Material B and nothing was different, they have the same Availabity check condition.
Is it possible that the SAP note that I applied causes the error?
By the way I have noticed that when I create Material B and manually populate the Plant and Storage Location there is a pricing error(but it returns the PO during ATP check).
Thanks.
Noreen -
Free of goods should come automatically back when creates return sales order
Dear sd experts
I Know one thing that free goods wont come back ,, for ex when we create return sales order free goods wont come bz in VTAF copy requirement 302
it means dont copy free goods
Now i went VOV7--- for item category TANN-- i have maintained billing relevance A it means free goods items will come in to billing
now when i am creating return sales order with reference to billing Free goods are not coming
My doubt is suppose if my clinte asks free goods will come automatically when creates returns how to do it ?Hi Ali,
I just checked and understand in the below way:
When I Do the PGI system is posting say 50 USD to COGS. But, when I do the Invoice ( 100 USD is credited to sales account and 100 is debited to discount account) So at the end 100 is getting Nullified. But, when we see P&L account you will COGS of 50 USD.
I checked along with my FI consultant and she confirmed that its posting as per expected way only.
Let me know if you need more details here.
Regards, Sai Krishna. -
Problem when creating a sales order using BAPI_SALESORDER_CREATEFROMDAT2
Hello All,
I am working on a requirement where i need to create a new sales order from old sales order (Not all the items of the old sales order are to be copied) i am doing this by getting the data using BAPISDORDER_GETDETAILEDLIST to get the old sales order details and send them to BAPI_SALESORDER_CREATEFROMDAT2.
My problem is that i when i send the condition also the system in addition to the conditions sent to the BAPI is also automatically proposing the condition types . So the final result is that the sales order ends up having the condition types twice .
For example VPRS AZWR are visible twice in the sales order.
Any inputs to solve the problem will be definitely rewarded.
Thanks in advance.
Regards,
Sowmya.Hello All,
I am working on a requirement where i need to create a new sales order from old sales order (Not all the items of the old sales order are to be copied) i am doing this by getting the data using BAPISDORDER_GETDETAILEDLIST to get the old sales order details and send them to BAPI_SALESORDER_CREATEFROMDAT2.
My problem is that i when i send the condition also the system in addition to the conditions sent to the BAPI is also automatically proposing the condition types . So the final result is that the sales order ends up having the condition types twice .
For example VPRS AZWR are visible twice in the sales order.
Any inputs to solve the problem will be definitely rewarded.
Thanks in advance.
Regards,
Sowmya. -
Line Items Greyed out in Sales Order
Hi,
In sales order we are using KMAT material and selecting the required components as per customer requirement and same are coiped into sales order. High level KMAT material has item category TAC and Lower level line items have item categroy TAE. TAC ITEM IS NOT GREYED OUT OK.. And if i change quantity of this it will effect the lower level items ok.
All the line items( TAE items) are greyed out and i want to edit the quantity of line items with out changing the quantity of TAC item.... Is it possible??? Any answers will be highly appreciated.
Thanks in advance
Ramagiri.Hi
Our requirement is to edit the line items of TAE item category with out editing TAC category..Is their any configuration etc etc to do...
Ramagiri -
Error -1116 when creating a Sales Order via DI API
Hi All,
We have an developed EDI AddOn that creates Sales Orders in SBO 2007 PL13, in one of our clients.
This AddOn is responsible for the creation up to 100 orders each day on SBO.
However, sometimes (3 to 4%) during the Sales Order creation, the system return an error -1116 when the Sales Order is created - via oSalesOrder.Add() method.
The problem is that the order is created anyway, although this error is raised.
I've searched in the forums and it seems the solution is somehow related with SBO transactions.
However, the AddOn only created the Sales Order, nothing more.
Does any body know a solution for this problem?
Regards,
Manuel DiasHi,
see this links,
Error -1116 when creating delivery note
Could not commit transaction, ReturnCode:-1116
Regards,
siva -
Problem in when creating the sales order
Hi to All,
I am using the function module 'BAPI_SALESORDER_CREATEFROMDAT2' to create a sales order with quotation reference. When
I executing the program the return table shows following issues
1.Document 20000292 doesn't have document category but
2.Sales document was not changed
But , when i used to create the sales order manually( TC : VA01) with reference of '0020000292' it gives the sales order number.
so,kindly suggest me.
Thank youHi,
While using BAPI, you need to give some mandatory fields . So I think document catogary is missing in header structure.
Thanks,
Srikanth.A -
How to change the posting date at the line item level in a sales order
how to change the posting date at the line item level in a sales order
Hi,
I believe the POSTING DATE will appear on the accounting document
In the Accounting document, the posting date will be based on the Billing date.
Please let me know if you need any more details
santosh
Maybe you are looking for
-
In my Macbook Pro, on a few occassions, the apple menu bar blacks out. its displayed as a negative image. The desktop wallpaper get greyed out and i get a blank screen as wallpaper. No idea why this happens. I reset the system and issue gets resolved
-
Multiple Thread of a xml publisher report - messed up fonts in the PDF out
We are running 60000 invoices at a given time. In order to get the job done faster, the xml publisher report is set up to run mulitple threads. Each thread running unique set of invoices. I am seeing this issue, randomly. The pdf output of the invoic
-
HtmlHelp doesn't display my chm file for HH_DISPLAY_TOC
Hi there, I have an MFC application to display a CHM help file generated from RoboHelp. I override WinHelp to map HELP_* macros to HH_* macros such as HELP_CONTENTS to HH_DISPLAY_TOC and HELP_CONTEXT to HH_HELP_CONTEXT, and call htmlhelp API to open
-
How to create subfolders with names corresponding to the filenames
Hello outhere, sorry to ask this here, but I'm a complete noob with Actionscript. Can anybody please tell me if this is possible at all and perhaps give me some hint how to manage this: I would like to be able to do something like this: I have a sour
-
Is anyone else getting this error? It says that the iTunes Library cannot be saved due to an unknown error? Thanks!