How to send an e-mail to sold to party on creating a sales order?

Hi
Please tell me the procedure of configuration so that an email will be sent out to the sold-to party on creating the sales order.
I've created the action profile by using order_messages. Also the transaction type: ISBB have been used.
Still the mail is not going to the sold to party id.
Thanks & Regards
Neetu Makhloga

or you can use ORDER_SAVE BADI . you can create new implementation for it. when sales order gets saved this implementation will be triggered. here you can get the guid of the transaction so you can use it if you want to read any details of transaction. you can place email code also here.  this is the sample code for sending email.
send_request = cl_bcs=>create_persistent( ).
          document = cl_document_bcs=>create_document(
                              i_type    = c_raw
                              i_text    = l_mailtext
                              i_subject = l_subject ).
          TRY.
              lt_text = it_send1.
              CALL METHOD document->add_attachment
                EXPORTING
                  i_attachment_type    = c_attch_type
                  i_attachment_subject = c_attch_subject1
                  i_att_content_text   = lt_text.
            CATCH cx_document_bcs .
          ENDTRY.
Add document to send request
          CALL METHOD send_request->set_document( document ).
Get Recipient Object
          CLEAR l_recipient.
          l_recipient = wa_log-mes.
          recipient = cl_cam_address_bcs=>create_internet_address( l_recipient ).
          CALL METHOD send_request->add_recipient
            EXPORTING
              i_recipient = recipient.
Set that you don't need a Return Status E-mail
          CALL METHOD send_request->set_status_attributes
            EXPORTING
              i_requested_status = c_status1
              i_status_mail      = c_status1.
          CALL METHOD send_request->set_send_immediately( c_flagx ).
          CALL METHOD send_request->send( ).
          COMMIT WORK.

