Attach sapscript for email message in sales order

Hello to all.
I need some help..
I'm trying to include a sapscript form in a message on sales order in VA01. I can already send email to outside SAP, but can't include de sapscript form into the mail.
I make a copy of the standard message MAIL, and include de sapscript form that i want to attach.
Anybody have an idea how to solve this issue?
best regards,
Susana Marques

Hi
I think u need to create a message type MAIL just as u done, but u should check if this kind of message is managed by your driven program.
Check the call of FM OPEN_FORM, here the parameter DEVICE has to have the value MAIL, perhaps here it's always transfered PRINT.
The second control is on master data of the partner of the message: he has to have the mail address.
The last control is on the master data of the user: he has to have the mail address.
Max

Similar Messages

  • Customer error message in sales order on save

    Hi Friends,
    as per requirement i have to raise the error message and system should enable the field to change values. This should happen when condition is not met on Saving of Sales order.
    For this, i have used the user exit USEREXIT_SAVE_DOCUMENT_PREPARE. But the problem is system throwing error message and all r in display mode only. as per my requirement system should allow to change the error value field.
    i have verified many posting in this SDN, but nothing is working out.
    Please guide me, how to raise the error message and system should enable that filed.
    My doubt is where should i raise the error message in sales order (MV45AFZZ)??? if any badi to raise the error message also fine for me. I tried many ways like... message with display like..... and set / get parameters and badis....  but not able to find the correct solution.
    Thanks in Advance.
    Bala

    Hi
    You need to use check for enahcement spot, which will be help to you.
    Bcz you are throwing custom error message in the standard transaction, once the error is display, you could not able to change the values. your prob can be solved by using the enhancement sport.
    This is include name (Include:MV45AF0B_BELEG_SICHERN).
    In the above include, you need to create a enhancement spot after this spot (ENHANCEMENT 16  OI0_COMMON_SAPMV45A.)  
    write your custom code and while displaying an error message. set flag = 'x', then use below code. It will display error message once you press ENTER, you will get the sale order in change mode, you change the values.
      IF flag = 'X'.
              fcode = fcode_gleiche_seite.
              perform fcode_bearbeiten.
              ch_subrc = 4.
              exit.
            ENDIF.

  • Services for Object button in Sales Order

    Hello Experts,
    We are not getting Services for Object Button in Sales Orders. Actually we need to attach some documents to Sales Orders.
    Thanks in advance.
    Mamta.

    Dear Friend,
    If you are not getting Services for Object Icon in Sales Document, then follow this:
    T-code - SU01 u2013 Here Enter User ID & click in change icon.
    Then click on Parameters Tab & Add Parameter u2013 SD_SWU_ACTIVE. .
    This will definitely solve your problem...
    Thanks,
    Jignesh mehta

  • Set error message in sale order

    Hi,
    I want to put set the error message for given fields in sale order.So that order can not be save without filling the given fields.
    Fields are -
    Shipping type
    Personnel Number
    Material freight grp
    Net value
    Pricing
    Harsh

    Hi Harsha,
    My thoughts item 2,4 & 5-
    1.Shipping type
    2.Personnel Number - Since this is partner function coming from your customer master, am not sure if it can be covered with incompletion log - if not you would need a piece of abap code in save_document_userexit to check if the partner function was filled.
    3.Material freight grp
    4.Net value - If the sales order item category needs to be priced, then this field is already marked required for sales document completion. No change needed
    5.Pricing - If the sales order item category needs to be priced, then this field is already marked required for sales document completion.No change needed
    regards
    sadhu kishore

  • Updating email address in Sales order header partner address -VA01/VA02

    I got the requirement to update the email address in Sales order-> header-> partner address.
    The mail address will be picked from ZTABLE and updated in header partner address through user exit
    I cannot find any field for updating email address in partner address in user exit "MV45AFZZ"
    Is there any other user exit/option to update email address in header partner address of sales order?
    Thank You,
    GM

    Hi Rajesh,
    I agree with you but this Scenario is different.
    Just as you have mentioned the address change will not reflect in the Old Sales orders but it should in the new Sales orders right??
    But that is not happening..The Address was changed say two months back and the new address is not appearing in the Sales orders created these days say yesterday or today..
    In such a case,what is should I check to get the address updated??
    Please advice.
    Regards,
    Sophia Xavier

  • Is it possible to create a actual invoice auntomatically for Internal Requisitions/ Internal Sales Orders

    Currently customer has some regulations in other countries that require they create a actual invoice for Internal Requisitions/ Internal Sales Orders.
    Is there a way that these can be created automatically and emailed to specific users?
    Thanks,
    Ling.

    Pl post in the Financials forum - Financials

  • Function module for deleting the perticular sales order

    Hi Experts
    I wanted a function module name for deleting the perticular sales order document ,when i enter the import parameter as sales order no  and some value as export parameters so that i can use that for the program (message :successfully deleted ).

    Hi Satya,
    Use BAPI BAPI_SALESORDER_CHANGE as follows:
    DATA: T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: BAPISDH1X LIKE BAPISDH1X.
    PARAMETERS: P_VBELN LIKE VBAK-VBELN.
    *SET THE DELETION FLAG
    BAPISDH1X-UPDATEFLAG = 'D'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = P_VBELN
    order_header_inx = BAPISDH1X
    tables
    return = T_RETURN
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Hope this will help.
    Regards,
    Nitin.
    Edited by: Nitin Karamchandani on Dec 8, 2008 8:36 AM

  • User exits for route determination in Sales order & Deliver creation

    Hi Gurus,
    I need to do some change in the route determination for both sales order & Delivery creation.
    Can anyone suggest me which user exit I have to use.
    Appropriate answers will be awarded.

    Hi,
    You can use the following exit for route determination - EXIT_SAPL0VRF_001.
    The FM documentation is below. Check the functionality:
    "The customer exit can be used for customer-specific route determination or to modify the inbound data for the company's own route determination.
    The following data is transferred to support customer-specific route determination:
    I_VBAK current order header (for route determination in sales order)
    I_VBKD order business data (for route determination in sales order)
    I_VBAP current order item (for route determination in sales order)
    I_VBPA current sales partner
    I_LIKP current delivery header (for route determination in delivery)
    The following data can be modified and transferred back to the standard route determination or used for a specific route determination:
    C_ALAND Country of departure
    C_AZONE Departure zone
    C_LLAND Destination country
    C_LZONE Receiving zone
    C_VSBED Shipping condition
    C_TRAGR Transportation group
    C_GRULG Weight group
    C_FLAG_GEN_VT Flag: Route determination with generic shipping
    requirements/transportation group.
    C_FLAG_INCR_GRULG Flag: Increase weight group if no route
    If you want to use a standard route determination with different parameters, trigger the exception 'CONTINUE_WITH_STANDARD'.
    In the log table C_PROT, the log data from the customer-specific route determination can be transferred back. In this case, the log entries always refer to customer-specific messages. To add a message to the log table, the function module SD_ROUTE_DET_LOG can be used (see below).
    If a route is determined in the customer-specific route-determination, it can be transferred back in the E_ROUTE field. If no route was found, the exception 'NO_ROUTE_FOUND' is to be triggered."
    Thanks.

  • Free finish goods for certain level of sales order amount.

    Hi Gurus,
    I want to add some free finish goods if the sales order amount is greather than a certain amount for OR sales order type
    For example : if the sales order net amount is greather than 1000 - I want to automaticaly add a FG - 347234FG .
    Is it possible without having SAP retail module ?

    Khaled is right for details refer to sap help page:
    http://help.sap.com/saphelp_46c/helpdata/en/dd/55fa68545a11d1a7020000e829fd11/frameset.htm
    Good luck!

  • Pricing For Text Item in Sales Order

    Hi ,
    How to give price for text item in sales order.
    With regards.
    Afzal

    Hi Afzal,
    consider to create a single service material as a generic one, type DIEN, with basic data and sales org views, with  item category group LEIS (it will determine item category TAX in sales order). Material description could be "Don't forget to change me!" so in sales order user remembers to changes the description according to the especific sales order requirements.
    Regards,
    JM

  • !!!How to restrict user for making  changes in Sales order , partner level

    Hi all,
    Can anybody tell me how to restrict user for making  changes in Sales order  at partner level, is it through user exit?

    Hi Ruchi
    I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
    Hope its clear
    Reward if help ful
    Sri

  • COGS determination for Free of cost sales order

    Hi All,
    We have an issue regarding the COGS determination for Free of cost sales order. We created a free of cost sales order. But i need to know whether this sales order items will hit to COGS or not? If so how do i check whetehr its has been charged to COGS or not? and we have an issue raised saying thst one material in this sales order has not being charged to COGS. So please help me to solve this issue. Ihave checked the account assignment in GBB-VAX. And is there anyting to do with the settlement profile for COGS determination?.
    Thanks and regards
    Uday

    Hi,
    During PGI a material document and accounting doc gets created which would hit COGS account.
    You're talking about one specific sales order in which for one material it didn't hit COGS account or any order you're creating now with that material has an issue? If its a specific material which has an issue always..then something is wrong with that material master setup. Also you can go to the reported Sales order--doc flow to the PGI document and check the accounting doc and if its not posted..check the analysis why its not posted?
    And if its one off then I would suggest 2 options:
    1) Reverse the goods movement, cancel the delivery or if billing has already been done..cancel the billing as well. And re-do the cycle. This always ensures correct posting.--> Recommended option.
    2) Manual adjustment in FI.
    And settlement profile is Controlling concept..not sure you would get any help on this in this forum.
    Regards
    RS

  • LSMW for open notifications,open sales order & open service order

    Hi Gurus,
    Can anyone please tell me how to go about writing LSMW's for open notifications,open sales order & open service order.
    This is for service processing in CS ,where has the scenario is 
    Create Notification (IW51) --> create Sales Order(Multiple Line Items) ( VA02) --> Create Service Order ( IW32)
    Service order is automatically (Item Proposal) generated w.r.t Sales Order (multiple line items)
    How to I do the recording for transactions in such a scenario.
    Please suggest!
    Thanks!
    Vinod

    you can use the below LSMW IDOC method
    SALESORDER_CREATEFROMDAT2       Sales order: Create Sales Order
    SERVICENOTIFICATION_CREATEFROM  Create service notification
      SERVICE_CREATE                  Creation of a Service Master Record
    CARNOT                          Delivery: Shipping notification
    DESADT                          Shipping notification
    DESADV                          Delivery: Shipping notification
    INOTIF                          Notifications
    INTUPD                          Notification Status Update
    ISU_ADVICE                      IS-U Deregulation: Notification
    ISU_CHANGE_REQUEST              IS-U: Notification of Change to
    ISU_MAINT_SO                    IS-U Dereg.: Notification of Dev
    ISU_REMITTANCE_ADVICE           Transfer Notification

  • I opened a PDFs file that was attached to an email message and now it will not close when I press "Done" as it usually does. Does anyone have a solution to suggest? Thanks.

    I opened a pdf file that was attached to an email message I received and now it will not close when I press "Done" as files usually do. Does anyone have a solution to suggest please? Thanks.

    Try double clicking your home button then force close the stuck PDF by swiping upward. Once you've done that just click the home button again to exit.

  • ADDDITIVE COST FOR PRODUCT COST BY SALES ORDER SCENARIO.

    Dear friends,
    We are using costing for sales order & we have maintained the costing variant under the path IMG> Controlling> Product Cost Controlling> cost object controlling> Product cost by sales order >premliminary costing & order based costing>product costing for sales order costing>Costing variant for Product costing >Check costing variant for product costing.
    Under this we have maintained the Costing variant, Now we need to have Additive cost. But didnt found the tab in the costing variant where as when we check in T.code OKKN which is a part of Product cost planning we can find the Additive cost tab.
    How to run addtive costing run for Product cost by sales order scenario & please guide me with one example.
    Or else is there any configuration where we can assign standard costing variant PPC1 instead of Costing variant SOC1 ( which is a costing variant of Product cost by sales order.
    Please guide me
    regards,
    Sandeep

    Hi Sandeep,
    You may please try using Unit Costing for Sale Order.
    It is over an above the sale order costing you have done. So in case you want to post any additional known cost, you may do the unit costing for the sale order after the sale order costing.
    Trust this helps

Maybe you are looking for