Change sales orders from report

Hi there,
My report shows grid_display,
column1 is chechbox,
column2 is Sales Order number,
column3 is Sales Order description. here user has to check required sales Orders and press pushbutton in appl tool bar, all these Sales Orders(i.e. checked by user) have to be opend in changemode automatically one after another, where user can change accordingly. can anybody pls sugest logic for this.
thanks in advance.
Zakir.

used bapi .
pass those data to bapi.
** Program ID :
** Program Desc :              
** Process Overview :          SD
** Created By :                P.KARTHIKEYAN
REPORT  ZBAPI_SALESORDER_CHANGE LINE-SIZE 132 MESSAGE-ID ZMMBAPI .
       Internal table definition                                     *
*****<<<< BAPI Sales Order>>>>>>>>>>>>>>>>>>>>>>>
DATA: GT_SALESDOCUMENT LIKE  BAPIVBELN-VBELN,
******<<<<Communication Fields: SD Order Header>>>
      GT_ORDER_HEADER_IN  LIKE BAPISDH1,
******<<<<<Checkbox List: SD Order Header>>>>>>>>>
      GT_ORDER_HEADER_INX LIKE BAPISDH1X,
*****<<<Return Parameter>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
     GT_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
*******<<<<<<<Communication Fields: Sales and Distribution Document Item>>
     GT_ORDER_ITEM_IN LIKE BAPISDITM OCCURS 0 WITH HEADER LINE,
*******<<<<<<<Communication Fields: Sales and Distribution Document Item>>
     GT_ORDER_ITEM_INX LIKE BAPISDITMX OCCURS 0 WITH HEADER LINE,
*******<<<<<<<<Communication Fields for Maintaining Conditions in the Order
     GT_CONDITIONS_IN LIKE BAPICOND OCCURS 0 WITH HEADER LINE,
*******<<<<<<<<Communication Fields for Maintaining Conditions in the Order
     GT_CONDITIONS_INX LIKE BAPICONDX OCCURS 0 WITH HEADER LINE.
   FLAT FLIE Internal table definition                                     *
DATA: BEGIN OF GT_FT_SALES OCCURS 0,
      SALESDOCUMENT(10), "SALESDOCUMENT
      SALES_ORG(4) , "Sales Organization
      DISTR_CHAN(2), "Sales Organization
      DIVISION(2) ,  " DIVISION
      PURCH_NO_C(35)  , "Customer purchase order number
      SALES_DIST(6) , "Sales district
      INCOTERMS1(3)  ,                                      "INCOTERMS1
      PMNTTRMS(4)  , "Terms of payment key
      ITM_NUMBER(6) ,   "Sales Document Item
      PO_ITM_NO(6)  ,   "Item Number of the Underlying Purchase Order
      MATERIAL(18), "Material Number
END OF GT_FT_SALES,
MSG(240) TYPE  C,  " Return Message
E_REC(8) TYPE C,    " Error Records Counter
REC_NO(8) TYPE C, " Records Number Indicator
S_REC(8) TYPE C,   " Successful Records Counter
T_REC(8) TYPE C,   " Total Records Counter
ERR_ORDER(10) TYPE C.  " Order Number Indicator
selection block for EXCEL UPLOAD FILE>>>>>>>>>>>>>>>>>>>>>>>>
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.
PARAMETERS FILE TYPE  IBIPPARMS-PATH OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
*<<<<AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE .>>>>>>>>>>>>
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE .
  CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME  = SYST-CPROG
      DYNPRO_NUMBER = SYST-DYNNR
    IMPORTING
      FILE_NAME     = FILE.