Similar Messages

  • How to create ship to party and sold to party for DC10 during sales order ?

    Hello all:
    When creating sales order for a material in VA01 with sales Org 1000,
    distribution channel 10, division 00
    The system does not give me any Ship to Party and Sold to Party with the above combination
    How to create ship to party and sold to party with the above combination (Plant 1000,
    sales org 1000, distribution channel 10, during creation of a sales order
    Ironically, when creating material master for a material with a material type KMAT, plant 1000
    sales org 1000, the only distribution channel is populating in the input help (F4) is 10
    For which no ship to party neither sold to party is maintained in sales order creation
    Thanks in Advance!!

    Dear Eshwer
    It is bcoz, the said account groups (Sold To Party and Ship To Party) are not created in the sales area 1000 / 10 / 00.
    To create a customer master, you have to go to XD01, select the Account Group, Company Code and the respective Sales Area and execute.  In the Customer Master, you have three tabs, viz.General Data where you have give address details of the customer, then in Control Data, you have to assign the respective Recon Account and in Sales Area Data, you have to maintain the customer's sales related details.  Once you give all these datas and save the data, a customer code will be displayed at the bottom.
    Now go to VA01, input the sale order type and the sales area and execute.
    thanks
    G. Lakshmipathi

  • Changing Sold-to party on an open sales order deletes item text

    Hi,
    When changing the sold-to party on an open sales order document, all of the item text is deleted.  Is there a way to prevent this from happening, or is this standard?
    Thanks,
    Craig

    If u r wishing to change the sold to party for a particular item it means u r not selling that item to him. U cant have 2 different sold to parties  in a single sales order.. U can change other partner functions at sales order level but not sold to party partner function....
    U can assign reason for rejection to close this particular order and raise a fresh order in favor of the sold to party u wish to for that particular item...
    Message was edited by:
            srinivas rao

  • How to: Send out e-mails through a 3rd party mail host?

    Hi,
    We would like to send out e-mail campaign from our CRM system.
    But we would not like to risc being blacklisted as spammer, so we would like to send out the e-mails using a 3rd party mail host provider.
    Our sales department already use our CRM system for sending out their sales related e-mails.
    They use our corporate exchange server for that.
    So the scenario is:
    I have created a smtp node in trx scot, and liked it to our domain *company.com
    This node points to our corporate mail host. All our normal users use this domain.
    All our campaign e-mails from CRM should be send using another mail host as described before.
    According to note 455140, I don't see that I can create a new smtp node in scot.
    And link this one to our new e-mail domain *company-news.com and the external mail host.
    How do I send these e-mails to a specific mail host when the sender is a specific domain e.g. company-news.com?
    My Exchange server guys say that they can't redirect specific mails send from our CRM system.
    They can only redirect all mails that are send from our CRM system, but then all the e-mails from our sales reps are also send through a 3rd party mail host.
    Does anyone have battled with this before, and how did you solve it?
    best regards
    Michael Wolff Knudsen

    We bought a new Exchange server, version 2007 just for CRM. This Exchange version can tunnel the e-mail to our 3rd party vendor, and they can send out the e-mails so neither one of us gets spammed.

  • How to Send Appointment via mail adapter

    Hi Guys,
         I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
    This is payload content of appointment which got from Exchange server to gmail:
    _=_NextPart_001_01C71EC0.97A011C6
    Content-Type: text/plain;
        charset="GB2312"
    Content-Transfer-Encoding: quoted-printable
    When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
    Where: China
    ~*~*~**
    This is calendar content
    _=_NextPart_001_01C71EC0.97A011C6
    Content-class: urn:content-classes:calendarmessage
    Content-Type: text/calendar;
        method=REQUEST;
        name="meeting.ics"
    Content-Transfer-Encoding: 8bit
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0100
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0200
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20061213T141132Z
    DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
    SUMMARY:This is calendar test
    UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
    010000000CA9F127EA8947844BC4DD47F269BDEA9
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
    ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
    LOCATION:Shanghai
    DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
    DESCRIPTION:This is calendar content\N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20061213T141132Z
    LAST-MODIFIED:20061213T141133Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    X-MICROSOFT-CDO-OWNERAPPTID:367904726
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
    END:VEVENT
    END:VCALENDAR
    _=_NextPart_001_01C71EC0.97A011C6--
    My question is
      1. How to generate this kind of payload in mail adapter module?
      2. It is possible to send appointment via mail adapter?
    Following i can get from other system, even using mail package check or not using mail package check.
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+08.00) Kuala Lumpur/Singapore
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20070608T025852Z
    DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
    SUMMARY:This is meeting request with attachment
    UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
    010000000C5E16D144D1612498C0EF7E2115EFEC4
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
    ":MAILTO:roc*@**
    ORGANIZER;CN="Xu,y":MAILTO:roc*@**
    LOCATION:India labs
    DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
    DESCRIPTION:This is content!  <<shanghai.txt>> \N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20070608T025925Z
    LAST-MODIFIED:20070618T033505Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
    X-MICROSOFT-CDO-OWNERAPPTID:1468557271
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
    END:VEVENT
    END:VCALENDAR
    Thanks & regards
    Rocky

    Hi
    have a look at this
    You can use Java/ABAP proxies to do this job for you..
    Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
    Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
    If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
    Thanks

  • In iCloud, how to send an e-mail to a group of contacts, once I've created the group?

    I have created a group  from my iCloud contacts, but do not see how to send an e-mail message to this group.
    The help topics don't go this far.  Can anyone help?

    Thanks Winnie;  but why didn't that work when I typed in the whole title of the group?   Just the 1st 2 letters did the trick.
    Over & out

  • How to send HTML Format Mail using Java Mail in oracle 9i Forms

    Dear All
    could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
    if it is possible, could you please send me the sample code? please very urgent
    Thanks
    P.Sivaraman

    Hello,
    <p>Here is a Form sample.</p>
    Francois

  • How to send an encryted mail

    Hi all,
             I have an issue. How to send an encrypted mail using smartform output.
    I am using the output from smartform and converting it to pdf and then sending that pdf as attachement through mail. But before sending,  i have to encrypt the contents of the mail. Plz anybody know the solution for this issue?

    check this link...
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/c153426da9bd30e10000000a155106/content.htm
    Encrypt.?
    How to Encrypt?

  • How to send birthday wish mail to Employees on daily basis

    Hi ,
    How to send birthday wish mail to employee with greeting card as background image in Mail Content area.
    Is there any Standard program available in SAP.
    _Requirement:_
        Normal , Birthday Wish mail can be done through function module SO_NEW_DOCUMENT_SEND_API1.
        How to write program for getting , Greeting card as background image in Mail Content area.
        Is there solution in SAP .
    Regards
      Surendar

    Hi,
    Check this for embedding image in your email : Using CL_BCS to send email from ABAP
    And this about image as background and other related stuff : http://www.reachcustomersonline.com/2010/01/23/09.27.00/#faqs
    Best regards,
    Guillaume

  • How to send Deadline Monitoring mails to an external mail (LOTUS NOTES)?

    Hi all,
    1. I know how to send Deadline Monitoring mail to an SAP INBOX. But i need to send the deadline monitoring mail to an external email address (LOTUS NOTES or any other email id).
    2. If i am able to send Deadline monitoring mail to the external email address. It will send mail only once but, How to send these deadline monitoring mails for every 3 days until the approver takes some action.
    Please help me...
    Regards,
    Gautham P

    The easy solution is to set up automatic forwarding for everyone by defining the system as NOT being your e-mail system. I don't know where this setting is (the Basis people did it), but with this setting SAP will forward every user's e-mail to the e-mail address in the user record.
    For repeated sending I think you have to use modelled deadlines. Send the deadline message using a normal mail sending step and loop after calculating the new deadline. (i.e. you need to store the deadline in the container and refer to the container elements in your deadline specification.) The deadline calculation can either be a separate step or you can do it as a secondary method in the mail sending step.

  • How to create a Sales Order using BAPI_SALESORDER_CREATEFROMDAT1 in VC

    I am new to Visual Composer.
    I read the tutorial and created a Model which fetches the Sales Orders from the R/3 using <b>BAPI_SALESORDER_GETLIST</b>, every thing worked fine.
    I am trying to create a sales order in R/3 using <b>BAPI_SALESORDER_CREATEFROMDAT1</b>, following are the steps I did:
    1)Create a model
    2)Drag a model element(iView) on to the designer
    3)Double click the iView and Drag the function <b>BAPI_SALESORDER_CREATEFROMDAT1</b> on to the iView Designer
    Now my question is, for <b>BAPI_SALESORDER_CREATEFROMDAT1</b> there are some mandatory fields as mentioned in the document.
    1. Mandatory entries:
    ORDER_HEADER_IN :
    DOC_TYPE     Sales document type
    SALES_ORG    Sales organization
    DISTR_CHAN   Distribution channel
    DIVISION     Division
    ORDER_PARTNERS..:
    PARTN_ROLE   Partner functions, SP sold-to party
    PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..:
    MATERIAL     Material number
    REQ_QTY      Order quantity in sales unit
    I can pass the values of structure <b>ORDER_HEADER_IN</b> from a input form but how should I pass mandatory values for tables <b>ORDER_PARTNERS</b> and <b>ORDER_ITEMS_IN</b>.
    Ideally I should have one form where I can send all the mandatory items in the form.
    Thank you,
    Vamsi

    Hi,
    how did you return the materials in the Table View. I tried to do it, but it only returns one material?
    Regards,
    Matthias

  • How to create a Sales Order

    Hi Guys,
    Any one tell me how to create a Sales Order. What are the Mandatory parameters we need to pass while creating. Thanks in advance.
    Thanks
    Kiran.B

    Hello kiran,
    <b>**REMEMBER: please do reward points for good answers**</b>
    1.      Create sales order
    This process step can be triggered as follows:
    The customer accepts the quotation and places an order.
      You create a sales order with reference to a quotation. For more information, see Structure link processing Quotations. The system copies the items from the quotation.
    You create a sales order. This is also possible without performing the previous steps.
           2.      Enter products
    You enter products requested by customers.
    Note
    If necessary, you can configure products again for every item of the sales order. You can find more information in the business scenario variant Structure linkQuotation and Order Management (Configure-to-Order) and under Structure linkProduct Configuration in the Sales Transaction.
           3.      Check availability, schedule order and create requirements
    The system triggers an availability check and scheduling in SAP APO for every order item in SAP CRM. The confirmed quantities and dates are confirmed by SAP APO to SAP CRM, and saved in the sales order (see Structure linkAvailability Check in the Sales Order). At the same time, a customer requirement is created in SAP APO.
    Note
    You can also execute the availability check in SAP R/3. You can find more information under Structure linkAvailability Check with SAP R/3.
           4.      Maintain and determine conditions
    The system determines the prices and the value of individual items. If necessary, you can process these. For more information, see Structure linkPricing.
           5.      Perform credit check
    SAP R/3 executes a credit check based on the results of pricing in SAP CRM. The result of the credit check is confirmed in SAP CRM, and saved as the credit status at item level. For more information, see Structure linkAutomatic Credit Check.
           6.      System replicates sales order
    After the sales order has been saved in SAP CRM, complete and without errors, it is replicated for logistics processing in SAP R/3. Order data is transferred together with confirmed scheduling lines to SAP R/3.
           7.      System receives sales order
    After replication to SAP R/3, you can change the sales order in SAP CRM and SAP R/3. You can find more information on this under Structure linkData Exchange for Sales Transactions: CRM Enterprise - SAP R/3
           8.      Send order confirmation to customer
    You can send the order confirmation either electronically, or in print to the customer. You can find more information under Structure linkSales Order Confirmation by E-Mail.
           9.      Monitor status of order
    Regards
    Ak

  • How to create a sales order step by step please..

    hi,
    how to create a sales order in detail step by step.
    Regards,
    BBR.
    Edited by: BBR on Dec 7, 2008 7:47 PM
    Edited by: BBR on Dec 7, 2008 7:53 PM

    Hi BBR
    Check the following configurations are done or not
    1)Go to VOR1 & VOR2 and assign dist channels and divisions to sales orgn.
    2) SPRO->sales and distribution->basic functions->setup partner determination , here you maintain partner determination with the partner functions for Customer account group ,standard for sold to party is 0001
    3) Create a customer with XD01
    4) In OVAZ assign the sales document types to your sales area
    5) Go to  VN01 and maintain number ranges and assign to your sales document type (Ex: OR)
    6)Go to VOV8 and select the  sales document type(Ex: OR) and there you assign the number range
    7) IN VOV4 check the item category determination is correct or not
    8)Go to OVKK and Assign pricing procedure RVAA01 to your sales area,Cupp ,Dupp.
    9) Maintain conditon records for the condition types that are there in the pricing procedure
    10) Create a Material Master Record(MMR)
    11) Now you can create the sales order with VA01
    Regards
    Srinath

  • How to create the sales order using BAPI's ....?

    Hi Guru's,
    could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically  i don't have basic knowledge on this....please provide required inputs ....:)
    thanks in advance
    Srinivas......

    Hi Guru's thanks for your inouts and your valuble time...
    please find the program logic below...
    *& Report  ZAREPAS30
    REPORT  zarepas30.
    DATA : gs_vbeln                   TYPE  vbak-vbeln,
           gs_order_header_in         TYPE  bapisdhd1,
           gs_order_header_inx        TYPE  bapisdhd1x,
           gt_order_items_in          TYPE  STANDARD TABLE OF bapisditm,
           gwa_itab1                  TYPE  bapisditm,
           gt_order_items_inx         TYPE  STANDARD TABLE OF bapisditmx,
           gwa_itab2                  TYPE  bapisditmx,
           gt_order_partners          TYPE  STANDARD TABLE OF bapiparnr,
           gwa_itab3                  TYPE  bapiparnr,
           gt_return                  TYPE  STANDARD TABLE OF bapiret2,
           gwa_itab4                  TYPE  bapiret2.
    Sales document type
      PARAMETERS: p_auart TYPE auart OBLIGATORY.
    Sales organization
      PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    Distribution channel
      PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    Division.
      PARAMETERS: p_spart TYPE spart OBLIGATORY.
    Requested Delivery Date
      PARAMETERS: p_edatu  TYPE edatu OBLIGATORY.
    Sold-to
      PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    Ship-to
      PARAMETERS: p_ship  TYPE kunnr OBLIGATORY.
    Material
      PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    Quantity.
      PARAMETERS: p_menge TYPE kwmeng  OBLIGATORY.
    Plant
      PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    Start-of-selection.
      START-OF-SELECTION.
    Header data
    Sales document type
      gs_order_header_in-doc_type = p_auart.
      gs_order_header_inx-doc_type = 'X'.
    Sales organization
      gs_order_header_in-sales_org = p_vkorg.
      gs_order_header_inx-sales_org = 'X'.
    Distribution channel
      gs_order_header_in-distr_chan  = p_vtweg.
      gs_order_header_inx-distr_chan = 'X'.
    Division
      gs_order_header_in-division = p_spart.
      gs_order_header_inx-division = 'X'.
    Reguested Delivery Date
      gs_order_header_in-req_date_h = p_edatu.
      gs_order_header_inx-req_date_h = 'X'.
      gs_order_header_inx-updateflag = 'I'.
    Partner data
    Sold to
      gwa_itab3-partn_role = 'AG'.
      gwa_itab3-partn_numb = p_sold.
      APPEND gwa_itab3 TO  gt_order_partners .
    ship to
      gwa_itab3-partn_role = 'WE'.
      gwa_itab3-partn_numb = p_ship.
      APPEND gwa_itab3 TO  gt_order_partners .
    ITEM DATA
      gwa_itab2-updateflag = 'I'.
    Line item number.
      gwa_itab1-itm_number = '000010'.
      gwa_itab2-itm_number = 'X'.
    Material
      gwa_itab1-material = p_matnr.
      gwa_itab2-material = 'X'.
    Plant
      gwa_itab1-plant    = p_plant.
      gwa_itab2-plant   = 'X'.
    Quantity
      gwa_itab1-target_qty = p_menge.
      gwa_itab2-target_qty = 'X'.
      APPEND gwa_itab1 TO gt_order_items_in.
      APPEND gwa_itab2 TO gt_order_items_inx.
    Line item number.
      gwa_itab1-itm_number = '000020'.
      gwa_itab2-itm_number = 'X'.
    Material
      gwa_itab1-material = p_matnr.
      gwa_itab2-material = 'X'.
    Plant
      gwa_itab1-plant    = p_plant.
      gwa_itab2-plant   = 'X'.
    Quantity
      gwa_itab1-target_qty = p_menge.
      gwa_itab2-target_qty = 'X'.
      APPEND gwa_itab1 TO gt_order_items_in.
      APPEND gwa_itab2 TO gt_order_items_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
        order_header_in               = gs_order_header_in
        ORDER_HEADER_INX              = gs_order_header_inx
      IMPORTING
        SALESDOCUMENT                 = gs_vbeln
      tables
        RETURN                        = gt_return
        ORDER_ITEMS_IN                = gt_order_items_in
        ORDER_ITEMS_INX               = gt_order_items_inx
        order_partners                = gt_order_partners.
    Check the return table.
      LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error occured while creating sales order '.
      ELSE.
    Commit the work.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        WRITE: / 'Document ', gs_vbeln, ' created'.
      ENDIF.

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

Maybe you are looking for

  • How do I use landscape in numbers?

    I just spent 20 dollars to get these apps for school. But when I opened the app it remained in portrait. Which is ver uncomfortable to use at all. Is there a setting I'm supposed to hunt down and tap? Please let me know, and I hope I did not waste my

  • Charts by Sales Area

    Dear Gurus, I have a problem in visual composer. I have created a model that has a selection list (sales area) and 2 charts. Initially the charts shows the total sales per month. But my requirement is to select (double click) different sales area fro

  • How to make a movie clip button into a url link?

    Hello, I'm kinda new to using Flash and am trying to edit a template for a friend of mine, the problem is I'm trying to add a url link to the buttons. I tried adding this action to the button on(release){ getURL(http://www.yoururl.com.); I saved as s

  • Using my Sony HDR-PJ50V

    In October of this year,I recorded 16, 1.5 hour lectures at a remote location using the Sony HDR-PJ50V camcorder and transfering to an external hard drive every night, for back-up. Using Sony's HQ HD 60i setting, I exported each one to QT and burned

  • Can two iphones sycn in one itune

    can two iphones sycn in one itune?