Sales Order Ack through email
Hi Experts:
We need to send a mail to the customer for the Sales Order Acknowledgment. We have the Print Program and SAP Script for FAX/Print output.
We are extending this to send email also. But we would like to know what are all the parameters we need to pass for the following fields to OPEN_FORM:
MAIL_SENDER - Type SWOTOOBJID
MAIL_RECEIPIENT - Type SWOTOOBJID
MAIL_APPL_OBJECT - Type SWOTOOBJID
We would like to know what are the Tables and Field names to find the values to pass into this parameters
Thanks,
Kumar
VALUE(DEVICE) TYPE C DEFAULT 'MAIL'
The parameters MAIL_SENDER and MAIL_RECIPIENT to pass the sender and the recipient of the document. To fill these parameters, you have to create the respective BOR objects of object type RECIPIENT and fill their attributes.
The parameter MAIL_APPL_OBJ, which you use to link the application object with the sent document. You have to create a BOR object for this parameter too.
Even though the parameters MAIL_SENDER, MAIL_RECIPIENT, and MAIL_APPL_OBJ are primarily designed for sending e-mails, they also provide a general connection to the BCI. This means that you can use these parameters to address all the communication methods that the BCI supports.
To set the recipient type of the RECIPIENT object, use the TypeId attribute.
Similar Messages
-
Sales Order Confirmation through Email
Dear Friends,
Can i ask you to give me a quick idea on what need to be done to establish the functionality to send the order confirmation through emails.
Thanks in advance.
RaviOnce you made sure that the output type definition is all set with all relevant data and ABAP work, go to the condition record of the same output. Maintain the mediums as 5 -- Extrenal Send and Date / Time as 4- send immediately when saving the order. Then go to the details of the record and maintain the relevant communication strategy. Save the record. This should trigger the mail automatically when you save the order.
If you also want to print with the same output type, then you need to go back to order VA02 , repeat output and change the medium to 1.
If you want to automatically print and also mail on single save / then you need to tweak the output program to trigger print and mail both at the same instance. This is possible by the output program. Then you need to keep the medium as 1.
Hope this helps.
Sai -
Trying to create a Sales Order Confirmation through IDoc
Hi,
I am trying to create Sales Order Confirmation through ALE with message control.
My recieving system is XI server.
Can u please send me the steps to what to be done to trigger IDoc automatically.
The condition types and access sequence created is for Output type customer but i am sending it to XI Server.
please help me.
Thank you in advance,
Gangolu.Hi Gangolu,
Have a look at url. Hope this provides some inputs.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
Thanks
Lakshman -
Email Parameters for Sales Order Ack
Hi Experts:
We need to send a mail to the customer for the Sales Order Acknowledgment. We have the Print Program and SAP Script for FAX/Print output.
We are extending this to send email also. But we would like to know what are all the parameters we need to pass for the following fields to OPEN_FORM:
MAIL_SENDER - Type SWOTOOBJID
MAIL_RECEIPIENT - Type SWOTOOBJID
MAIL_APPL_OBJECT - Type SWOTOOBJID
We would like to know what are the Tables and Field names to find the values to pass into this parameters
Thanks,
KumarHi
If you configure the output type to Medium 5 and maintain email address in the partner.
Email will automatically go
Regards
Madhan -
Changing the Ship-to partner details in Sales order header through exit
Hi all,
I have a requirement where in during the process of the sales order creation, based on certain
criteria, the details in the ship-to partner would have to be modified.
These details like the Name, Street, etc would be maintained in a local table and based on the criteria,
the appropriate record from this table would be fetched and updated to the ship-to partner.
I was trying to implement this in the MV45AFZZ user exit. However, I was not able to update this through the exit.
Would I have to somehow update the ADRC table directly through this exit or is there any better method.
Please suggest.
Regards,
SudeepHi,
If you could not find Street in this Routine call the BAPI BAPI_BUPA_ADDRESS_CHANGE to update Street and required details ..
Thanks and regards,
Sree. -
Update sales order qty through BAPI_SALESORDER_CREATEFROMDAT2
HI
Can anybody help me out. I have the requirement for creating sales order through BAPI_SALESORDER_CREATEFROMDAT2. The sales order is created but with 0 quantity.
I am using fields RNDDLV_QTY and TARGET_QTY and REQ_QTY in schedule lines & also setting the update indicator to 'X' in the corresponding itemx structures.
In fact it used to work earlier and has stopped now. I am also checking if there could be any change in configuration but don't think this should be the reason.
Can someone guide me as to which quantity fields of the BAPI are the right ones to update sales order qty?
thanksHi,
You are using the correct fields i.e. TARGET_QTY and REQ_QTY. Just check if you are passing the same Item Number in both the tables.
Hope it helps...
Lokesh -
Sales order uploading through LSMW
*Hi All,*
*SAP version Up gradation how to Sales Order data migration through LSMW Batch input Record. Please tell send me any one step by step.*
*Regards,*
*Murali.*Hi
check the link
[http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc]
Regards
Amitesh Anand -
Sales order uploading through bapi
hi
i want to upload sales order to bapi pls give the code and i also error handling through bapi
regards
A.KHi Awadhesh,
pls look at this link you will get a clear idea and the code.
http://abaplovers.blogspot.com/2008/02/bapi-sales-order-create-code.html
Happy to help you.
Regards,
Viveks -
SCM Issues with Sales Orders Created through CRM
Hi All,
I'm trying to ascertain any issues with ERP processing that will not update orders created through CRM, i see there was a OSS Note some time back informing that the backorder reschedule program would not update orders created in the CRM system. Is this still the case and are there any other process that we should be marking as an issue?
ThanksHi Sirisha,
The solution depends on the exact issue you are facing.
The CRM Sales Order is created OK, but you only see the error when you open the Sales Order?
If this is the case, then you can follow the steps below:
1. Find the Message ID and Message No for the error message
2. Use Program - CRM_MESSAGES_DELETE to delete error messages from the error producing Sales Orders.
Let me know if this is not the issue you are facing.
Regards,
Nelson -
Sales order change through bapi
iam uploading va02 changes through bapi..but its not changing the sales order
details in bapi_change function module item number its taking as zero. plz can any one
say where iam going wrong.this is my code
*______BAPI STRUCTURES
data : bapi_header type BAPISDH1 occurs 0 with header line,
bapi_item type BAPISDITM occurs 0 with header line,
bapi_header_x like BAPISDH1X occurs 0 with header line,
bapi_item_x type BAPISDITMX occurs 0 with header line,
it_return type BAPIRET2 occurs 0 with header line.
data: v_vbeln like BAPIVBELN-VBELN,
v_bstkd like bapisdh1-purch_no_c,
v_zterm like bapisdh1-pmnttrms,
v_inco1 like bapisdh1-incoterms1,
v_inco2 like bapisdh1-incoterms2,
v_arktx like bapisditm-short_text,
v_koe1n like bapisditm-currency.
*_____ Internal to hold the records in the text file
DATA : BEGIN OF it_header OCCURS 100,
VBELN(10) ,
BSTKD(35) ,
ZTERM(4) ,
INCO1(3) ,
INCO2(28) ,
POSNR(6) ,
matnr(18) ,
ARKTX(40) ,
END OF it_header.
*_____ Internal table to hold excel file data
DATA : it_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK scr1 WITH FRAME TITLE text-111.
PARAMETER : p_file TYPE rlgrap-filename OBLIGATORY .
*paRAMETERS : p_header TYPE i DEFAULT 0.
parameters : p_begcol TYPE i DEFAULT 1 NO-DISPLAY,
p_begrow TYPE i DEFAULT 1 NO-DISPLAY,
p_endcol TYPE i DEFAULT 100 NO-DISPLAY,
p_endrow TYPE i DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK scr1.
___________START-OF-SELECTION________________
START-OF-SELECTION.
PERFORM convert_xls_itab. "to convert excel data into internal table
___________END-OF-SELECTION________________
END-OF-SELECTION.
*& Form convert_xls_itab
text
--> p1 text
<-- p2 text
FORM convert_xls_itab .
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = p_begcol
i_begin_row = p_begrow
i_end_col = p_endcol
i_end_row = p_endrow
TABLES
intern = it_intern.
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM move_data. " to move the data into an internal table
ENDFORM. " convert_xls_itab
___________END-OF-SELECTION________________
END-OF-SELECTION.
PERFORM upload_so. "to upload salesorder changes
*& Form upload_so
text
--> p1 text
<-- p2 text
*& Form move_data
text
--> p1 text
<-- p2 text
FORM move_data .
DATA : lv_index TYPE i.
FIELD-SYMBOLS <fs>.
SORT it_intern BY row col. "Sorting Internal Table
CLEAR it_intern.
LOOP AT it_intern.
MOVE it_intern-col TO lv_index.
ASSIGN COMPONENT lv_index OF STRUCTURE it_header TO <fs>. " assigning each record to internal table row
MOVE it_intern-value TO <fs>.
AT END OF row.
APPEND it_header.
CLEAR it_header.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
" move_data
*& Form upload_so
text
--> p1 text
<-- p2 text
FORM upload_so .
LOOP AT it_header.
Header
v_vbeln = it_header-VBELN.
bapi_header-purch_no_c = it_header-BSTKD.
bapi_header-pmnttrms = it_header-ZTERM.
bapi_header-incoterms1 = it_header-INCO1.
bapi_header-incoterms2 = it_header-INCO2.
APPEND BAPI_header.
bapi_header_x-updateflag = 'U'.
bapi_header_x-purch_no_c = 'X'.
bapi_header_x-pmnttrms = 'X'.
bapi_header_x-incoterms1 = 'X'.
bapi_header_x-incoterms2 = 'X'.
APPEND BAPI_header_x.
item
REFRESH BAPI_item.
bapi_item-ITM_NUMBER = it_header-POSNR.
bapi_item-material = it_header-matnr.
bapi_item-short_text = it_header-arktx.
bapi_item-currency = it_item-koein.
APPEND BAPI_item.
bapi_item_x-updateflag = 'U'.
bapi_item_x-ITM_NUMBER = it_header-POSNR.
bapi_item_x-MATERIAL = 'X'.
bapi_item_x-short_text = 'X'.
bapi_item_x-currency = 'X'.
APPEND bapi_item_x.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = V_VBELN
IMPORTING
OUTPUT = V_VBELN.
BAPI to change sales order
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = v_vbeln
ORDER_HEADER_IN = bapi_header
ORDER_HEADER_INX = bapi_header_x
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
RETURN = it_return
ORDER_ITEM_IN = bapi_item
ORDER_ITEM_INX = bapi_item_x
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
COMMIT WORK.
ENDLOOP.
IF IT_return-type = 'E'.
WRITE: / 'Error :', IT_return-message, / 'for VBELN:',it_HEADER-VBELN.
ELSEIF IT_return-type = 'S'.
WRITE: / 'Successfully CHANGED', it_HEADER-VBELN.
ENDIF.
ENDFORM. " upload_so
thankshi
You can use ORDER_ITEMS_IN. For further details use the documentation of the function module.This must help you in your requirement.
regards
Aakash Banga -
NO MATERIALs in the Sales order created through inbound idoc file
hi,
i have maintained the customer material number as well the SAP Material number in the tcode VD51,but still the inbound
idoc type ORDERS03 is posting the application document(Sales order) without the materials.
for instance,
I have cust.material as CUSTMAT1 in the idoc file.
I have maintained the CUSTMAT1 as cust material and 1001 as material no in VD51.
After posting the inbound idoc file using RSEINB00 prg,the idoc is created and i can see the CUSTMAT1 in the material segment field
The Sales order is created successfully ,but without the materials.
i need the application document has to be posted with materialsm,can any one help me to solve this issue.?
ThanksHi ganesh ram
In order to determine the Material Number with you custom material then you needs to have some configurations.
Check with your Functional consultant to add the Access sequence for determining the Material Number with you custom material
In Sale order processes...
Thanks
Ramesh -
Sales order / supply through MRP / missing ATP
Dear all,
During the creation of a sales order, where stock is supplied via stock transport order, no control of availability is performed.
In MRP2, planned delivery time is set up, but no delivery date is confirmed in sales order, neither for requested delivery date nor other future date proposition?
Can anyone assist please?
Thank you
MartheHi Marthe,
please make sure what you have maintained in availability check " " in material master sales general/plant and also check the combination of checking group and checking rule in OVZ9
EX: 02 checking grp (avail. chk), 01 checking rule
there check box w/o RLT should un check because its one of the parameter which help to work on forward scheduling to available the stock
I hope it will help full for you
Thanks -
Sales order billing through CATS.
Hello there,
I have an issue..
We are working on a PS implementation project. This is an implemention for n ERP solutions provider( say A).
In this case A provides manpower for its respective clients. They have maintained contracts with their clients for specific periods.
Now based on time sheets generated by the personnel, A generates sales orders and correspondingly bills their clients.
Now our issue is, how do we use time sheets(CATS) to generate billing documents.
Thanks a million.You can enter time against the sales order/item in the CATS timesheet, but I have never done that; I believe you don't do that if you are using PS due to the other benefits of collecting these expenses on the project (reports, RA, actual/plan comparisons, material, etc...).
Using PS, you could use Resource-related billing for this purpose. You basically have the time charged to a network activitiy in CAT2, then transfer the cost to the project using CAT5. Then, you will create a billing request using DP91/95. There are other steps in between, which are explained in greater detail at this link on the SAP help pages:
http://help.sap.com/erp2005_ehp_02/helpdata/en/aa/96853478616434e10000009b38f83b/frameset.htm
Let me know if you want to go deeper into any of these areas. -
Sending sales order details through ALE to External system
hi folks,
i have a simple scenario to do with ALE/IDOCS. i have to create sales order in SAP. And when ever that SO is created the sales orders details should be sent to an external system (here, notepad). could any one suggest me teh step by step proceduer for the same......or atleast some brief procedure hw to acheive this...i also have one more doubt....can we send IDOCS from ECC 5.O to IDES 4.6. if i am trying to do the same it showing some error mentioning that basic idoc type does not exist in 4.6c......can any one resolve my doubt,
thnx in advance,
santosh.Thanks for your quick response, Sarathy.
Yes I am referring to SAP ECC to third party system but using ALE.
Here is the scenario, a sales order will be created in SAP CRM and that sales order will be replicated to ECC as a sales order. Now I need to generate an Idoc for this sales order to send it to a third party system.
Regards -
Sales Order confirmation through standard IDoc in Background
Hi all,
I want to send Order confirmation throough standard or existing IDoc.
Can you please help me the steps to configure the IDoc
and also the standard program to fill the IDoc with the data and send as background job.
It is also the case for
Invoice
and Shipping
Can you please send me the steps to configure and standard program to fill the IDoc with data.
Hope you would respond me ASAP.
Thanks and Regards,
Shalem.Hi,
After the sales order has been created, an ORDRSP IDoc is automatically created using message control. This IDoc is sent from the vendor system to the retail system, which means that the outbound IDoc can usually be found in the vendor system and the inbound IDoc in the retail system.
SAP menu -> Tools -> Business Communication -> IDoc Basis -> WE02 > Display IDoc.
Before this you need to complete NACE configuration Part.
If you want to send the IDocs automatically while creating sales order, you can configure it using message control. The process code will be SD10, which is for sales order confirmation (called as EDI 855).
Use NACE transaction to create output/message type with program as RSNASTED and form routine as EDI_PROCESSING and configure the condition record for your partner (profile). Also configure the same in your partner profile.
<i>Hope This Info Helps YOU.</i>
Regards,
Raghav
Maybe you are looking for
-
Hard drive failure and replacement
My Macbook's hard drive failed the other day. I am currently in the market for a replacement internal drive. I remember that Apple used to sell the internal drives on their website but cant seem to find them anymore. Did they discontinue them for som
-
I am working on porting an plugin from CS5 to CS3 on a MAC, this plugin uses some features of boost libary. So when i try to compile the plugin in CS3 i get a no of linking errors related to boost, however the plugin builds successfully in CS5. So i
-
Post cash discounts to several profit centers (by material)
Hi, In ECC6 with new GL, is there an way to break down the cash discount into different line items according to the material's profit center? I know that this can be solved by activating the document splitting, but is there a non-manual way to do tha
-
Urgent: Shift weekly off
hi all I am working on HR-ABAP . I need to implement a check on weekly off assignment. The scenario is like this: The workers are assigned to different shifts corresponding to which they are assigned a weekly off day. Now when the shift of a worker c
-
Date Modified Date/Time Issues on Files Exported to Excel
Hello - I am using Crystal Reports XI, Release 2 and Visual Studio 2005 Enterprise Edition for my ASP.NET application. CrystalReports dll version : 11.5.3700.0 .NET Framework 2.0.50727 I use the CrystalDecisions.CrystalReports.Engine.ReportDocument t