**<<<<<<<<<<<<<<<<<START-OF-SELECTION.>>>>>>>>>>>>>>>>>>>>>>>>>>>
START-OF-SELECTION.
  CALL FUNCTION 'WS_UPLOAD'                                 "#EC *
    EXPORTING
      FILENAME                = FILE
      FILETYPE                = 'DAT'
    TABLES
      DATA_TAB                =  GT_FT_SALES
    EXCEPTIONS
      CONVERSION_ERROR        = 1
      FILE_OPEN_ERROR         = 2
      FILE_READ_ERROR         = 3
      INVALID_TYPE            = 4
      NO_BATCH                = 5
      UNKNOWN_ERROR           = 6
      INVALID_TABLE_WIDTH     = 7
      GUI_REFUSE_FILETRANSFER = 8
      CUSTOMER_ERROR          = 9
      NO_AUTHORITY            = 10
      OTHERS                  = 11.
  IF  SY-SUBRC <> 0  .
    MESSAGE E000.
  ENDIF.
  SKIP 3.
  FORMAT COLOR COL_HEADING INVERSE ON.
  WRITE 40 TEXT-001.
  FORMAT COLOR COL_HEADING INVERSE OFF.
  SKIP 1.
  FORMAT COLOR COL_NEGATIVE INVERSE ON.
  WRITE :/ TEXT-002, 13 SY-MANDT , 104 TEXT-003, 111 SY-UNAME,
            / TEXT-004, 13 SY-DATUM , 104 TEXT-005, 111 SY-UZEIT.
  FORMAT COLOR COL_NEGATIVE INVERSE OFF.
  SKIP 3.
  LOOP AT GT_FT_SALES.
    PERFORM UPLOAD_FILE.
  ENDLOOP.
  T_REC = E_REC + S_REC.
  SKIP 3.
  FORMAT COLOR COL_TOTAL INVERSE ON.
  WRITE: /38 TEXT-007, T_REC.
  FORMAT COLOR COL_TOTAL INVERSE OFF.
  FORMAT COLOR COL_NEGATIVE INVERSE ON.
  WRITE: /38 TEXT-008, E_REC.
  FORMAT COLOR COL_NEGATIVE INVERSE OFF.
  FORMAT COLOR COL_TOTAL INVERSE ON.
  WRITE: /38 TEXT-009, S_REC.
  FORMAT COLOR COL_TOTAL INVERSE OFF.
*&      Form  UPLOAD_FILE
      text
-->  p1        text
<--  p2        text
FORM UPLOAD_FILE .
********<<<< BAPI Sales Order>>>>>>>>>>>>>>>>>>>>>>>
  GT_SALESDOCUMENT = GT_FT_SALES-SALESDOCUMENT . " '0000000233' "Order Number
******<<<<Communication Fields: SD Order Header>>>
  GT_ORDER_HEADER_IN-SALES_ORG = GT_FT_SALES-SALES_ORG .   "'0001' "Sales Organization
  GT_ORDER_HEADER_IN-DISTR_CHAN = GT_FT_SALES-DISTR_CHAN . "Distribution Channel
  GT_ORDER_HEADER_IN-DIVISION = GT_FT_SALES-DIVISION .    "Division
  GT_ORDER_HEADER_IN-PURCH_NO_C = GT_FT_SALES-PURCH_NO_C . "Customer purchase order number
  GT_ORDER_HEADER_IN-SALES_DIST = GT_FT_SALES-SALES_DIST . " Sales district
  GT_ORDER_HEADER_IN-INCOTERMS1 = GT_FT_SALES-INCOTERMS1 . "Incoterms (part 1)
  GT_ORDER_HEADER_IN-PMNTTRMS = GT_FT_SALES-PMNTTRMS .      "Terms of payment key
******<<<<Communication Fields: SD Order Header FLAG>>>
  GT_ORDER_HEADER_INX-UPDATEFLAG = 'U'.
  GT_ORDER_HEADER_INX-SALES_ORG = 'X'. "Sales Organization
  GT_ORDER_HEADER_INX-DISTR_CHAN = 'X'. "Distribution Channel
  GT_ORDER_HEADER_INX-DIVISION = 'X'. "Division
  GT_ORDER_HEADER_INX-PURCH_NO_C = 'X' ."Customer purchase order number
  GT_ORDER_HEADER_INX-SALES_DIST = 'X'. " Sales district
  GT_ORDER_HEADER_INX-INCOTERMS1 = 'X'."Incoterms (part 1)
  GT_ORDER_HEADER_INX-PMNTTRMS = 'X'. "Terms of payment key
*******<<<<<<<Communication Fields: Sales and Distribution Document Item>>
  GT_ORDER_ITEM_IN-ITM_NUMBER = GT_FT_SALES-ITM_NUMBER . "'000010' "Sales Document Item
  GT_ORDER_ITEM_IN-PO_ITM_NO   = GT_FT_SALES-PO_ITM_NO .  "'PO-129' "Item Number of the Underlying Purchase Order
  GT_ORDER_ITEM_IN-MATERIAL  = GT_FT_SALES-MATERIAL . "'M-24' "Material Number
  APPEND GT_ORDER_ITEM_IN.
