SP Need for sales order UDF
Hi all,
I am created UDF attachment link in Sale order once attachment done it will raise the A/R invoice template.
Option copy from sale order to AR invoice should be block in store procedure
" Without attachment A/R invoice should not raise"
How to write Store procedure transaction in SQL
Hi Ranjith,
try this one...
for Line UDF
IF (@object_type = '13') and (@transaction_type IN ('A', 'U'))
BEGIN
IF EXISTS (SELECT T0.Docentry from OINV T0 Inner Join INV1 T1 ON T0.Docentry=T1.Docentry where
T1.DocEntry = @list_of_cols_val_tab_del and (T1.[YOUR_UDF] is null or T1.[YOUR_UDF] ='' ))
BEGIN
Select @error = 10, @error_message = 'Sales Invoice cannot be raise W/O sales Order attachement'
END
END
for Header UDF
IF (@object_type = '13') and (@transaction_type IN ('A', 'U'))
BEGIN
IF EXISTS (SELECT T0.Docentry from OINV T0 where
T0.DocEntry = @list_of_cols_val_tab_del and (T0.[YOUR_UDF] is null or T0.[YOUR_UDF] ='' ))
BEGIN
Select @error = 10, @error_message = 'Sales Invoice cannot be raise W/O sales Order attachement'
END
END
regards,
Fidel
Similar Messages
-
Name of the structure needed for sales order user exit
Hi,
I am planning to write a user exit which will insert the data into my ztable the moment the new sales order is created and is saved.
I have identified FORM USEREXIT_SAVE_DOCUMENT as the necessary user exit. But the problem is that while inserting the data into the ztable I cannot insert the data from vbak as the data will be inserted into this table after the SO is saved.
Thus I need to identify a structure which is used to populate the vbak table so that it simultaneously inserts the data in the ztable as well. Can anyone help me with the name of the structure so that these fields i.e. vbeln, vkorg, vtweg, spart are inserted into my ztable?
Also need to know how to convert the net value i.e. vbak-netwr in Indian Rupees as it gets stored as Dollars ....
Thanks,
Vinod.Hi,
One of the structure being used is RV45A, there are several other str's being used as well for various calculations,
check out program SAPMV45A for the same.
& in order to convert vbak-netwr to rupees use the below statemetnt,
WRITE vbak-netwr TO zvbak-netwr CURRENCY INR.
Regards,
Raghavendra
Message was edited by:
raghavendra ay -
Query help needed for Sales order panel user field query.
I have a user defined form field on sales order row level called = U_DEPFEEAMT
1, I would like this field to get the value from a field on this sales order row level multiplied by what is in point 2 below. The details of field in point 1 is :
Form=139, item=38, pane=1, column=10002117, and row=1
2. The contents in field 1 should be multiplied by a value coming from another user field linked to OITM master item.
The details of user field attached to OITM is :
OITM.U_DepositFeeON
Appreciate your help.
Thank you.Try this one:
SELECT T0.U_DepositFeeON*$[$38.10002117.number\]
FROM dbo.OITM T0
WHERE T0.ItemCode = $[$38.1.0\]
Thanks,
Gordon -
Need code for sales order create report using bapi's
need code for sales order create report using bapi's
Hi,
Go through below link
http://www.saptechies.com/bapi_salesorder_createfromdat2/
<b>Reward points if it helps,</b>
Satish -
Need code for Sales order creation in oops using xi as integration server
Need code for Sales order creation in oops using xi as integration server.
hi rocky,
could you pls give a bit explanation on what you are expecting.
regards,
Pavan -
Need function module for Sales order overall status
Dear Team,
Our requriement is we need to capture sales orders overall status 'compleated' in header and item datat details.
Could you please let me know what are function modules available for to get the over all status for sales orders, (header and item)
Thanks & Regards,
MK.Hi MK,
Use any of this FMs.
C1CE_VBUK_READ
SD_VBUP_READ_WITH_VBELN
WCB_VBUK_READ
Note that the values are in table VBUK and you can do a select statement from that table to get what you need.
Regards,
Peter -
Need Authentication Objects For SALES ORDERS
Hi All,
Can anyone provide me list of Authentication Objects For SALES ORDERS.
I opened the SU03----SD class there are nearly 19 objects.
i need to knwo what are the related Authorization Objects for SalesOrders.
Regds
RajRole can be created with the authorizations to the transactions like VA01/02/03 and authorized users can be assigned to these roles, this way you can control the authorizations to standard transactions,
Hope this helps,
Vasanth -
Query for Sales Order Analysis
Dear Experts
I have written a Query for Sales Order Analysis and would like to have help on this.
The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
where U_Total_GP is a UDF for storing the GP of each order.
After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
Thank you
Regards
EltonHi Elton,
Try this:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
Union ALL
SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0]
ORDER BY T0.[DocNum]
Thanks,
Gordon -
hi,
i need to eliminate leading zeros for PO number which comes in SO created trough ALE.i found the enhancement for the FM idoc_input_orders.in that enahancement we have 12 FM's.my Leading zeros are comming for field belnr which comes in e1edk01 segment of idoc orders05.now i had coded my part of coding in FM exit_saplved.._oo1 and i had activated that.but it is not working for me.than i tought of going to other FM exit_sapl..._009.in which i'm not able go into the include either.plz help me out.thank you.Hi, Krishna!
With IDOC_INPUT_ORDERS during IDoc interpretation PO number is assigned to XVBAK-BSTKD field which is later used for sales order creation with reference to PO.
So all you need is to use some customer exit with changing parameters containing XVBAK after IDoc interpretation is completed. For example you can use EXIT_SAPLVEDA_009 which is called at the end of IDoc check after interpretation.
Regards,
Maxim. -
How to create a daily report for sales order
hi
how to create a daily report for sales order. what fields it must consists of. what are the tables it need?Hi
You have to use the sales order tables VBAK,VBAP and VBEP
So keep date field on selection screen
and treat this date as Order creation data audat field in VBAK.
based on this fetch the data from VBAK and VBAP with the following fields like
VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS etc and display in the report
<b>Reward points for useful Answers</b>
Regards
Anji -
WBS element for Sales Order Item level
Hi gurus,
I am trying to create an inbound idoc for sales order ' VA01'. I need to populate WBS element in the item level under Account Assignment Tab. I am using ORDERS05 basic type. Please help to find which segment to use for WBS element. Waiting for your reply. Please help.
Regards,
Satyajit
Edited by: Satyajit Saha on Feb 22, 2008 1:24 AMHi gurus,
I am trying to create an inbound idoc for sales order ' VA01'. I need to populate WBS element in the item level under Account Assignment Tab. I am using ORDERS05 basic type. Please help to find which segment to use for WBS element. Waiting for your reply. Please help.
Regards,
Satyajit
Edited by: Satyajit Saha on Feb 22, 2008 1:24 AM -
Requisitions for sale order stock
Requisitions for sale order stock that are generated directly from the
sales order are not passed to SRM but requisitions that are created
manually for sales order stock are passed to SRM.
Why is the sourcing of a requisition for sales order stock where the
requisition was created directly from the sales order not supported?Hi,
We need same requirement, we found only PR's with item category "5"(Third party ) created from sales are transfered to SRM.( It is hard coaded in ECC).
Let us know if you are able to resolve your issue.
Thank you
Sreedhar Vetcha -
In which table,i could find order quantity for sales order..??
In which table, i could find order quantity for sales order..??
and also in which table i could find delivery for sales order..
need help..??
Moderator message: please search.
Edited by: Thomas Zloch on Feb 23, 2012Check the table AUFM.
Give the order number in AUFNR.
For movement type 261 (GI) & 101 (GR), you can get the material document number (MBLNR), Material (MATNR), Qty (MENGE) & UoM (MEINS). -
SAP Mobile Sales 2.0 delta load issue for Sales Orders
Hello,
we have used Mobile Sales 2.0 with a Windows app for a while now. Our current issue is that sales reps won't see any historical sales order data on their devices.
Background
Due customer requirements, we need to make small changes to customer master data attributes and reload all customers from ERP to CRM. Then we ran delta loads (MAS_PARTNER followed by all other objects) to DOE, in which virtually all 5000+ customer accounts were compared. The delta load ran for about 3 days (some performance bottleneck we haven't located yet).
During the delta load, data on devices was inconsistent. Accounts were missing and all transaction data disappeared. After the delta loads, all accounts and contacts are OK, save for a few. Data from activities (appointments, tasks) have reappeared, as they should. Only sales orders won't reappear. The sales orders exist in the backend and belong to active accounts and sales reps.
Settings and troubleshooting so far
We don't have any limitations for sales orders in CRM Sales Mobile configuration.
We've run delta loads for all objects in transaction SDOE_LOAD.
MAS_CUSTOMIZATION etc seem fine.
We've re-run initial load for sales orders from CRM.
In the test system, we've even reinitialized the whole CDS database on DOE and on the devices, then re-ran the loads.
Checked steps suggested in discussion
SAP CRM 2.0 initial load issue
Historical sales orders (those created before the master data reload) exist in the backend, but don't show up on the device.
If I change one of those historical sales orders in the backend, it gets sent to the device.
If I create a new sales order in the backend or on the device, it is saved and replicated just fine.
To sum it up, it seems DOE is unable to identify the sales orders relevant for replication.First Doubt i got clarify by my self as we can go with Unwired Runtime option .
But i still have doubt in :
2. How can i Modifying the Main Menu for iOS.
i am able to customize the same for windows using files SybaseCRM.Configuration.xml file.
Same how can i do for iphone/ipad. -
Copy 0CO_OM_WBS_5 to get variances for Sale Order / Item
Hi ,
I copied the existing 0CO_OM_WBS_5 extractor and modified it with a logic to bring the Result Analysis numbers for Sales Orders. But when trying to create a normal generic datasource with the FM it is not allowing and giving me an error "E_T_DATA is not present in the the Function Module " The same is not available in standard datasource FM as well for 0CO_OM_WBS_5 .Do we need to maintain any table for mapping the datasource with FM and Extract Structure specific to the CO-OM Extractors.
Help will be greatly appreciated.
Regards,
VSKThanks.
Maybe you are looking for
-
IPhone 4 iOS 5.0.1 stops receiving calls and text messages
Hi all, My iPhone 4 (iOS 5.0.1) suddenly stopped receiving calls and text messages. However, I'm still able to send them. The workaround for fixing this issue is to make an hard reset to the iPhone. This only occured with 5.0.1 version. It's very ann
-
Not sure if Micro SD work with Nokia N95
Today I went to tesco, and bought myself a Micro SD 2GB for my new phone Nokia N95. I'm not sure if it will work or fit in. It does say its suitable for most Nokia phones. Also will my computer recognise it?
-
IPod nano (6gen) not recognized in iTunes
Before I recently upgraded too osx 10.6.5 and itunes 10.1 I had no problems syncronizing my ipod (6th generation) with itunes. Immediatly after doing it my problem started. Strangely enough my iPhone shows up and syncronizes, and if I connect my same
-
I am trying to update my apps on my 4s but says there is not enough space. It shows i have 19.3 GB of 25 GB. Also, in my itunes...it shows about a quarter of space on the bar is photos but I took all the photos out. Don't make sense.
-
Hey, Everytime I try to connect to the iTunes Music Store, I receive an error message that tells me that I am unable to connect because my internet connection timed out. However, I am able to get on my web browser and everything with no problem. I ha