How to Change the Existing Sales Order Transaction

Hi all,
I am trying to change some of the fields in Existing Sales Order Transaction.
Fields which i am trying to change are Ext. Reference number and Net Value.
I am using CRM_ORDER_MAINTAIN to do so but its not working. I dont know if some BADI can solve my purpose.
If anyone of you have done something like this please share with me and suggest me the solution for that.
Thanks in Advance.
Regards,
Manoj Tiwari

That you should be able to do in ORDER_SAVE badi.
You will be able to find lots of discussions on usage of this badi here in this forum.
You need to call ORDER_READ, then call ORDER_MAINTAIN to change the values according to your requirement.
Regards,
Kaushal

Similar Messages

  • Unable to change the existing sales order

    Hi
    I need to change the existing sales order document which was already created and replicated into R/3.The following error has been giving
    "Document is being distributed - Changes are not possible".
    Can anybody help me how to change the document.
    early response would be rewarded,.
    Regards
    Vikram

    Hi Vikram,
    The problem is caused by a program error.
    Please follow the SAP Note for complete information.
    SAP Note : 718065
    Regards,
    Johnny.
    Reward with points if it helps.

  • Change of existing sales order (WCEM 3.0 SP1)

    Hi all,
    does anyone of developed the feature to change a existing sales order?
    Any hint to do it the best way?
    Thanks in advance,
    Meikel

    Hi Meikel,
    personally i haven't modified the sales order, but i did something in relationship to service orders. Both types are transaction documents in kind of the same but both using a different transaction type-id.
    Within WCEM the GenIL Layer has been integrated, which kind of gives you the chance to create, read & modify those transaction documents.  The java interfaces which SAP has build is calling behind the scene the corresponding ABAP RFC function - should be the same as the WebUI does. This function is used for the e-service integration and should provide you what you need.
    Just another hint: Not sure if my change request has been applied, but take a closer look into the toString() output of the GenIL (container) objects. When i was initially using it, the toString returned the string representation from the current object up to the root (excluding the child elements). Unfortunately this made it tought to understand the current status of the document. If my change request was applied, then you should get the output of current objects including all child elements recursively - if not, then just overwrite the toString() and generate a XML like output. That will safe you a lots of time to understand what is actually happening and within a short timeframe you  can implement your logic.
    Cheers,
    Andreas

  • Mass change - Move existing sales orders from Sales org A to Sales org B

    Good morning dear network,
    am seeking for your guidance on one specific matter.
    We are in the process of making changes to our billing / organisational structure (new sales orgs)
    One of the challenges is that we need to move existing open sales orders from one sales org to another (new) sales org.
    If all master records exist in the new sales org, is there a (technical) way of moving the existing sales orders from the current sales org into the new sales org, without having to replace each order individually ?
    would welcome any suggestions.
    Many thanks

    I would recommend to close the existing open sale orders by assigning Reason for Rejection and create new sale orders in the newly created sales organisation.
    This is due to the fact that you need to ensure each and field in the existing sale orders to match with the newly created sales organisation and it is bit time consuming.
    Still if you prefer to what you had indicated, LSMW is the better option
    thanks
    G. Lakshmipathi

  • How to Change Division On sales order

    Hii Guy,
    How to change Division on sales order after been save ?
    my user wrongly enter division code while creating sales order. the SO already have PGI and not yet been invoice.

    Best Practice is to go PGR and then cancel Delivery.Then Go to VA02 and change the Division.
    You can customize the Division at Sales Docuement Type by De-Selecting the Check Box of Item Division.It means the division will be copied from the Header Level of Customer Master Data.
    Best Regards,
    Ankur

  • HT2204 how to change the existing ID form App Store

    how to change the existing ID form App Store

    You can tap on the id in Settings > iTunes & App Stores and log out of the account and you can then log in with a different account. But any content that was downloaded via the currently logged in account will remain tied to that account (so only that account can download updates to its apps), and if you turn on automatic downloads for an account, use iTunes match or re-download past purchases then you risk tying the device to that account for 90 days : http://support.apple.com/kb/HT4627

  • How to  find the Open sale orders till date for  given plant and material ?

    Hi experts,
                     I have a requirement to calculate the open sale orders for a given plant and material. I have tried in VA05 wherein i can get only for the material and sales area combination. From the document nos obtained from VA05 i can then find the plant. But my question is how do i get the output of VA05 into my progra. (can i use submit for a module pool report ).
    Also if ther is some other standard table or Function module to find the open sale orders till a given date ,it will be even more helpful....in which case i can drop the VA05 route.
    Kindly help
    Thanks in advance
    Ashwin

    Hi Ashwin,
        You can use SAP Tables VBAK and VBUP to get to know if the document is complete or not.
       VBUK-GBSTK is the field that will give you the status of the Sales Order .
      VBUK is used at header level , whereas VBUP is used for Item level.
      So in your case what I would do is :
      Get the Sales Orders that satisy the plant and material criteria from VBAP table , take this Sales Document numbers and go to VBUK or VBUP table to get the Sales Order Status. 
       If I need to find the open quantity as well I will link to VBFA table based on the document number.
      Reward if helpful.
    Thanks,
    Imran

  • How to change the existing sap logon ticket

    HI
    I did the System copy from my production server to Quality server.
    Now everthing is working except Single Sign On.  This is due to SAPlogon ticket.
    the SAPlogon ticket show the PRD sid. I am not able to change the existing sid in ticket.
    Tell me how to chage the old saplogon ticket with new one.
    Workaround i did in my server.
    generated the new certificate for Quality server  and try to import in R/3 000 client.  but not successful.

    Hello Lee,
    You dont have to import the certificate from R/3 into portal
    we have to generate the certificate in portal and then import in R/3
    To generate the portal certificate in quality Portal system and uploading in R/3,please find the method:
    Log on to the Visual Admin of Portal with administrator id and password. Go to the following node: Server 0 1_34158->services and then Key Storage
    In Key Storage, go to TicketKeyStorage
    Under Entry, choose Create.
    The Key and Certificate Generation dialog appears
    Enter the Subject Properties in the corresponding fields
    CN=<Common Name>, OU=<Organization Unit Name>, O=<Organization Name>, L=< Locality Name >, ST=<State/Province>, C=DE. give SID of portal in CN
    Give the Entry name as SAPLogonTicketKeypair.
    Select Algorithm as DSA,also click on store certificate and then generate
    You will see along with SAPLogonTicketKeypair, SAPLogonTicketKeypair-cert will also get generated.
    Now we will have to import this SAPLogonTicketKeypair-cert in the ABAP systems
    First we will have to download the certificate from the portal.
    Now logon to the SAP Netweaver Portal with user administrator
    Go to System Administration->System Configuration and then Keystore Administration.
    In the Content tab you will find the list of certificates
    We have to download SAPLogonTicketKeypair-cert .Click on Download verify.der file
    To your desktop
    Now we have to import the certificate in ABAP system.
    Log on to the ABAP system 000 client and use T-Code STRUSTSSO2
    Under Certificate, click on Import certificate
    Give the path of verify.der file. The file format should be Binary
    And upload it.
    Now you can see the certificate has been uploaded. Check for the validity
    Now click on Add to certificate to add this.
    Now click on Add to ACL.
    Enter System ID as the portal SID(i.e is SPQ) and client as 000 and click on Ok
    Then save your entries
    Hope this makes it clear
    Rohit

  • MRP creating additional purchase requisitions for the existing sales order

    Hi,
    We have scenario where we switch materials from POD material to ARP material. POD material is just like make to procurement which creates purchase requisition and purchase order upon saving the sales order. ARP (Auto replenishment) material creates purchase requisition based on sales order and re-order point while running MRP.
    When the material is POD title, it created purchase requisition and purchase order (example: 4500000110) while saving the sales order (example: 1000000010) for the quantity 10. After some time this material is switched to ARP and it has open sales order (1000000010) and purchase order (4500000110).
    We have special MRP run for ARP materials based on MRP type, which creates purchase requisition.. What is happening is when we run MRP; it is creating new purchase requisition for the old sales order (1000000010) for the quantity 10. But old sales order (1000000010) is already having purchase order (4500000110) to fulfill. So we donu2019t want to create new purchase requisition for the old sales orders. It should create purchase requisition only for new sales orders.
    Please advise
    Thanks in advance
    Srinivas

    Mangesh,
    If the components are Inhouse production then you can think of using collective orders by assigning special procurement key 52. If raw material exists then your requirement cannot be met..as i think your scenario is of assembly processing. The idea of assembly processing is that component materials will always be available and only assembly will be done based on Sale Order.
    Regards,
    Prasobh

  • How to find the obsolete sales order

    Hi Gurus,
    how can we find out the obsolete sales order in the system, in our situation these orders consuming the forecast now and causing problems..how to find these and delete..please share your ideas

    Hi
    Please go to Se38 and execute /SAPAPO/SDORDER_DEL report. You can execute the report for respective location by using different flags. I hope this will provide you the required information.
    Thanks and Information.
    Amol

  • How to retrieve the ARCHIVED Sales order data

    Hi All,
    When issuing the output for the delivery, it is giving an error saying 'Sales Order XXXX does not exist' due to which the prices in the output were displayed as '0'. Reason for this can be that 'the order might have been archived'.
    My requirement is,
    1. If Sales Order doesnu2019t exist in data base then need to check if Sales order exists in archive data base.
    2. If  yes, take needed data from archive data base tables to calculate price. The logic of price calculation should be the same as for not archived Sales Orders.
    Can anyone help me on this..?
    Please tell me how to check whether the Sales order exists in the Archived database. Please share the table names(sample logic if possible) sothat I can use them in the report logic.
    Please tell me how to pull the data from the archive database tables to calculate the price.
    Thank you in advance.
    Thanks & Regards,
    Paddu.
    Edited by: Paddu K on Feb 23, 2009 3:42 PM

    *&      Form  get_archive_data
    *       Fetch Archive Data
    FORM get_archive_data .
      CLEAR:    g_read_handle, g_commit_cnt,
                g_read_cnt, g_reload_cnt,it_rel_tab,it_bseg_a,it_bkpf_a,
                it_bset_a, gt_result.
      REFRESH: it_rel_tab[],it_bseg_a[],it_bkpf_a[],
               it_bset_a[], gt_result[].
    *Populating selection screen fields to field-symbols
      PERFORM build_fs_select_options.
    *Call FM as_api_read  FI Data
      CALL FUNCTION 'AS_API_READ'
        EXPORTING
          i_fieldcat                      = 'SAP_FI_DOC_002'
          i_selections                    = ft_selections[]
    *   I_OBLIGATORY_FIELDS             =
    *   I_MAXROWS                       =
       IMPORTING
         e_result                        = gt_result[]
    EXCEPTIONS
       parameters_invalid              = 1
       no_infostruc_found              = 2
       field_missing_in_fieldcat       = 3
       OTHERS                          = 4
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF NOT gt_result[] IS INITIAL.
    *Sorting by KEY and Offset
        SORT gt_result BY archivekey archiveofs.
    *To delete duplicates
        DELETE ADJACENT DUPLICATES FROM gt_result COMPARING archivekey
        archiveofs.
    *looping the internal table
        LOOP AT gt_result.
    *Get read handle for  object
          CALL FUNCTION 'ARCHIVE_READ_OBJECT'
            EXPORTING
              object         = 'FI_DOCUMNT'
              archivkey      = gt_result-archivekey
              offset         = gt_result-archiveofs
            IMPORTING
              archive_handle = g_read_handle
            EXCEPTIONS
              OTHERS         = 1.
          IF NOT sy-subrc IS INITIAL.
            MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            EXIT.
          ENDIF.
          IF sy-subrc = 0.
    *Get Acoounting Document details
            PERFORM object_read_opened
                      TABLES it_rel_tab
                             it_bseg_a
                             it_bkpf_a
    *                         it_bset_a
    *                         it_bsik_a
    *                         it_bsak_a
                             it_bsid_a
                             it_bsad_a
    *                         it_bsec_a
                      USING g_read_handle
                            l_archobj
                            g_commit_cnt
                            g_read_cnt
                            g_reload_cnt
          ENDIF.
    *close the file.
          CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
            EXPORTING
              archive_handle          = g_read_handle
            EXCEPTIONS
              internal_error          = 1
              wrong_access_to_archive = 2
              OTHERS                  = 3.
          IF sy-subrc <> 0.
            MESSAGE i004." 'Unable to close archive session'.
            EXIT.
          ENDIF.
        ENDLOOP.
      ELSE.
        MESSAGE i000 WITH 'No data found for Archived data'(095).
        EXIT.
      ENDIF.
    *Start of Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
      IF NOT it_bkpf_a[] IS INITIAL.
        SORT it_bkpf_a BY belnr.
        DELETE ADJACENT DUPLICATES FROM it_bkpf_a COMPARING belnr.
        DELETE it_bkpf_a WHERE budat GT p_budat. "#ECDK902206
      ENDIF.
    *Start of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
      IF it_bkpf_a[] IS INITIAL.
        MESSAGE i000 WITH 'No data found for Archived data'(095).
      ENDIF.
    *End of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
      IF NOT it_bseg_a[] IS INITIAL.
        SORT it_bseg_a BY belnr gjahr buzei.
        DELETE ADJACENT DUPLICATES FROM it_bseg_a COMPARING
                                              belnr gjahr buzei.
      ENDIF.
    *End of Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
    ENDFORM.                    " get_archive_data
    *&      Form  build_fs_select_options
    FORM build_fs_select_options .
      REFRESH:  ft_selections.
    *Comapny code
      APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
      <fw_selections>-fieldname  = 'BUKRS'.
      APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
      MOVE p_bukrs  TO <lw_selopt>-low.
      MOVE  'I' TO <lw_selopt>-sign.
      MOVE  'EQ' TO <lw_selopt>-option.
    *Customer
      APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
      <fw_selections>-fieldname  = 'KUNNR'.
      LOOP AT s_kunnr.
        APPEND INITIAL LINE TO <fw_selections>-selopt_t
               ASSIGNING <lw_selopt>.
        MOVE-CORRESPONDING  s_kunnr TO <lw_selopt>.
      ENDLOOP.
    *Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
    **Customer Group
    *  append initial line to ft_selections assigning <fw_selections>.
    *  <fw_selections>-fieldname  = 'KTOKD'.
    *  loop at s_ktokd.
    *    append initial line to <fw_selections>-selopt_t
    *           assigning <lw_selopt>.
    *    move-corresponding  s_ktokd to <lw_selopt>.
    *  endloop.
    *End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
    *Profit Center
      APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
      <fw_selections>-fieldname  = 'PRCTR'.
      LOOP AT s_prctr.
        APPEND INITIAL LINE TO <fw_selections>-selopt_t
               ASSIGNING <lw_selopt>.
        MOVE-CORRESPONDING  s_prctr TO <lw_selopt>.
      ENDLOOP.
    *Commented #ECDK902210
    **Key Date
    *  append initial line to ft_selections assigning <fw_selections>.
    *  <fw_selections>-fieldname  = 'BUDAT'.
    *  append initial line to <fw_selections>-selopt_t assigning <lw_selopt>
    *  move p_budat  to <lw_selopt>-low.
    *  move  'I' to <lw_selopt>-sign.
    *  move  'EQ' to <lw_selopt>-option.
    *Aging Period1
      APPEND INITIAL LINE TO ft_selections ASSIGNING <fw_selections>.
      <fw_selections>-fieldname  = 'ANZTA'.
      APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
      MOVE p_ag1  TO <lw_selopt>-low.
      MOVE  'I' TO <lw_selopt>-sign.
      MOVE  'EQ' TO <lw_selopt>-option.
    *Aging Period2
    *Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
    *  append initial line to ft_selections assigning <fw_selections>.
    *  <fw_selections>-fieldname  = 'ANZTA'.
    *End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
      APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
      MOVE p_ag2  TO <lw_selopt>-low.
      MOVE  'I' TO <lw_selopt>-sign.
      MOVE  'EQ' TO <lw_selopt>-option.
    *Aging Period3
    *Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
    *  append initial line to ft_selections assigning <fw_selections>.
    *  <fw_selections>-fieldname  = 'ANZTA'.
    *End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
      APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
      MOVE p_ag3  TO <lw_selopt>-low.
      MOVE  'I' TO <lw_selopt>-sign.
      MOVE  'EQ' TO <lw_selopt>-option.
    *Aging Period4
    *Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
    *  append initial line to ft_selections assigning <fw_selections>.
    *  <fw_selections>-fieldname  = 'ANZTA'.
    *End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
      APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
      MOVE p_ag4  TO <lw_selopt>-low.
      MOVE  'I' TO <lw_selopt>-sign.
      MOVE  'EQ' TO <lw_selopt>-option.
    *Aging Period5
    *Start of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
    *  append initial line to ft_selections assigning <fw_selections>.
    *  <fw_selections>-fieldname = 'ANZTA'.
    *End of changes by GTHATIKONDA on 16/10/2008 #ECDK902192
      APPEND INITIAL LINE TO <fw_selections>-selopt_t ASSIGNING <lw_selopt>.
      MOVE p_ag5  TO <lw_selopt>-low.
      MOVE  'I' TO <lw_selopt>-sign.
      MOVE  'EQ' TO <lw_selopt>-option.
    ENDFORM.                    " build_fs_select_options
    *&      Form  object_read_opened
    *       To Fetch Arichive Data
    FORM object_read_opened TABLES   it_rel_tab
                                      it_bseg_a
                                      it_bkpf_a
    *                                  it_bset_a
    *                                  it_bsik_a
    *                                  it_bsak_a
                                      it_bsid_a
                                      it_bsad_a
    *                                 it_bsec_a
                             USING value(g_read_handle) LIKE sy-tabix
                                   value(l_archobj) LIKE arch_def-object
                             value(g_commit_cnt) LIKE arch_usr-arch_comit
                               g_read_cnt TYPE i
                               g_reload_cnt TYPE i.
      DATA: BEGIN OF table_wa ,
               table LIKE arch_stat-tabname,
            END  OF table_wa.
      DATA: lit_data(2048) TYPE c OCCURS 1 WITH HEADER LINE.
      DATA:  l_structure LIKE arch_stat-tabname,
             l_lin TYPE i.
      CLEAR: it_table_org1,lit_struc,it_table_org2,table_wa,it_rel_tab.
      REFRESH: it_table_org1[],lit_struc[],it_table_org2[],it_rel_tab[].
      CLEAR: g_duprec,g_read_cnt,g_reload_cnt,g_object_cnt.
    *Read  data from the infostructure
      DO.
        ADD 1 TO g_object_cnt.
        CLEAR l_structure.
        CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD'
          EXPORTING
            archive_handle                = g_read_handle
         IMPORTING
           record                        = lit_data
    *   RECORD_CURSOR                 =
    *   RECORD_FLAGS                  =
           record_structure              = l_structure
    *   RECORD_LENGTH                 =
    *   RECORD_REF                    =
         EXCEPTIONS
           end_of_object                 = 1
           internal_error                = 2
           wrong_access_to_archive       = 3
           OTHERS                        = 4
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          EXIT.
        ENDIF.
        IF NOT l_structure IS INITIAL.
          table_wa-table = l_structure.
          APPEND table_wa TO it_rel_tab.
        ENDIF.
        APPEND lit_data.
        CLEAR l_lin.
        FIELD-SYMBOLS: <fs_struc> TYPE c.
        CASE l_structure.
    *BKPF data
          WHEN 'BKPF'.
            ASSIGN it_bkpf_a TO <fs_struc> CASTING.
            <fs_struc> = lit_data.
            APPEND it_bkpf_a.
    *BSID data
          WHEN  'BSID'.
            ASSIGN it_bsid_a TO <fs_struc> CASTING.
            <fs_struc> = lit_data.
            APPEND it_bsid_a.
    *BSAD data
          WHEN  'BSAD'.
            ASSIGN it_bsad_a TO <fs_struc> CASTING.
            <fs_struc> = lit_data.
            APPEND it_bsad_a.
    *BSEG data
          WHEN 'BSEG'.
            ASSIGN it_bseg_a TO <fs_struc> CASTING.
            <fs_struc> = lit_data.
            APPEND it_bseg_a.
        ENDCASE.
        REFRESH lit_data.
        CLEAR g_object_cnt.
      ENDDO.
    ENDFORM.                    " object_read_opened
    *&      Form  get_bsid_bsad_archive_data
    *If Exclude Spl. GL Trnasaction is initial get BSID BSAD Archive data  *
    FORM get_bsid_bsad_archive_data .
    *Work Area
      DATA: wa_bsid TYPE type_bsid.
    *Reading BSAD Archive internal table
    *      loop at it_bsad_a   where bukrs eq p_bukrs
    *Start of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
    *Commented by GTHATIKONDA on 10/17/2008 #ECDK902204
      LOOP AT it_bkpf_a  WHERE  bukrs = p_bukrs AND
                                budat LE p_budat. "#ECDK902206
    *End of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
        LOOP AT it_bseg_a   WHERE bukrs EQ p_bukrs AND
                                  belnr EQ it_bkpf_a-belnr AND
                                  gjahr EQ it_bkpf_a-gjahr AND
                                  augdt GT p_budat AND
    *                            koart eq 'D'     and
                                  kunnr IN s_kunnr AND
                                  prctr IN s_prctr.
    *Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
    *    loop at it_bkpf_a  where budat le p_budat."#ECDK902206
    *Move corresponding fiels
          MOVE-CORRESPONDING it_bseg_a TO wa_bsid.
          wa_bsid-blart = it_bkpf_a-blart.
          wa_bsid-budat = it_bkpf_a-budat.
          wa_bsid-bldat = it_bkpf_a-bldat.
          APPEND wa_bsid TO i_bsad.
          CLEAR wa_bsid.
        ENDLOOP.
      ENDLOOP.
      IF NOT i_bsad[] IS INITIAL.
        APPEND LINES OF i_bsad TO i_bsid.
      ENDIF.
    *Start of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
      IF NOT i_bsid[] IS INITIAL.
        SORT i_bsid BY belnr.
    *Commenting this logic by GTATIKONDA on 10/31/2008 #ECDK902245
    *  delete adjacent duplicates from i_bsid comparing belnr.
      ENDIF.
    *End of Changes by GTHATIKONDA on 10/17/2008 #ECDK902206
    ENDFORM.                    " get_bsid_bsad_archive_data
    *Reading BSAD Archive internal table
    *      loop at it_bsad_a  where bukrs eq p_bukrs
    *Start of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
    *Commented by GTHATIKONDA on 10/17/2008 #ECDK902204
      LOOP AT it_bkpf_a  WHERE bukrs = p_bukrs AND  "#ECDK902206
                               budat LE p_budat.
    *End of changes by GTHATIKONDA on 10/14/2008 #ECDK902180
        LOOP AT it_bseg_a  WHERE bukrs EQ p_bukrs AND
                                 belnr EQ it_bkpf_a-belnr AND
                                 gjahr EQ it_bkpf_a-gjahr AND
                                 kunnr IN s_kunnr AND
                                 umskz EQ space AND
                                 augdt GT p_budat AND
                                 prctr IN s_prctr.
    *Changes by GTHATIKONDA on 10/17/2008 #ECDK902204
    *    loop at it_bkpf_a  where budat le p_budat. "#ECDK902206
    *Move corresponding fiels
          MOVE-CORRESPONDING it_bseg_a TO wa_bsid.
          wa_bsid-blart = it_bkpf_a-blart.
          wa_bsid-budat = it_bkpf_a-budat.
          wa_bsid-bldat = it_bkpf_a-bldat.
          APPEND wa_bsid TO i_bsad.
          CLEAR wa_bsid.
        ENDLOOP.
      ENDLOOP.
      IF NOT i_bsad[] IS INITIAL.
        APPEND LINES OF i_bsad TO i_bsid.
      ENDIF.

  • How to change the Dr Sales Dealer to Dr Accrued Sales?

    Hi All,
    For normal billing/invoice, the double entry is as below :
    Dr  Sales Dealer
    Cr  Sales
    Cr  Exise Duty Payable
    Dr  Dealers Margin
    In order to implement the proforma invoice, we have decided to create debit memo which is similar to Excise Inv with below double entry during VPA (Vehicle Payment Advice) action :
    To be
    Dr  Accrued Sales
    Cr  Sales
    Cr  Exise Duty Payable
    Dr  Dealers Margin
    My question is, how and where to assign the G/L (accured sales) during creation of new order? Is it related with the config like pricing procedure or something else? The Proforma invoice should be Dr Accrued Sales instead of Dr  Sales Dealer. Really need you help..
    Thanks in advance

    That you should be able to do in ORDER_SAVE badi.
    You will be able to find lots of discussions on usage of this badi here in this forum.
    You need to call ORDER_READ, then call ORDER_MAINTAIN to change the values according to your requirement.
    Regards,
    Kaushal

  • How to trace the DO(Sales Order)

    Dear Forum,
    The process is DO(Sales Order)--->Delivery Order(OBD).
    I have deleted the Delivery.
    How to get the Sales Order number aginst this Delivey Order.
    Thanks in advance !!!!!

    Use change pointers
    http://help.sap.com/saphelp_nw04s/helpdata/en/12/83e03c19758e71e10000000a114084/frameset.htm
    Activate
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/9d563cf19bcb43e10000000a11405a/frameset.htm
    Regards,
    Prateek

  • Change to existing sales order - There is no incompletion data for sales document

    we have just started TM in our sandbox system. When we change an existing order we get the following message:
    There is no incompletion data for sales document and the order change does not get sent to tm.  Creating a new order and changing all works fine. Is there something to be done with existing orders?

    Hello John,
    Have you tried to use the report TMTRQINITIALSENDING?
    Rgs, Marcelo Lauria

  • How to change plant in sales order???

    I have made a sales order which created a purchase requisition. A purchase order has been made with reference to the purchase requisition.
    No goods reciept has been made yet.
    I want to change the plant and the storage location in the Purchase order, so to be able to recieve the goods in a different plant. I tried doing this from ME22n  but I get the message that the sales order has been made with a different plant. If I try to change the plant in the sales order I can not. the field is not possible to be changed.
    What should I do?
    Thank you in advance

    Dear Theodorous,
    1)Please check the Material has been extended to the second plant.
    2) Assign the second Plant to Sales Org and Dist Channel
    If you have any concern revert back the same
    Regards
    Amjath

Maybe you are looking for

  • I am trying to make a call to a dll to have labview return a buffer filled with data stored in an array. The proble

    m that I am having is that to do this I need to fill two different structures, one containing a pointer to a double, which I don't think I can do without perhaps a wrapper function. The biggest problem is that I don't know how to even go about doing

  • J1INQEFILE AFTER VALIDATING DATA SHOWING ERROR

    Dear All For J1INQEFILE validation we need to maintain Master data as per the details given in the note no.1389028 as follows: ==================================================================================================== Master Data: The maste

  • Disk Utility

    Hello.  I'm hoping someone can answer a quick question for me regarding Disk Utility in Snow Leopard and creating .dmg files. I have created a few setting a picture file in the "view options" area to appears at the top of the window.  Everything seem

  • RE: Adding Custom Background

    Hello Everyone. I have Imported the .psd file into Encore. Later, I opened the Backgrounds Inside the Library, and I Dragged the .psd file Into the Backgrounds. But the .psd file dose not show Inside the Backgrounds, But It dose show Inside the Image

  • Producer not found error message

    We getting a JMSException "Producer not found" when we attempt to send a message to a JMS distributed queue.           We configuration involves setting up a cluster wide distributed queue with JMS Servers on every node in our cluster for failover an