Sales order -va02

Dear Consultant,
Tcode - VA02 ---give some order no ..then enter button... again enter button...it will show u:: ITEM OVERVIEW- next select any line item
next click PRINT PREVIEW button -for my business it showing ORDER CONFIRMATION-Then click BACK button-again select
anyone of the line item then CLICK bottum side  ITEM CONDITIONS buttons...it will show in Condition Tabstrips ...it showin condition name ..like  eg
condition Field name name : fixed surcharge .
                                         : cumulation condition
                                         :VAT
                                         :Cash Discount
                                        :STATISTICAL AMT( here pproblem ..it should one time
but its showing remaining    STATISTICAL AMT
field all-                             STATISTICAL AMT
                                        STATISTICAL AMT
                                        STATISTICAL AMT
                                        STATISTICAL AMT
                                        STATISTICAL AMT
                                        STATISTICAL AMT
                           but  it should only one time
it should not show many STATISTICAL AMT
give me some inputs
Regards
Rajendren.P

STATISTICAL AMT
STATISTICAL AMT
STATISTICAL AMT
STATISTICAL AMT
STATISTICAL AMT
at the right hand side in the Table control screen are the fields populated with some values/zeros ?
if so i think they are maintianing this in the pricing conditions.
regards,
vijay.

Similar Messages

  • Splitting line item in Sales Order-VA02

    Hello All,
            I got struck with the below requirement, Can someone share their ideas, if any one come across such case.
    Requirement : If ordered material obsolete then system has to propose follow up material ( which will be maintained in MMR-MRP4 view - Followup material field) based on stock availability.
    We have done the same by using USEREXIT in Sales order creation & working fine without any issues.
    But, If stock partially exists for entered material, then new line item has to add/insert with the follow up material.
    Eg;
    M1- stock -30 ea
    M2- No stock ( Follow up material)
    *In Sales Order Creation- VA01,*
    Line Item -- Material - Ordered Qty
    M1 - 50 Qty (ordered qty)
    Result;
    Line Item -- Material - Ordered Qty - Item Cat
    10----M1-----30 ea  -  TAN
    11----M2--
    20 ea  - TAB ( MTO)
    Working fine-
    We are able to do it during Sale Order creation (VA01).
    *Change mode of Sales order - VA02;*
    Line Item -- Material - Ordered Qty - Item Cat
    10----M1-----30 ea  -  TAN
    11----M2--
    20 ea  - TAB ( MTO)
    if  user increases the M1 qtty to 10 Ea, then system should behave as shown in below eg,
    Line Item -- Material - Ordered Qty - Item Cat
    10----M1-----30 ea  -  TAN
    11----M2--
    20 ea  - TAB ( MTO)
    12----M2--10 ea -- TAB(MTO)
    But We are facing problem during Change mode .
    in VA01-  (Sale order Creation), the logic was written in exit : USEREXIT_MOVE_FIELD_TO_VBAK - which is working fine
    During Change(VA02), above exit will not be useful. Hence tried to use exit : USEREXIT_MOVE_FIELD_TO_VBEP.
    But not able to add new item at this level.
    All useful ideal will be appreciated.

    Thanks for attempting this thread.
    Material determination will not suffice our requirement, because it will not substitute the follow up material, when entered material have partial stock. In VB12 - MRP indicator will active only when stock is not available for entered material & results according to the substitution reason
    In our case,
    if entered material doesnt have stock, then follow up material should replace with complete ordered qty,
    if entered material have partial stock exists, then system confirms for available qtty & create new line item with balance qtty, item cat-TAB----
    that is the reason we didnt go for material determination. ( you cant have 2 substitution reasons for one record in VB12)
    VBAK has to be used to check the overall document qtty. the above explained scenario working fine with our development in create mode.
    But in change mode, if user tries to increase the qtty in entered material, then this one more new line item has to create for folloup material with excess qty - is our requirement .
    Hope its clear now, still if any queries let me know

  • FM to get Text in Sales Orders - VA02

    Dear all,
    I'am looking for a Function modul, which get all text in HEADER and ITEM for a document number in Sales Orders=> VA02.
    Is there any one who can help?
    Best regards
    Edited by: Rob Burbank on Feb 17, 2010 11:35 AM

    Dear  handeglo ,
    use the function module READ_TEXT this is helpful in getting the long texts from the database and will work for the VA02
    header and item texts retrival .Eg.
    CALL FUNCTION 'READ_TEXT'
              EXPORTING
    *           CLIENT                        = SY-MANDT                   Field:
                id                                 =          "put here the id of thr text type"     TDID
                language                     = 'D'    "language in which the text exists.    TDSPARS
                name                           =      "put here the name of the text AS in     TDONAME
                           for item texts its sales order number+item number
                object                          = 'VBBP'    "object type for item texts       TDOBJ
    *           ARCHIVE_HANDLE                = 0
    *           LOCAL_CAT                     = ' '
    *         IMPORTING
    *           HEADER                        =
              TABLES
                lines                         = i_lines
             EXCEPTIONS
               id                            = 1
               language                      = 2
               name                          = 3
               not_found                     = 4
               object                        = 5
               reference_check               = 6
               wrong_access_to_archive       = 7
               OTHERS                        = 8
    also refer the tables stxh and stxl these tables contain all the header and item texts data respectively
    Edited by: abhi_014u on Feb 17, 2010 3:44 PM
    Edited by: abhi_014u on Feb 17, 2010 3:46 PM
    Edited by: Rob Burbank on Feb 17, 2010 11:35 AM

  • Report on deleted sales orders ( va02)

    hi,
    i got one requirement to write a program to display the list of deleted sales orders (through VA02 Tcode).
    to my knowledge when a sales order is deleted through VA02 the order will be deleted from the database itself and will be deleted from all the SAP tables.
    if that is correct, is there any possibility that we can create a Ztable and update the data before deletion or any other solution for the above requirement?
    thanks in advance,
    Rajani yeluri

    hi rajani,
    u will get deleted data from using tables CDHDR,CDPOS,CDRED and function module '  CHANGEDOCUMENT_READ'.
    i am sending u some sample code, i hope it will helps u
    DATA: it_editpos    LIKE cdred OCCURS 0 WITH HEADER LINE,
                                     "Change documents, display structure
          it_editpos1   LIKE cdred OCCURS 0 WITH HEADER LINE,
                                     "Change documents, display structure
          x_editpos1    LIKE cdred,  "Change documents, display structure
            x_editpos     LIKE it_editpos,
                                     "Change documents,display structure
    *-----Calling FM to populate the structure 'EDITPOS'
      CLEAR it_editpos.
      CALL FUNCTION 'CHANGEDOCUMENT_READ'
           EXPORTING
              objectclass                = ' ' 
           TABLES
                editpos                    = it_editpos
           EXCEPTIONS
                no_position_found          = 1
                wrong_access_to_archive    = 2
                time_zone_conversion_error = 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.
      CLEAR: x_editpos,
             it_editpos1.
      LOOP AT it_editpos
        INTO  x_editpos
        WHERE tcode = 'ME21N' OR  "Here u have 2 pass 'VA02'
              tcode = 'ME22N' OR
              tcode = 'ME23N'.
        APPEND x_editpos TO it_editpos1.
        CLEAR x_editpos.
      ENDLOOP.
    now it_edipos1 has all CHANGENR numbers, so now u have to fetch data from F_NEW and F_OLD Fields
    i hope this will helps u
    Regards,
    prasad

  • Is it possible to change pricing procedure in sales order VA02

    Hi,
    My client need to change the pricing procedure in their RETURN order because they implemented a new pricing procedure for the specific distribution channel.  However, since the return order was created with reference to invoice, the old pricing procedure was copied instead of the new that was implemented.  Is there a way that they can still change the pricing procedure in the return order?  Here is the scenario for better understanding.
    1. Sub-distributor sales order created (distribution channel = 60) on 5/24/2014.  The pricing procedure maintained was ZRVB01.
    2. Delivery and Billing was created on the same date with pricing procedure ZRVB01.
    3. A new pricing procedure ZRVB12 was created for distribution channel 60 on 6/2/2014.
    3. Return order was created with reference to the billing document in step 2 on 6/24/2014.  The pricing procedure of the return order was still ZRVB01, instead of ZRVB12.
    4. In VA02, the field pricing procedure is not modifiable.
    Need advice how my client can proceed in correcting the pricing procedure on their return order.
    Appreciate your response.
    Thank you.
    Emil

    Since your requirement is to calculate the different price for the returned qty, please check for the return order if you can make any manually change the price as required.
    Please note you can not change the pricing procedure in document, but you can change the price of the material as suggested above.
    I assume you already knew the pricing procedure determination, how it is determined.(Sales area+DPP+CPP).
    If you want to have different pricing procedure to be determined for the same customer in return sales , you must have the following determination so that it would be determined the 2nd pricing procedure during return order.
    Example :
    For standard sales : Sales area + DPP in OR(A- standard)+ CPP( 1 standard) =ZRVB01
    For return Sales : Sales area + Dpp in RE (B- return)+CPP(1 standard) =ZRVB12.
    thanks,
    Srinu.

  • Sales order VA02 & delivery issue VL01N

    Hi team!!
    your assistance will be highly appreciated
    I have a sales order with 2 materials and when I want to do the delivery I can only do for item 110. (material type: ZPRD)
    even this item is related to item 100 ( material type: Kmat) , i need to deliver this too, but is not possible since i get the following logs:
    *No schedule lines due for delivery up to the selected date
    order item 0000 -00100 , with incomplete delivery group 001
    I made some changes and got:
    Delivery group 001: Item 000100 contains no confirmed schedule lines - Message no. V1298
    Could you please help me identify what is happening?
    Thanks in advance.

    go into VA02, go into detail of your item, goto the schedule tab
    make sure you have a confirmed quantity there.
    you see there as well the delivery date.
    Make sure that the selection date in VL02N not smaller than your delivery date for your confirmed schedule line

  • Printing sales order VA02

    Hello Guru's,
         I need to send the sales order in PDF format through email when i click va02-> sales document -> Issue to output.
        How can i know where this form is getting triggered from for this particular sales order.
        Please give as much as information as possible.
    Thanks
      Mind

    Hi
    Use NACE transaction to findout which program/layout is assigned to the output.
    Also, you might need to code for getting the output to spool and then get the data from spool and generate a PDF file from it and then send it as attachment in a mail.
    Function Modules:
    <b>CONVERT_ABAPSPOOLJOB_2_PDF</b> convert abap spool output to PDF
    <b>CONVERT_OTFSPOOLJOB_2_PDF </b>
    <b> SO_NEW_DOCUMENT_ATT_SEND_API1 </b>
    Regards,
    Raj

  • Attachment List Table In sales order VA02.

    Sir,
    I have to develop report on attachment list in sales order on the basis of sales order number and customer
    no. But I'm not getting the tables. So I can develope the report.
    Thanks
    Manoj Pise

    Hi
    Check tables
    VBAK (Has sales order & Kunnr (Customer number))
    VBAP
    VBKD
    VBEP
    Regards
    Gaurav

  • Sales Order (VA02) - Blocking conditions/configuration changes

    Hi,
    I have the following requirment:
    When changing sales document with subsequent documents, the configuration and pricing data of items should be blocked for changes (or as alternative: error message should be raised when data saved).
    Can this requirment be fulfilled (by means of customization or customer development/user-exit implementation)?
    Thanks,
    Shai

    Dear Sinai,
    Then, you must have to Cretae and Assign Status Profile for the same in to T. Code: BS02/ OIBS.
    Once you create the status profile with proper Auth. Code, set the Profile for appropriate Sales Area (for which, Sales Order is getting created with reference to a Subsequent document i.e. Quotation).
    User with the proper authorization in their USer-Profile (T. Code: SU01  - Basis-Admin will able to do this), will only be able to do the changes.
    I think, this will ful-fill your requirement.
    Best Regards,
    Amit

  • Bapi for Sales Order (VA02) change

    Hi frnds,
    i want to update one field of items in sales order. i understood that BAPI_SALESORDER_CHANGE is right bapi for that. but i dont know how to start this. remember i have to update this thru one report. i mean after executing the report i am displaying the values in ALV report. in that ALV report i am mentioning which sale order items to be changed.
    now my doubt after getting the values in internal table how to call that BAPI and what all are should be maintained. if any one have done this or similar to this like calling Stanadard BAPI please send me code to [email protected]
    hope it is clear.
    Regards,
    Balu

    See this example.
    *& Report  ZTEST1
    REPORT  ZTEST1
            NO STANDARD PAGE HEADING
            LINE-SIZE  132
            LINE-COUNT 65(0)
            MESSAGE-ID ZZ.
    TABLES: VBAP.
    DATA: V_VBELN LIKE VBAP-VBELN.
    DATA: ORDERHEADERINX LIKE BAPISDH1X.
    *DATA: ORDERHEADERIN LIKE BAPISDH1.
    *DATA: BEGIN OF ORDERITEMIN OCCURS 0.
    *        INCLUDE STRUCTURE BAPISDITM.
    *DATA: END OF ORDERITEMIN.
    *DATA: BEGIN OF ORDERITEMINX OCCURS 0.
    *        INCLUDE STRUCTURE BAPISDITMX.
    *DATA: END OF ORDERITEMINX.
    DATA: BEGIN OF IT_EXTENSIONIN OCCURS 0.
            INCLUDE STRUCTURE BAPIPAREX.
    DATA: END OF IT_EXTENSIONIN.
    DATA: BEGIN OF RETURN OCCURS 0.
            INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF RETURN.
    DATA: BEGIN OF BAPIRETURN OCCURS 0.
            INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF BAPIRETURN.
    DATA:      l_zavbak          TYPE bape_vbak,
          l_zavbakx         TYPE bape_vbakx.
    * POPULATE BAPI DATA AND RUN BAPI
    *  CLEAR: ORDERHEADERINX, ORDERITEMIN, ORDERITEMINX,
    *         RETURN, BAPIRETURN.
    *  REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
    V_VBELN = '0000000153'.
    ORDERHEADERINX-UPDATEFLAG = 'U'.
    *ORDERHEADERIN-
    IT_EXTENSIONIN-STRUCTURE = 'BAPE_VBAK'.
      l_zavbak-vbeln         = V_VBELN.
      l_zavbak-zzplant       = '0020'.
    IT_EXTENSIONIN-valuepart1 = l_zavbak.
    APPEND IT_EXTENSIONIN.
    IT_EXTENSIONIN-STRUCTURE = 'BAPE_VBAKX'.
      l_zavbakx-vbeln         = V_VBELN.
      l_zavbakx-zzplant       = 'X'.
    IT_EXTENSIONIN-valuepart1 = l_zavbakx.
    APPEND IT_EXTENSIONIN.
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
               EXPORTING
                    SALESDOCUMENT    = V_VBELN
    *                ORDER_HEADER_IN = ORDERHEADERIN
                    ORDER_HEADER_INX = ORDERHEADERINX
                     behave_when_error = 'P'
               TABLES
                    RETURN           = RETURN
    *                ORDER_ITEM_IN    = ORDERITEMIN
    *                ORDER_ITEM_INX   = ORDERITEMINX
                    EXTENSIONIN = IT_EXTENSIONIN.
          LOOP AT RETURN.
            WRITE: / RETURN-TYPE, RETURN-ID, RETURN-NUMBER, RETURN-MESSAGE,
            RETURN-LOG_NO, RETURN-LOG_MSG_NO, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2,
            RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
          ENDLOOP.
          Write: / 'BEFORE COMMITT'.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
               EXPORTING
                    WAIT   = '1'
               IMPORTING
                    RETURN = BAPIRETURN.
          Write: / 'AFTER COMMITT'.
                LOOP AT RETURN.
            WRITE: / RETURN-TYPE, RETURN-ID, RETURN-NUMBER, RETURN-MESSAGE,
            RETURN-LOG_NO, RETURN-LOG_MSG_NO, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2,
            RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
          ENDLOOP.
    ** WRITE OUT RETURN
          LOOP AT BAPIRETURN.
            WRITE: / BAPIRETURN-TYPE, BAPIRETURN-ID, BAPIRETURN-NUMBER, BAPIRETURN-MESSAGE,
            BAPIRETURN-LOG_NO, BAPIRETURN-LOG_MSG_NO, BAPIRETURN-MESSAGE_V1, BAPIRETURN-MESSAGE_V2,
            BAPIRETURN-MESSAGE_V3, BAPIRETURN-MESSAGE_V4.
          ENDLOOP.
    **      WRITE: / BAPIRETURN.

  • Create sales order va02--bapi

    i copied the program to create s.order from wiki,
    works fine.
    noew i need to add this
    item-hg_lv_item  = p_uepos.
    itemx-hg_lv_item = 'X'.
    and i get err why??
    pls.

    Hi Stephanie,
      Check this following link for creation of sales order using bapi:
    http://www.sap-img.com/fu036.htm
    Have a look at these links also:
    http://abaplovers.blogspot.com/2008/02/bap-sales-order-create.html
    http://abaplovers.blogspot.com/2008/02/bapi-sales-order-create-code.html
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Chance user status in sales order VA02

    hi all,
    have any FM or BAPI is available to change (block / release) the user status in sales order change,
    pls note me about this,
    Regards
    Usman

    Hi Aditya,
    thanks,,
    which table and which field need to import in this FM "BAPI_SALESORDER_CHANGE" to change User status (Release / Block) in Sales order.
    Regards
    Usman

  • Error status of output type in sales order (va02)

    hi,
    I have created a output type in salse order for Idoc generation.
    My problem when i create a order and if it's credit limit excced then it show me red status of out put type, and no idoc generated.
    If credit limit is not excced than it show green status.
    can anyone help me how to make it in green or yellow status even if credit limit exceeds.
    how to remove this check.
    can this be solved by configuration ???
    <REMOVED BY MODERATOR>
    Thanks in adance,
    Edited by: Alvaro Tejada Galindo on May 23, 2008 6:57 PM

    Hi Mohit,
    Go to [VA02], using the standard toolbar select Extras -> Output -> Header / Item -> Edit and go to the Output Screen. Again using the standard toolbar select Goto -> Determin Analysis. Now select your output condition type and see what could be the reason for why the output type has not been picked.
    Regards
    NP

  • Regarding UserExit in sales Order creation(VA01), change(VA02)

    *Hi Gurus,*
    we are having one requirement that we have to change User status at item level in sales Order creation(VA01), change(VA02) according to certain condition( condition is if user status at item level is 'SGUC' then we need to get item category and with this item category we have to find new user status from our custom table).
    *So is there any FM or user-exits to set the User Status of the Sales Order Line Item at the time of Order Creation(VA01) or Change sales order(VA02) but before saving.*
    *looking for your inputs.*

    Check,
    In include MV45AFZZ
    Routine USEREXIT_SAVE_DOCUMENT_PREPARE
    In include RV45PFZA
    Check with USEREXIT_SET_STATUS_VBUK ,  USEREXIT_SET_STATUS_VBUP

  • BDC Program to Set Reason for Rejection in VA02 in Sales Order Change

    Hi i have a requirement i have to set "reason for rejection" in random line items of Change mode of sales order VA02.
    I have to develope BDC for this task and i have the list of all open line items which displays in VA05, can any of them can guide me how to develop BDC which will randomly select line items and set reason for rejection in VA02 Sales Order Change transaction.
    With Regards,
    S.Saravanan

    Hi Saravanan,
    As mentioned in the previous reply, you can use the FM:SD_SALESDOCUMENT_CHANGE and set the reason code for the line item like for eg:  move '03' to IT_INPUT-REASON_REJ. and also set 'U' for update flag in the header structure,
    move 'U' to HEAD_INPUT_INX-UPDATEFLAG
    this will be best and easy method.
    for this, FM,you need to pass the below parameters:
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
    EXPORTING    
       salesdocument                   = old_order
           order_header_in             = head_input
            order_header_inx           = head_input_inx
          TABLES
            return                      = return
           item_in                     = it_input
           item_inx                    = ii_input_inx
           schedule_in                 = schedule_input
           schedule_inx                = schedule_inputx
    declare all these structure and internal tables as per documentation of the FM.
    hope this helps.let me know if you need more information.
    Thanks,
    Srini.

Maybe you are looking for

  • Untrusted Connection - when I try to add a security exception, NOTHING happens

    A game company Web site I go to all the time has just started giving me Untrusted Connection messages. I was able to visit it with no problems as recently as a few hours ago, but now I just get a page that says "You have asked Firefox to connect secu

  • Example Work Order Interface - Resource add

    Can anyone give me an example load script for wip_job_schedule_interface and wip_job_dtls_interface tables? The documentation has a couple of errors and if I could just see one example that works I think I could figure it out. I have an existing work

  • Forwarding agent to be able to be omitted at line item level in an OR

    HI Guys My clients requirement is that for a selected few orders he wants the forwarding agent to be removed at item level but he is ok if it appears at header level. Pls advice.... I tried removing it manually but then i get incomplete doc error....

  • Always On Top Internal Frames

    Dear Friends, How we set Always on Top option for Internal Frames. Or User can't Do anything without closing that dialog(frame). Thankx.

  • Virtual to physical

    Is there a way to convert a virtual machine that runs on OVS 2.1 to a physical machine? another option can be to convert it to ESX guest machine. Thanks Chovav