*******<<<<<<<Communication Fields: Sales and Distribution Document Item>>
  GT_ORDER_ITEM_INX-UPDATEFLAG  = 'U'.
  GT_ORDER_ITEM_INX-ITM_NUMBER = '000010'. "Sales Document Item
  GT_ORDER_ITEM_INX-PO_ITM_NO   = 'X'.  "Item Number of the Underlying Purchase Order
  GT_ORDER_ITEM_INX-MATERIAL  = 'X'. "Material Number
  APPEND GT_ORDER_ITEM_INX.
*******<<<<<<<<Communication Fields for Maintaining Conditions in the Order>>>>
  GT_CONDITIONS_IN-ITM_NUMBER = GT_FT_SALES-ITM_NUMBER . "'000010'  "Condition item number
  APPEND GT_CONDITIONS_IN.
*******<<<<<<<<Communication Fields for Maintaining Conditions in the Order FLAG>>>
  GT_CONDITIONS_INX-ITM_NUMBER = '000010' ."Condition item number
  APPEND GT_CONDITIONS_INX.
  CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
      SALESDOCUMENT    = GT_SALESDOCUMENT
      ORDER_HEADER_IN  = GT_ORDER_HEADER_IN
      ORDER_HEADER_INX = GT_ORDER_HEADER_INX
    TABLES
      RETURN           = GT_RETURN
      ORDER_ITEM_IN    = GT_ORDER_ITEM_IN
      ORDER_ITEM_INX   = GT_ORDER_ITEM_INX
      CONDITIONS_IN    = GT_CONDITIONS_IN
      CONDITIONS_INX   = GT_CONDITIONS_INX.
  IF GT_RETURN-TYPE EQ 'E'.
    ERR_ORDER = GT_RETURN-MESSAGE_V1.
    READ TABLE GT_RETURN WITH KEY ID = 'V1'.
    E_REC = E_REC + 1.
    CONCATENATE TEXT-006 ERR_ORDER ':' GT_RETURN-MESSAGE INTO MSG SEPARATED BY SPACE .
    CONDENSE MSG.
    FORMAT COLOR COL_NEGATIVE INVERSE ON.
    WRITE / MSG  .
    FORMAT COLOR COL_NEGATIVE INVERSE OFF.
  ELSEIF GT_RETURN-TYPE EQ 'S'.
    S_REC = S_REC + 1.
    FORMAT COLOR COL_POSITIVE INVERSE ON.
    WRITE / GT_RETURN-MESSAGE .
    FORMAT COLOR COL_POSITIVE INVERSE OFF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT   = 'X'
      IMPORTING
        RETURN = GT_RETURN.
  ENDIF.
ENDFORM.                    " UPLOAD_FILE

