System Variable or Process code for Sales Order create/Change
Hi All,
I have a wriiten custom routine (routine no 901) for Pricing in VOFM.Now the thing is the code is written in such a way that, the routine will be called only for transaction VA01 and VA02.But If i want the routine(901) to be executed also through BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE ,then what system parameter i should check in my routine.
Currently the code is like this.
form frm_kondi_wert_901.
Check sy-tocde = 'VA01' or sy-tcode = 'VA02'.
*Process further'....
Endform.
I would appreciate for the valuable input....
Thanks,
Vigneswaran S
Awesome stuff sudhir..It is really a great logic to use..Thanks for ur help..
This is for future generation...
One Note:The field symbol should be declared as type any instead of "standard table".Because the T181 is used as global workarea(strucuture) in SAPMV45A program rather than internal table.
Here you go the modified code.
FIELD-SYMBOLS:<fs_t180> TYPE any .
DATA:wa_t180 TYPE t180,
c_t180(15) TYPE c VALUE '(SAPMV45A)T180'.
ASSIGN (c_t180) to <fs_t180>.
wa_t180 = <fs_t180>.
If wa_t180-tcode = 'VA01' or wa_t180-tcode = 'VA02'.
Endif.
Thanks,
Vigneswaran S
Similar Messages
-
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 -
PROCESS CODE FOR PURCHASE ORDER
Hi Friends,
what is the process code for Purchase order... because i need to creating a partner profile in WE20 in the inbound side.. if iselect message type ORDERS menas.. that related.. process code( for purchase order is not displaying)..
can any of you give me the <b>Message type </b> and that related <b>Process code</b> for <b> purchase order</b>..
thanks
BabuHi Babu,
You will find out the all Process Code from WE41 for Outbound & WE42 for Inbound.
The Process code for ORDERS: Purchase order is ME10 for Outbound and you can find it out the message type for Inbound from WE42.
If need more info let me know..
Cheers
Veera -
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 -
Specific process code for Production order message type LOIPRO
Hello,
Is there any specific process code for Production order message type LOIPRO.
Request you to reply.
Thanks
PrashanthHi Prashanth,
sorry for last thread ... that not contain full information ...
For message type LOIPRO you can use process code APLI.
In IDOC PARTNER definition, the partner is linked with an IDOC TYPE and PROCESS CODE for inbound processing. This process code is in turn linked with a FUNCTION MODULE to process the IDoc such as IDOC_INPUT_INVOIC_MRM (Reff.. http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_cid519558,00.html)
Regards,
Amit -
Function module which uses both BAPI's for sales order create and change
Please name the function module which uses both BAPI's for sales order create and change.
BAPI_SALESORDER_CREATEFORMDAT2
BAPI_SALESORDERCHANGEYup.
you must write a piece of code for this.
with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
logic somethig like this.
Amit. -
Is there a Business Object for Sales Order Create and Change VA01 and VA02
Hi experts -
I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
Thanks,
MarkHi Mark,
I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
- Subhodeep
Edited by: Subhodeep on Aug 29, 2009 11:14 AM -
T-Code for Sales order mass output
Hi Friends,
I have 150 SOs. In which I need to process the output again. Checked the MASS trx for this but could not find any option?
Is there any otherway we can process the output at one shot?
Regards,
RamHi,
Just like we have the T.Code "VF31" for billing documents,we don't have any such T.Code here for "Sales orders".But there is a procedure.
That is:
Goto the T.Code "SE38".
Enter the program name as "RANAST00".
Execute.
Enter the application as "V1".
Enter the output type also.
Check the tick box "send again".
Execute.
Regards,
Krishna. -
Want the code for sales order confirmation idoc
New SAP output type ZA23 (with condition logic)for sales order confirmation is needed to create ORDRSP IDoc when the following 3 cases are true: 1) Item Added, 2) Line Item Changed,3) Item Deleted.
Changes to existing lines (option 002) can include:
- qty
- date
- priceLook at the function exits under the enhancement SDEDI001 you have many exits, i think the outbound idoc is primariy created by the function module: IDOC_OUTPUT_ORDRSP.
Hope this helps.
Rajeev -
Throw Information message for sale order created with value less that 5$
Hi all,
I am basically an abaper, I have got a requirement in SD. The requirement is any sales order created with value less that 5$, should be prompted with an error message saying the minimum order value should be more than 5$. Could any one help me on this.
Thanks in advance,
shivuserexit_save_document_prepare,main program - sapmv45a, issue an error message if your document value is less than 5$ (VBAK-NETWR) but check if your order has any non-rejected item, I would not issue this message if all items are rejected:
loop at xvbap where updkz ne 'D' and abgru = ' '.
exit.
endloop.
if sy-subrc = 0. "-you have at least one non-rejected, non-deleted item.
NOTE: sapmv45a works NOT only for orders, so please check document types in your logic which are relevant to your messge only (VBAK-VBTYP and/or VBAK-AUART). -
Applying Price list for sales order created from Internal Requisition
I am using 12.0.5. I have created a price list and applicable discount. I am creating Internal Requisitions and Importing them into Order Management as Sales Order using "Create Internal Order" and "Import Request". But when the sales orders are created, the pricing flag is "Freeze Price" and to apply the price list, I have to change the pricing flag of each line and re-price order/ line. Is this a way around this such that Sales orders created from Internal Requisitions pick up the correct discounted selling pricing automatically after import?
Hi Ravichandran,
When the Internal Sales Orders are created via Order Import program, the pricing flag will be "Freeze Price" because the value of CALCULATE_PRICE_FLAG will be set to 'N' in the OE interface line table by the Create Internal Orders program. This is the standard functionality of the Oracle.
However, if your requirement is to re-price the line (automatic application of discounts at the time of booking) after the SO is created then to avoid the manual repricing steps, you can write a custom program to update the CALCULATE_PRICE_FLAG to 'Y' for the OE Line records present in the interface tables itself. You need to make sure that this update happens before the Order Import program. You can create a Request Set to acheive this, for example...
XXX Create Internal Orders (Custom Request Set)
- Create Internal Order (Standard Oracle Program)
- XXX Update PriceFlag for ISO (Custom Program to update the price flag)
First run the above request set & then run standard Order Import program. So when SO is being booked, CALCULATE_PRICE_FLAG will be 'Y' i.e., Calculate Price, the required discounts will be pulled & the line will be re-priced automatically.
I hope this is what you wanted to achieve. Let me know if you have any questions.
Regards,
Hemanth -
Modify shipping point in sales order create/change
Hi,
I want to modify/overwrite shipping point value while create sales order and change sales order. Is there any user exit or BADI available to fullfill this requirement.
Thank you.
-PallaviHi Palavi,
You can modify or overwrite shipping point value while create Sales order or change Sales order. For this you have to modify field VBAP-VSTEL in the FORM userexit_move_field_to_vbap of include MV45AFZZ.
Regards
Dillip -
Hi friends,
Can any body tell me the t-code for creating sales order in CRM.
Thanks in AdvanceUse CRMD_ORDER.
Then select the transaction type that you need to create.
Regards
Kaushal -
Updating processing log for sales order header output
I want to prevent a custom sales order confirmation from printing when the order has not been approved. When the user requests the form to print in the background, I want to update the processing log to have a red light and a message indicating the order has not been approved, so it cannot be printed. When I pass an error message to the protocol processing, the update is terminated and my changes to the sales order are lost. Is there a way to update the processing log, show the red light, and not get the hard error?
Thank you in advance.
JaySetting the return code after the protocol update did the trick.
-
Transaction code for sales order totals and purchase order totals
Hi i am using alv grid report to display the sales order and purchase order totals by productline(profit center)
Now i have to call standard transactions from first list to display the totals of sales order and purchase order.I have to display these transctions for specfic orders and their specfic lineitems only.
in VA05n transaction it is allowing me to enter only the document numer but not item.
Can any one help to find the standard transaction to display the totals for only specific orders and line specific line itemsHi Polite,
The transaction CRMD_ORDER is the superset for all the transactions mentioned by you. So it is better to remember just one transaction instead of remembring the subsets . Once you use the transaction CRMD_ORDER and then Follow the menu Business transaction -> Create (F5) you will get the list of transactions you can create this is nothing but the the transactions you have mentioned.
If you know the transaction no. you can directly open that in transaction CRMD_ORDER. The other opetion is to use the SAP Menu instead of transactions.
<b>Reward points if it helps!!</b>
Best regards,
Vikash.
Maybe you are looking for
-
How to download data into two different columns 2003 excel format in ole
Hi ALL when we download data into excel using ole with delimiter it works fine in 2007 but when we check this with 2003 format both fields come in only one column .Can any one suggest CONCATENATE WA_ALL-PERNR LV_ICNUM INTO WA_PERNR SEPARATED BY W
-
Creative Cloud Illustrator always crashes
Help! Illustrator CC keeps crashing every time I try to save a file. My Creative Cloud is up to date, and I have a brand new iMac with 8GB Ram and the latest operating system. The average file size I've been working with is around 4MB, so not very bi
-
Hi, I'm new to LabView. So any help is appreciated. I have the PXI-8186 with the M-series PXI-6229 that I use to control/monitor multiple independent systems. my program can be described as follow: I have only one VI. In the VI, I have as many Whi
-
Copying Certain document types only from project to Solution Directory
Hello, We are in the process of setting up Solution Directory in Solution Manager 4.0 sp12. After creating a solution we'd like to add scenarios from multiple implementation as well as template projects based on the document type. We have several
-
I can't get my IMac OSX 10.7.3 to print on an HP CLJ 8550n printer
I can't get my IMac OSX 10.7.3 to print on an HP CLJ 8550n printer??? Will a print server help?