Problem in Printing of Sales order amount with program ZRD_RVADOR02

Hi,
We have one output type for printing the order aknowledgement for customer which is printing all details from sales orders for this we have made a program and form by copying the std. one Program : ZRD_RVADOR02  and form   form : ZS1_RVORDER01_RD it is std. if we remove z we have done some little modification for header detail like company code and added ondition type etc.
for sales order basic price condition is PR20  and addiotnal price condition is PRXX    in sales order the final price is addition of both but when both the price are same it is printing only single condition value and if both are different then it is priting addition of both means  if PR20 and PRXX both are 5000  it is priting 5000 onlu actually it should print 10000  AND IF BOTH ARE DIFFRENT LIKE PR20 : 5000 and PRXX : 5000.01  then it is printing 10000.01 properly .
what can be the problem.
regards,
zafar

Hi,
Can u help on this issue.
regards,
  zafar

Similar Messages

  • Picklist printing from Sales Order screen with Crystal Report

    When attempting to print a Sales Order, we get a dialog box that allows us to choose either Sales Order or Picklist.  Prior to moving to a Crystal Report based report, this dialog box would appear each and every time we tried to print the Sales Order. (Our process requires that we print the Sales Order to our Document Warehouse and then separately print the Picklist to a physical printer.)  Now that we are using Cyrstal, the dialog box to select the form appears for the first print job, but when we try to print the other form,  we no longer get the option to choose which form to print.  The second attempt at printing then defaults to which form we printed first.
    Under Print Preferences, it appears the box to "Print Picking Sheet" only applies to PLD.  Other than closing out of the Sales Order Form and opening it back up again, is there a way to force SAP to allow me to choose which form to print each time I click Print?
    And since we're on the topic, Is it possible to set up a print sequence to print the Sales Order to one printer and the Picklist to another one?

    Are you on SBO 8.8 yet? If so which patch level?
    There is a Print Sequence functionality built into this version (although we don't use it at our company at the moment). 8.8 will also allow you to attach Crystal Reports to any document (with a little work) and they will print just like a PLD document (albeit in a Crystal Viewer).
    If you are not on 8.8 yet, how are you pulling up the Crystal Report for the the Sales Order? I'm guessing you are using some add-on to do this since the 2007 Crystal add-on didn't really handle document layouts very well.
    I can expand on all of this if you want. But I'll need to know what version/patch level of SBO you are on. My company is on 8.8 PL15.
    Brent

  • Do we have standard report to show sale order stock with amount?

    Do we have standard report to show sale order stock with amount?
    I try to use MB5B and MBBS but they don't show value.
    MB5B show only qty
    MBBS no any report.
    Please kindly help.
    Thank you very much.

    Okay Thank you very much for your suggestion.
    I think I have to create a new ZProgram. T_T

  • Central Sales Tax Amount with respect to Purchase Orders

    Is there any way to get Central Sales Tax amount with respect to Purchase Order Numbers. I need this for report.
    Pls get me table numbers from which i can extract

    Hi,
    Refer report J1I2 - Sales Tax Register
    Here in the selection screen, enter Tax code, CST Condition type, etc...
    Also refer report S_ALR_87012357 - Advance Return for Tax on Sales/Purchases

  • Change of Sold to Party in Sales order created with Reference to Contract

    Dear Gurus
    I want to change the sold to party in Sales Order created with reference to contract.
    When I create a Sales order with reference to contract the system copies all the partner functions- Sold to, Ship to, Bill to and Payer alongwith other data.
    However Sold to is marked as "Grey" and not changable, rest of the partners can be changed.
    There is no subsiquent document created with reference to this Sales Order.
    Please advice.
    Thanks a lot.
    Regards
    Raghu

    Hi ,
    Please follow the below mentioned step.
    1) Create a partner function letts say Authorized SP .
    2) Assign all the possible authorised  SP (customer) in the contract.
    3) When you create sales order with reff to Contract. Put the customer for whom you wish to create a sales order in release partner tab.
    Hop this will resolve our problem
    Regards,
    Krishna O

  • Sales Order Created with reference to Contract - Exchange rate Issue

    When Sales Order created with reference to contract VBKD fields KURSK and KURSK_DAT gets copied from contract and not redetrmined based on pricing date and Exchange rate type. I expected it to be determined based on pricing date is standard. What I am missing, should it be controlled by data transfers
    If Document currency and condition currency are different it cause problems with incorrect condition values are calculated, as KOMP-KURSK are copied from VBKD-KURSK
    Any help or directions would be greatly appreciated . We are on 4.7 ISOIL
    Sincerely Julietta

    Well,
    and if we have the same issue, but we don't have OIL Version, but simple 4.6C, which solution has to be applied then?
    Thank you
    Standa

  • BAPI SALES ORDER & Copy with reference

    Hello,
    I'm creating sales order copied with reference to an invoice. My problem is that the data item is empty. When I create the sales order manually and use the option 'Create with reference' and choose an invoice, the sales order is created with all data item. I don't know how I can get to copy the data item from the invoice in the new sales order. The code that I'm using is the following:
    DATA: order_header_in      LIKE bapisdhd1,
          order_partners       LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
          order_text           LIKE bapisdtext OCCURS 0 WITH HEADER LINE,
          order_header_inx     LIKE bapisdhd1x,
          order_item_in        LIKE bapisditm OCCURS 0 WITH HEADER LINE,
          order_schedules_in   LIKE bapischdl OCCURS 0 WITH HEADER LINE,
          order_conditions_in  LIKE bapicond OCCURS 0 WITH HEADER LINE,
          extensionin          LIKE bapiparex OCCURS 0 WITH HEADER LINE,
          partneraddresses     LIKE bapiaddr1 OCCURS 0 WITH HEADER LINE,
          order_cfgs_ref       like BAPICUCFG occurs 0 with header line.
    DATA: salesdocument LIKE bapivbeln-vbeln.
    DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    order_header_in-doc_type   = 'ZA09'.
    order_header_in-sales_org  = '1700'.
    order_header_in-distr_chan = '01'.
    order_header_in-division   = '01'.
    order_header_in-BILL_DATE   = '20060701'.
    order_header_in-ref_doc    = '0900000019'.
    order_header_in-refdoc_cat = 'M'.
    *order_header_in-REF_DOC_L_LONG = '0900000019'.
    order_header_in-purch_no_c  ='prueba'.
    *order_header_in-ord_reason = '003'.
    *order_header_in-pmnttrms   = '0002'.
    *order_header_in-sales_off  = '2800'.
    order_header_in-ref_doc_l  = 'FACTURA ES'.
    *order_header_in-fix_val_dy = '20060701'.
    *order_header_in-currency   = 'USD'.
    *order_header_in-exchg_rate = '1.2'.
    order_partners-partn_role = 'AG'.
    order_partners-partn_numb = '0000000001'.
    order_partners-langu      = 'EN'.
    order_partners-name       = 'El corte aleman'.
    order_partners-country = 'ES'.
    APPEND order_partners.
    order_partners-partn_role = 'RE'.
    order_partners-partn_numb = 'ARR000'.
    order_partners-addr_link  = '0000030044'.
    APPEND order_partners.
    CALL FUNCTION 'ADDR_GET_COMPLETE_ALL_TYPES'
      EXPORTING
        addrnumber                 = order_partners-addr_link
      PERSNUMBER                 =
        address_object_type        = '1'
      IV_CURRENT_COMM_DATA       = 'X'
    IMPORTING
      ADDR1_COMPLETE             =
      ADDR2_COMPLETE             =
      ADDR3_COMPLETE             =
       ADDR1_COMPLETE_BAPI        = partneraddresses
      ADDR2_COMPLETE_BAPI        =
      ADDR3_COMPLETE_BAPI        =
    EXCEPTIONS
      PARAMETER_ERROR            = 1
      ADDRESS_NOT_EXIST          = 2
      PERSON_NOT_EXIST           = 3
      INTERNAL_ERROR             = 4
      OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data: vl_texto(40) value 'NUEVOOOOO'.
    partneraddresses-name    = vl_texto. clear vl_texto.
    partneraddresses-name_2  = vl_texto.
    partneraddresses-name_3  = vl_texto.
    partneraddresses-name_4  = vl_texto.
    partneraddresses-langu   = 'E'.
    APPEND partneraddresses.
    DATA: vl_cantidad LIKE bapisditm-target_qty.
    vl_cantidad = 1.
    order_item_in-itm_number = 10.
    order_item_in-material = 'HONORARIOS'.
    order_item_in-ref_doc = '0900000019'.
    order_item_in-ref_doc_it = 10.
    order_item_in-ref_doc_ca = 'M'.
    APPEND order_item_in.
    order_schedules_in-itm_number = 10.
    order_schedules_in-req_qty = vl_cantidad.
    APPEND order_schedules_in.
    order_text-text_id = 'Z001'.
    order_text-ITM_NUMBER = ''.
    order_text-langu = 'EN'.
    order_text-text_line = 'Hola, CARACOLAcola'.
    APPEND order_text.
    order_text-text_id = 'Z001'.
    order_text-langu = 'EN'.
    order_text-text_line = 'Adios caracol'.
    APPEND order_text.
    order_text-itm_number = '000010'.
    order_text-text_id = '0001'.
    order_text-langu = 'EN'.
    order_text-text_line = 'Hola, POSICIÓN'.
    APPEND order_text.
    extensionin-structure = 'BAPE_VBAK'.
    extensionin-valuepart1 = '          BCL  7'.
    APPEND extensionin.
    order_cfgs_ref-posex = '10'.
    order_cfgs_ref-config_id = '10'.
    order_cfgs_ref-root_id = '00000001'.
    append order_cfgs_ref.
    CALL FUNCTION 'ZBAPI_SALESORDER_CREATEFROMDT2'
      EXPORTING
       SALESDOCUMENTIN               =  salesdocument
        order_header_in               =  order_header_in
       ORDER_HEADER_INX              =  order_header_inx
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
       salesdocument                 = salesdocument
      TABLES
        return                        = return
        order_items_in                = order_item_in
      ORDER_ITEMS_INX               =
        order_partners                = order_partners
        order_schedules_in            = order_schedules_in
      ORDER_SCHEDULES_INX           =
        order_conditions_in           = order_conditions_in
      ORDER_CONDITIONS_INX          =
        ORDER_CFGS_REF                = order_cfgs_ref
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
        order_text                    = order_text
      ORDER_KEYS                    =
       extensionin                   = extensionin
        partneraddresses              = partneraddresses
    PERFORM  report TABLES return.
    *DATA: salesdocument LIKE bapivbeln-vbeln.
    *DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    *refresh return.
    *CALL FUNCTION 'BAPI_SALESDOCUMENT_COPY'
    EXPORTING
       salesdocument          = '0400000191'
       documenttype           = 'ZA04'
      TESTRUN                = ' '
    IMPORTING
       SALESDOCUMENT_EX       = salesdocument
    TABLES
       RETURN                 = return
    *PERFORM  report TABLES return.
    *write: / salesdocument.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    *&      Form  report
          text
         -->P_MENSAJE  text
    FORM report  TABLES   p_mensaje STRUCTURE bapiret2.
      DATA: vl_mensaje TYPE string.
      LOOP AT return.
        CLEAR vl_mensaje.
        MESSAGE ID     return-id
                TYPE   return-type
                NUMBER return-number
                INTO   vl_mensaje
                WITH   return-message_v1
                       return-message_v2
                       return-message_v3
                       return-message_v4.
        WRITE: / vl_mensaje.
      ENDLOOP.
    ENDFORM.                    " report

    Hi Manuel,
    There are some function modules which is there to copy the order details. I am not sure about the function module name. But you can search in SE37. But bapi for creating the sales order does not have the functionality of copying the data from one document to another document.
    You can try using this function module.
    BAPI_SALESDOCUMENT_COPY
    Data will be copied based on the copy control routines that is set between the two document types.
    Thanks,
    Arun

  • How to create a Contract with reference to a Sales-Order(VA01) with a BAPI

    Hi,
    my name is Wadim and i need help.
    My problem:
    I am creating a sales-order(VA01) with the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'.
    After that i have to create a contract(VA41) with reference to this order. I found the BAPI "BAPI_CONTRACT_CREATEFROMDATA" and it has the same interfaceparameters like the salesorder-bapi. but there are no parameters to get a connection to the sales-order.
    Is it even possible to get a connection to a sales-order with a bapi???
    thanks for help
    regards mark
    Edited by: Krapp Wadim on May 20, 2010 9:19 PM

    Hi Wadim,
    I have a similar requirement to create order lines in an existing contract with reference using  BAPI_CUSTOMERCONTRACT_CHANGE.  The order lines get created in the contract. However, the condition types from the order line which i'm referencing are not getting referenced and are not getting added in the Contract's line after referencing.
    Did you come across any such issue ? If yes , could you suggest the solution ?
    Regards,
    Venkat.

  • Sales order status with down payment requests.

    Due to our requeriments, all the invoices created from a sales order has down payment request as billing category.
    The problem is that the sales order status continues as "Being processed" instead of completed.
    Is there any customising that makes the sales order status as completed when the down payment request is created for all the sales order value?
    Thanks in advance.

    Hello,
      this is the correct behaviour of the system: you have an item of 100; in the billing plan if you want to manage downpayment you will have, let's say two items:
    10 for the downpayment 
    100 for the final invoice.
    The system proposes the amount you defined for the downpayment and the total amount for the final invoice.
    Then you will have to bill the downpayment invoice, release it into accounting and clear it. If you will do this steps correctly, when you create the final invoice the system will show you:
    invoice amount 100
    advance payment -10
    net value = 90.
    Hope to be useful..
    Best regards,
    Andrea

  • Restrict Output for Fax and Print in Sales Order

    Hi,
    I am having a sales order output with two output types - Fax and Print. I need to restrict one page "Terms & Conditions" to be printed only once when I select the output type as FAX. But if the output type is PRINT, I have to print the page "Terms & Conditions" after every page i.e in even numbers since it is getting printed on both sides of the paper.
    Can anyone help me on this.
    Thanks in Advance.

    Hi,
    For pages->Conditions->write condition for ,when it should trigger.
    output type eq Printer.
    Regards,
    Shiva Kumar

  • Combining 2 Sales Orders - 'Complete' with 'Partial'  Delivery into 1 Delv

    Hi folks,
    I have a typical requirement from my client and it is as follows:
    My client want to combine 'Sales Orders' marked with 'Complete Delivery' indicator(VBAK-AUTLF check-box is checked) at the Header -> Shipping, with Sales Orders marked for 'Partial Delivery' (VBAK-AUTLF is not checked) in the Header-> Shipping.
    Although all the other business conditions/fields values at the Header levels,like Ship-To_party, Shipping Conditions, Incoterms, etc. are same across both these Sales Orders; SAP as a standard Business Process Flow, doesnot allow <u>COMBINING</u> of  2 such orders into a <u>SINGLE Delivery</u>, since their 'Headers' seem to differ for that ONE field value.
    I have searched through all user-exits, SAP Help forums as well as OSS notes to get a solution to this problem but could not find any (bad luck).
    Will anyone of you who has come across this particular scenario or know a way to get around this problem, be able to contribute with his/her ideas? I would be
    grateful, thanks in advance.
    Regards,
    Shripad

    Hi iim nava,
    Thanks for your reply.
    However in our case, the system does throw that error, when i try to combine the second order (partial) into the delivery created for the first order (complete).Here is the log for your reference, when I try to add the second(partial so items) into the delivery created for the first (complete delivery SO):
    Diagnosis
        Item 000010 cannot be shipped in the same delivery with the
        other items in the document because the header data (AUTLF)
        is different. The field AUTLF for the item has the value &4,
        yet in the delivery it has X.
    System Response
        The system issues this message if a delivery split is
        necessary.
        This message either appears in the collective processing log
        or during creation of outbound deliveries from projects or
        for subcontracting. It informs you that the item specified
        will be shipped in a delivery other than the delivery that
        includes the other items from the same document. If there was
        a general problem with shipment of the delivery, a different
        message appears.
        If this message appears when you are creating an outbound
        delivery with reference to a sales order in the foreground,
        it indicates that the order item cannot be shipped with the
        current outbound delivery.
    By any chance, did you actually try simulating my scenario in your system. If you have and the same works fine in your system, then pls help me by sending your 'copy control' settings, to help me compare. We run SAP 4.6 and my settings for copy control are as follows:
    <u>LF <-> OR (Header)</u>:
                 Data Transfer (VBAK) = 001 [HEADER]
                 Data Transfer HU = 000 [blank]
                 Order Requirements (VBAK) = 001 [HEADER]
                 Combination Requirements = 651 [051 w/o Comp dlv]
    <u>LF <-> OR <-> TAN (Item)</u>:
                   Item Data = 101 [ITEM]
                   Order Requirements (VBAK) = 101 [ITEM]
                   Business Data = 2 [BUSINESS DATA]
                   Buss Data Reqmt = 151 [COMBINATION]
    Hope the feedback can you will help me solve my problem. Thanks once again.
    Regards,
    Shripad

  • Sales order costing with dependencies

    Hello,
    we have implemented a make-to-order sales order costing with configured materials.
    The routing will be generated automatically based on dependencies.
    Our problem: Costing is not based on the standard values shown in the routing operations but on values coming from dependencies. In some cases these values are different.
    Our sales order costing should based in all cases on the standard values shown in the routing without using dependencies.
    How can we realize this, any idea ?
    Thanks you for your answers
    Nitza

    6.0
    found somewhere in the coding that it's not possible for configured materials, what really surprise me

  • Changing Rejected Sales Order Items with BAPI?

    Hi Forum,
    I have the following challenge, would be great if someone of you could help me out. Will help me solve some of my performance problems.
    I have sales orders which are temporary and have 'rejected order items'. Now the requirement is that I have to change the 'rejected order items' (quantity and Delivery dates) based on some XYZ criteria. Now using the BAPI_SALESORDER_CHANGE bapi I have to
    1. first get rid of the 'REJECTION REASON'
    2. Change the order item and then reset the above.
    I tried doing it by populating the order_items internal table with two entries but to my surprise it works once and fails twice!!! I get some errors that are totally irrelated and wierd.
    As for now, I've just adjusted the program(dirtily??) and will be calling the BAPI twice for a change !!!(Huh!)
    Now if anybody knows how to deal with the above problem just drop a few lines, will be of good help to me.
    Thanks and regards,
    ZAM

    Hi Srinivas,
    Thanks for the reply. The rejection reason is set manually, when creating the sales order. I do set the update flag to 'U' and also activating all the X structures. But still it did not work.
    Let me put it very simple. Is it possible to change the rejected order items, through BAPI's? If yes, how?
    Regarding the error messages I will have to change the code again to recreate the messages will let you know as soon as I am finished with some things. But however here are some errors
    Field 'WMENG' cannot be changed, VBEPKOM 000100 0001 ready for input
    Field 'WMENG' cannot be changed, VBEPKOM 000100 0001 ready for input
    Sales document 0030000031 was not changed                           
    there are few others which appear now and then indicating a system error !!
    thanks,
    ZAM

  • Read Sales Order Price with Pricing Date (PRSDT)

    Hello ABAP Gurus,
    I have once requirements and is, I need to extract sales order prices with a given Pricing Date (PRSDT).
    Could you please tell me if these is Function Module or BAPI that I can use?
    Regards,
    Murali

    Maintain a condition record for Rs.10/- with a validity date (only as an example) as 1st March'14 to 15th March'14.  Another condition record for Rs.15/- with validity date as 16th March'14 to 31st March'14.
    Now create a sale order for 500 nos. with one line item and change the pricing date as 15th March'14.  Similarly, create another line item for the same material with 500 nos. and here, change the pricing date as 16th March'14 at line item level.  By doing so, system would fetch the pricing in billing accordingly.
    I told as per my knowledge System will bring old price only for reserved stock if you want to apply new price for reserved stock just 411 e return the stock from reservation and now create sales order
    i hope this right
    Your understanding is incorrect.  System will never validate pricing based on age of the stocked material but based on validity period what you maintain in condition record.
    G. Lakshmipathi

  • FM to get sales order details with billing document .

    hi ,
    is there any standard FM or BAPI to get the sales order details with input as billing document ?
    i have the billing document number now i need to get the sales order number and its details ..
    is that possible ..
    i very well know how to get it by using query, i need standard FM.
    Points will be awarded for sure , if it helps .
    Thanks and regards
    JK

    Here is the list of BAPIs
    BAPI_QUOTATION_GETDETAILBOS
    BAPI_INQUIRY_GETDETAILBOS
    BAPI_SALESORDER_GETDETAILBOS
    SALES ORDER->
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order

Maybe you are looking for