Similar Messages

  • Changing Sales Order from using Sales Order Stock to Std Unrestricted

    Hi
    We have set up some materials to default to an Item Category/Schedule lines that creates the Sales Order with relevance to Sales Order Stock.
    However in some instances we need to change the Sales Order to a Std Item Category that just uses Unrestricted stock.
    When we test this currently, we are unable to update the original Line Item as it is GREY.
    So we have been adding a "reason for rejection" then copying information into a 2nd line with a Std Item Category.
    But it is still sitting in MD04 under the Sales Order Stock configuarion and not reducing Unrestricted Stock . .. .
    What are we doing wrong?
    I had assumed that changing the Item Category would remove the Sales Order Stock requirement and use normal Unrestricted.
    Thanks
    Hayley

    Hi,
    In VOV4, has the standard item category been assigned under Manual Item Category column? If the value is assigned, then you can change the item category in sales order.
    Regards,

  • 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

  • Changing Sales Order PARTNER from 'MASS' transaction

    Hi,
    I have a requirement to change partner details (e.g. SHIP TO party  from SH1  to  SH2) for sales order. I need to use tcode 'MASS' (Mass maintainance)  for BUS2032.  But it does not have the option to change partner details.
    Can anybody let me any approach to achieve this. If we can do it through a config or may be creating a custom business object etc...
    I could found out the thread below talking about the same issue, but there is no solution to that. I want to build the solution around SAP standard and not interested for BDC/LSMW/CATT  etc.
    Mass changes Sales order partners
    Thanks,
    Madhu
    Edited by: Madhu K on Nov 1, 2011 11:58 PM

    Alan
    I am ok to create a custom tcode for MASS.  Do I need to copy the BUS2032  or the whole TCODE?
    My major concern is,  how to get the VBPA structure to the selection screen so that it ll show me  the I/P fields to enter Old  Ship to  and  New ship to..
    Can You please give me some idea on this.
    Thanks
    Madhu

  • Change Sales Order, Delivery, Billings Reports

    Hi Gurus,
    Can any body please tell me is there any Report for change logs of Change Sales Order, Delivery,
    Billings & Change report of Customer & Material,
    Regards,
    Sai

    Hi,
    There are no standard reports to display the changes made in the Sales orders and the details you had asked.
    But for the latest changes you can check in the Table :Header details for change CDHDR and for Item details CDPOS
    Or Based on your requirement you can go for a Customized Report
    rgds
    psk

  • New sales order and Change sales order in item level or delete at item leve

    I got one requirement. Daily i have to display one report on new sales orders created on that day and any sales order item is modified or any item is deleted or any item is added.
                      How to get the sales order numbers and position numbers which will follow above creteria. I found one function module but it is not giving position numbers and new sales order details.
             Is there any BAPI for this requirement.

    I am using "CHANGEDOCUMENT_READ" function module to get the new sales orders created and changed sales order items on a particular time. This function module is getting data from CDHDR and CDPOS tables. But only change sales orders is coming. New sales orders which is created on that time is not getting.
              One of my friend is telling like we have to activate one change pointer to retrive new sales orders also. Which is like there will be one check box.
    Is any body having idea on this. Please reply me on briefly with the code to retrive new sales orders and changed sales orders

  • Open Balance on Sales Order Cost Report

    Hi SAP Group -
    I have a couple questions about the settlement of manufacturing variance to COPA.
    When our settlement process is complete (production order and sales order both settled to COPA), there is a balance remaining on the sales order cost report which is equal to the manufacturing variance on the production order.
    It seems that the manufacturing variance is posting from the production order to the sales order, but is not being assigned to the PSEG and flowing to COPA.
    I am looking for advice in two areas:
    First, how do we "clear" these balances on old orders that are already settled?
    Second, how do we prevent this from happening on future orders?
    Thanks !!!

    Refer to OSS 183250 and note 186485.
    If you don’t specify in the settlement profile for the production order that the variances are not transferred from the production order into CO-PA, you will settle the variances to <b>CO-PA twice</b>: once from the production order (broken down into variance categories), and once from the sales order item. The settlement rule still references the material and not the sales order item.
    Special Features of Product Cost by Sales Order with Valuated Sales Order Stock
    <a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/90/ba66cc446711d189420000e829fbbd/content.htm">Read the topic on 'Special Features of Product Cost by Sales Order with Valuated Sales Order Stock'</a>
    You may want to check the period of the variance settlement from mfg order to sales order and ensure the settlement of sales order is also done the same period, if the type is PER.

  • Sale Order Status Report

    Dear Expert.
    I want Sales Order Status report as below mentioned format required quarry base report from Date to To Date.
    Location-OrderSeries-OrderNo-CardCode-CardName-ItemCode-Item Descripotion-Inv.UOM-Order Qty-Allocated Qty-DeliverQty-Peniding Qty adn Pending Order Value.

    Hi,
    You can check this :
    select t3.location as 'Location',t0.series as 'Order Series',
    t0.docnum as 'Order No.',t0.cardcode as 'Business Partner Code',
    t0.cardname as 'Business Partner Name', t1.itemcode as 'Item',
    t1.dscription as 'Item Name', t2.invntryUom as 'Inventory UoM',t1.quantity as 'Order Qty',
    t1.QtyToship as 'Allocated Qty- Qty to Ship', t1.delivrdQty as 'Delivered Qty',
    t1.OrderedQty as 'Ordered Qty', t1.openCreQty as 'Pending Qty',
    t1.Opensum as 'Pending Order Row Value'
    from ORDR t0 inner join RDR1 t1 on t1.docentry = t0.docentry
    inner join OITM t2 on t2.itemcode = t1.itemcode
    inner join OLCT t3 on t3.code = t1.loccode
    where t0.docdate >= '2011.01.01' and t0.docdate <= '2011.12.31'
    Hope it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Change Sales Order category to custom category in CIF

    Hi,
    I am CIFing Sales Order from ECC to APO, as per my requirement I need to change the category of sales order for which their are no confirmation.
    The Sales order get CIFed to APO in standard category BM and i want to change to custom category ZM
    I am using a user exit EXIT_SAPLCSLS_002 to read the Sales Order in ECC and changing the Sales Order ATP category to ZM but I am getting an error that it does not match correctly.
    but when I use a different standard category BL instead of ZM it works properly.
    Has anyone used an user exit to change the Sales Order Category, can you please help?
    Thanks & Regards,
    Sanjog Mishrikotkar

    Hi,
    Please try the user exit EXIT_/SAPAPO/SAPLCIF_SLS_001 in APO. This will be called while transferring the Sales orders to APO and the category will be changed. Also maintain the category you are changing in APO.
    Please look at the link for further details
    http://help.sap.com/saphelp_scm50/helpdata/EN/8f/987337e68ae526e10000009b38f889/content.htm
    Regards,
    Sireesh

  • Error determining posting period(infostructure S008,Variant Z2,RC3) while creating Sales orders from Inbound IDOCS

    Hello,
    I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
    While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
    Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
    Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    Thank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
    Could it be an issue with e Update rule in this Infostructire S008
    Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
    "Maintenance of SAP standard updates not allowed"
    Kindly advice
    Thanks and Regards
    Mohammed Roshan

  • Transfer of sales orders from one plant to another

    Dear all,
    My requirement is as follows:
    I have created some 500 sales orders (open) in one sales org+plant.
    Now due to plant shifting to other area, I want to transfer all the above open sales orders to another sales org+plant.
    One option is to create them manually. But that is time consuming and prone to errors.
    Second option is to upload thru LSMW. That too is very tedious.
    Third option is to extend/assign new plant to the old sales area and change the plant in the orders. But I want in the new sales org + new plant.
    Is there any other option by which I can transfer the above sales orders from one plant to another?
    Regards
    SAPshed

    Hi SAPshed,
    The problem is not the change of plant, which is standard functionality, but the change of sales organization.
    An awful lot of information depends on the Sales Organization: Company code (!!), customers, materials, prices, profit center, etc.
    SAP does not even admit creating a sales order in a Sales Organization A with reference to a sales order with a sales organization B.
    IMHO your best option is to try to maintain the current Sales Orders with the current Sales Organization and change the Sales Order in VA02 (your third option).
    If you are absolutely sure that all materials and customers are created for the new Sales Area in the same way and that prices (discounts) are the same, you might want to do a direct update to VBAK table to change the Sales Organization (nasty!), but be prepared for the consequences (no SAP support in case of problems, you are on your own).
    Therefore if you insist on a different Sales Organization, then option 2) will be your best best.
    Best Regards,
    Franck
    P.S. IMHO it is Best Practice to have a unique Sales Organization / Company Code.

  • Create multiple sales orders from single service notification?

    Is it possible to create multiple sales orders from a single notification (IW51)? 
    We currently create sales orders directly within transaction IW51 (Create Service Notification).  We kick off the sales order creation by pressing the "SALES ORD." button in the notification screen.  We're now interested in creating a 2nd Sales Order which would tie directly to the same Service Notification.  This is so that we can have the second order assigned to a different account assignment WBS (there are two different parties doing work on the service notification).
    I assume you would have to go to VA01 to create the Sales Order, but am not sure how to tie it directly to the service notification from here.  I treied to do a create with reference, but there is no ability to create with reference to a service notification.
    Do I have to create a second service notification for the 2nd Sales Order for this to work?  I want to avoid doing this if at all possible.
    I'm running SAP R/3 Enterprise
    Thanks for your help!

    Hi,
    go to vtaa- copy controls for sales document to sales document.
    select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
    No need to change update document flow.
    After setting zero in copy control that be told on above. create order with respective to the quotation.
    After saving the order.
    go to document flow to see the status in between quotation and order.
    If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
    Have a good day..

  • Creation of Sales Order from Notification

    Hi Friends,
    I want create Sales Order from notification..
    As per Std .. Repair Order is there for Service related Sales Order Creation..
              This is Based on  QM06_FM_TASK_RMA_ORDER_CREATE  function Module ..
      I want i want normal Sales order creation from Notification..
      Is there any BADI or User EXIT is there for Sales order creation or calling Sales order creation Trnsaction from Notification..
    please Suggest the solution..

    Why not copy function module QM06_FM_TASK_RMA_ORDER_CREATE  and change as required?
    PeteA

  • Replication of BP and Sales order from CRM to R/3

    Hello everyone,
    I have a peculiar condition in my hands.The requirement is to replicate 10 business partners from crm to R/3 ,then the next 4 Business partners need not be replicated and then the next three replicated..How do we do this kind of replication....
    One thing more regarding the replication of sales order.When we save a sales order in CRM,is it automatically replicated to R/3 or do we need to release it manually??
    If yes,then if we do not want to replicate the sales order from crm to R/3,then what will we do?
    Consider that all the middleware settings are configured and working fine..
    Puneet

    Hi Bokhal,
    Please consider my answer from your recent thread dealing with apparently the same issue :
    Hi Bhokal,
    For filters in uploads please consider below:
    For Filtering the BP-upload, use the Administration Console
    (tx. SMOEAC) in the corresponding subscription of the "All Business
    Partners (MESG)" publication assigned to the R/3 site.
    Some publications (and the replication objects they are based on) are
    delivered as type "Simple bulk" which does not give you the opportunity
    to assign criteria values for filtering.
    You might have to re-create the publication. To do that:
    1) First delete the subscriptions "All Business Partners (MESG)" and its
    publications & the replication object.
    2) Recreate the replication object as type "Simple intelligent".
    3) Afterwards you can create a new publication via wizard of type
    "Simple intelligent (msg)" assigned to the BDOC-Type BUPA_MAIN. Then,
    you will be able to select some "filter criteria".
    The reason for deleting the "old" publication is, that you
    are not allowed to assign a BDOC-Type to more than one publication.
    4) But please keep in mind that there is no realignment supported. So
    you should only use fields for filtering, which cannot be changed
    afterwards.
    This is the "simple" solution for filtering on fields. This
    will not provide complex filter criteria.
    If you need this, you shall create a filter function in R/3- and/or
    CRM-Inbound and -outbound.
    If you want to keep the control about the upload trigger, you can add an
    additional module in transaction CRMC_BUT_CALL_FU, position > 200000.
    BUPA_MWX_BDOC_BPS_FILL_CENTRAL. Within this new module, you can delete
    all partners within the complex structure that you don't want to upload.
    Hoping that above will be helpful.
    Best regards
    Christophe Sturzel

  • FM to create Sales Order from reference billing document

    Hi,
    I need to create a sales order from a reference billing document. Please tell me if there is any function module/BAPI to do that.
    Thanks in advance for the help
    Regards,
    Varun

    Hi
    <b>SD_SALES_DOCUMENT_COPY</b> copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating.
    <b>SD_SALES_DOCUMENT_SAVE</b> create Sales Doc from the copied document
    create subsequent document
    REPORT Z.
      data: w_auart like vbak-auart,  "current SalesDoc type
            w_auara like tvak-auara,  "Subsequent SalesDoc type
            w_vbak  like vbak.
      parameter p_vbeln like vbak-vbeln.
    at selection-screen on p_vbeln.
      SELECT SINGLE auart FROM vbak into w_auart
        WHERE vbeln = p_vbeln.
      if sy-subrc <> 0.
        message e398(00) with 'Sales Doc' p_vbeln 'not found'.
      endif.
    start-of-selection.
      SELECT SINGLE auara FROM tvak into w_auara
        WHERE auart = w_auart.
      if sy-subrc <> 0 or w_auara is initial.
        message e398(00) with 'Subsequent type not defined for' w_auart.
      else.
      1. copy
        CALL FUNCTION 'SD_SALES_DOCUMENT_COPY'
             EXPORTING
                  i_auarn       = w_auara
                  i_vbeln       = p_vbeln.
      2. paste
        CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
             IMPORTING
                  evbak         = w_vbak.
      3. commit
        COMMIT WORK.
      4. report
        write: / 'Sales Doc', w_vbak-vbeln, 'created.'.
      endif.
    regards
    vinod

Maybe you are looking for

  • Getting error when trying to create Exchange Connector in System Center Service Manager 2012

    Getting error when trying to create Exchange Connector in System Center Service Manager 2012 The connection to the server was unsuccessful. Please check the server name and/or credentials entered. Additional Information: The server URL is not accessi

  • How do I transfer music from my ipod to my itunes?

    I got a new computer and just downloaded itunes, now i need to get the music from my ipod transferd into my itunes. help?

  • How to get System ID

    Hello all, Is there any method through which i can get the System ID( the hardware ID) of any particular System where my AIR application is installed. Regards, Varun Chopra

  • Buttons doesn't gotoAndStop

    Ok I have this code inside a symbol called Gallery: stop(); ////Event Listener///// img1_btn.addEventListener(MouseEvent.CLICK, play1); closeimg_btn.addEventListener(MouseEvent.CLICK, closeIMG); ////Functions///// function play1(event:MouseEvent):voi

  • Sorting a newly-added row within an ADF Read-Only Table

    I'm having a bit of trouble with a situation where I'm adding a new row to the data set behind an ADF Read-Only Table (I'm using 10g), but the new row is popping to the top rather than sorting in according to the sort order. I know this is the defaul