How to change Quantity in LQ02

Hi,
We have a requirement for transferring from blocked stock into Un-Res Stock. This is initiated from a bin to bin transfer transaction. So when the users are doing bin to bin transfers, the program should check the source storage type and if it is XXX then it should convert that material, batch, qty into un-res stock.
We thought we could use LQ02 BDC for this. But we couldn't find a way to select the partial quantity in LQ02. Any suggestions on how to achieve this?
Thanks
Venkat

This is how I'd do it...
1) Copy (program/includes and t-code) to e.g. ZLQ02 and make your custom changes in the code.
2) Next to the quantity field in details screen (where you can select items), I would put an editable field, with quantity to be posted. When you select the items and enter the quantity in this field, you would only need to substitute that quantity in the functions that do the actual posting, instead of full item quantity displayed/processed by the default.
So basically, I'd modify the program in a new ZLQ02, and put a new field on the item screen.
If you populate this filed it should be the quantity posted, if not it should post the total quantity as the LQ02 works by default.
That would be the most flexible solution IMO.

Similar Messages

  • Bapi parametrs to be passed in bapi_salesorder_change to change quantity

    Hi,
    how to change quantity of sales order by using bapi_salesorder_change.
    kindly Help us... to solve this Issue....(bapi parametrs to be passed in bapi_salesorder_change to change quantity)
    regards
    sathish Kumar.

    pass the updateflag = U
    pass the posnr,qty,mat in the item and pass the itemx= 'X' to these fileds.

  • How to change Service order quantity using BAPI/FM

    Hi All,
    Can any body tell me how to change the Service Order quantity (in IW32) using a FM or a BAPI.
    I tried using the BAPI: BAPI_ALM_ORDER_MAINTAIN but I am unable to change the quantity. May be I might be missing some parameter. If anybody has done this please let me know the parameters that needs to be passed or if there is any other way out.
    Points will be rewarded to useful answers!!
    Thanks,
    Susanth.

    Hi!
    I have used this BAPI.read the documentation properly and after calling this bapi call BAPI_TRANSACTION_COMMIT then only expected results com n get saved.
    for ex:
    call function 'BAPI_ALM_ORDER_MAINTAIN'
        tables
          it_methods              = itab_methods
          it_header               = itab_header
      IT_HEADER_UP            =
          it_header_srv           = itab_header_srv
      IT_HEADER_SRV_UP        =
          it_userstatus           = itab_userstatus
          it_partner              = itab_partner
      IT_PARTNER_UP           =
          it_operation            = itab_operation
      IT_OPERATION_UP         =
          it_relation             = itab_relation
      IT_RELATION_UP          =
          it_component            = itab_component
      IT_COMPONENT_UP         =
          it_objectlist           = itab_objectlist
      IT_OBJECTLIST_UP        =
          it_olist_relation       = itab_olist_relation
          it_text                 = itab_text
          it_text_lines           = it_text_lines
          it_srule                = itab_srule
      IT_SRULE_UP             =
          it_tasklists            = itab_tasklists
          extension_in            = itab_extension_in
          return                  = itab_return
          et_numbers              = itab_et_numbers
      call function 'BAPI_TRANSACTION_COMMIT'
       exporting
         wait          = 'X'
    IMPORTING
      RETURN        =
    reward points if helpful.

  • How to change Billing quantity

    Hi,
    business scenario:  the sales order is cross company sales, delivery use POD. when bill to customer, the billing quantity is POD quantity; when bill to receiving company, we want that the billing quantity is delivery quantity, is not POD quantity.
    question:
    1) how to change the billing quantity from POD quantity to delivery quantity?
    2) If use delivery quantity, how to make the delivery status to close?
    thanks your help.
    Cindylan

    Hi,
    May I know the reason for your requirement? I believe customer has to pay only for the material received and that data will be correct only in POD qty than delivery qty.  Otherwise, you can deactivate POD function through delivery item category.
    POD qty = Delivery qty +/- Difference qty.  Please try giving difference qty as zero.
    Regards,
    P Gomatheeswaran

  • How to change crystal report data field at runtime ?

    Hello everyone,
    I have a Crystal Report file ,which i am using to generate report for my windows form project .
    In that report i have a filed called as Quantity which data type is set as decimal, the requirement is like that the number of value those comes after decimal point that should be set according to the value which is given by the user at the run time .
    For eg: If user gives 1 at the run time then the report Qty field value set one value after decimal point. Like 12.1
    if user gives 2 then Qty field the value is 12.22 like tat  but user can give from zero to any number.. and if it is zero it should not show decimal
    Note: The main idea hear is how to change the filed in Crystal Report decimal point value by using code(or we say writing code we need to set manually as user input it will change)
    Can any body help me how to solve this issue .
    S.K Nayak

    I think you could probably make the field you see a formula field and take a parameter as the number of decimal places.
    totext converts a number to a string.
    totext({decimalField}, 2)
    That's 2 decimal places.
    You could probably substitute a {parameter} for that 2.
    If not then you could substitute an entire formula.
    To explore formulas:
    foreach (FormulaFieldDefinition f in rpt.DataDefinition.FormulaFields)
    MessageBox.Show(f.Name);
    // f.Text = your new formula
    Where rpt is an instantiated report.
    Or add another string field which you display in the column and do the calculation with the original decimal.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • How to change the color of specific row in ALV tree

    Hi,
    I m using method set_table_for_first_display of a class CL_GUI_ALV_TREE.
    The req is to change the color of specific row. Now can anybody tell me how to change the color of ALV tree. As in ALV tree and in this method 'set_table_for_first_display', there is no parameter IS_Layout.
    Pls suggest...

    hi
    hope this code will help you.
    Reward if help.
    REPORT zsharad_test1.
    TABLES: ekko.
    TYPE-POOLS: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    statu TYPE ekpo-statu,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    menge TYPE ekpo-menge,
    meins TYPE ekpo-meins,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    line_color(4) TYPE c, "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    gd_tab_group TYPE slis_t_sp_group_alv,
    gd_layout TYPE slis_layout_alv,
    gd_repid LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    PERFORM data_retrieval.
    PERFORM build_fieldcatalog.
    PERFORM build_layout.
    PERFORM display_alv_report.
    *& Form BUILD_FIELDCATALOG
    Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
    I.e. Field type may be required in-order for
    the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-datatype = 'CURR'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    ENDFORM. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    Build layout for ALV grid report
    FORM build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
    gd_layout-info_fieldname = 'LINE_COLOR'.
    gd_layout-totals_only = 'X'.
    gd_layout-f2code = 'DISP'. "Sets fcode for when double
    "click(press f2)
    gd_layout-zebra = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text = 'helllllo'.
    ENDFORM. " BUILD_LAYOUT
    *& Form DISPLAY_ALV_REPORT
    Display report using ALV grid
    FORM display_alv_report.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_special_groups = gd_tabgroup
    IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    is_variant = z_template
    TABLES
    t_outtab = it_ekko
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
    DATA: ld_color(1) TYPE c.
    SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
    UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekko.
    *Populate field with color attributes
    LOOP AT it_ekko INTO wa_ekko.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_ekko FROM wa_ekko.
    ENDLOOP.
    ENDFORM. " DATA_RETRIEVAL

  • How to change position for items in shopping cart

    Hello,
    I am creating shopping cart using flat file. But i am not able to change the position for items i.e. both items contain position as 0000000001.
    Following are the item details of shopping cart which is created through portal. (from tcode BBP_PD)
    Items:
    Pos Type Quantity Unit Ordered_Prod Description Gross price
    0000000001 1 EA keyboard 100,00
    0000000002 1 EA CPU 1.000,00
    Following are the item details of shopping cart which is created using flat file & BAPI BBP_PD_SC_CREATE.(from tcode BBP_PD)
    Items:
    Pos Type Quantity Unit Ordered_Prod Description Gross price
    0000000001 1 EA MONITOR 1,00
    0000000001 1 EA MONITOR 1,00
    Position is not getting changed for item 2 & only first record is getting uploaded 2 times. My code is creating Shopping cart number .
    Please tell me how to change position of each item.
    Thanks & regards,
    Edited by: Ketkee Bhale on Sep 14, 2011 3:58 PM

    Moderator message - Cross post locked
    Rob

  • How to change message v1 501 to be an error message ?

    Hi guys,
    When i  use VA01  creating a sales order reference to contact, if sales order's quantity is larger than contact's quantity, the system gives an warning message :
    Target qty of reference: 100 PC (total referenced: 101 PC)
    Message no. V1501
    I can't find V1 501 with tcode OVAH , anyone knows how to change Warning  to Error  for this message?
    Thanks.

    Dear wayne,
    Please refer to my post (3rd post):
    [Message Control - Warning/ Error|Well done Amit;
    Your Message V1 501, can't be customized to Error from Warning, in customizing. Instead, chnages needs be done in Standard Code, to achieve the same.
    Best Reagrds,
    Amit.
    Note: I think, following thread have the same relevance;
    [Message control|Re: error/warning message]

  • How to change billing date in S1 - cancellation billing document

    Dear Friends,
    Could you please tell How to change billing date in S1 - cancellation billing document which is even not released to accounting & in gray mode.
    Is it possible?
    Thanks in advance.
    Ranjan

    Dear,
    Thanks for asking exact problem.
    1. PGI in 2008
    2. F2 Billing date in 2003 ( By mistake by the user)
    3. S1 Billing date in 2008
    4. PGI reverse in 2008 & OBD deleted in 2008
    So reduced billing qty is shown in report in 2008 because of S1 Billing date in 2008,
    Billing qty  is not matching with the actual PGI quantity.
    So here if the cancellation billing document S1 could be changed for billing date in 2008, then you could balance it
    Now my issue is how to balance it.
    hope you find it it very interesting
    Awaiting your response.
    Ranjan

  • How to change data in an inbound delivery

    Hi,
    I want to change the following data in an Inbound delivery:
    Challan No (LIKP-LIFEX, LIKP-VERUR)
    Date (LIKP-LFDAT, LIKP-ERDAT)
    Quantity (LFIMG)
    I have gone through the thread
    how to change delivery date (LFDAT) in a inbound delivery
    But still, it says only about changing the date.
    Please provide solution so as to change Challan No and Quantity.

    LIFEX is in HEADER_DATA-EXTDELV_NO
    If you really want to get the any other field in LIKP, you can use the BADI SMOD_V50B0001 method EXIT_SAPLV50I_009.
    You will need to put your additional fields in the EXTENSION1. Then you can move them to the correct fields in the tables.

  • How to change the Display Pattern for Decimal Fields dynamically

    hi all,
    Can any one help me how to change the display pattern for decimal fields dynamically???
    Currently I am using z,zzz,zzz,zz9.999 Display pattern for Quantity Field. If the value is blank it is displaying as 0.000 on the Screen. But I don't want this to be printed.
    Please help me how to solve this ASAP.
    Thanks,
    Prabhu

    Hi,
    Alternatively you can handle it in the context.
    In the context area, click on the quantity. In the bottom, click on the conditions tab, and put a condition
    <quan field> NE initial.
    So the field will not be printed if there is no value.
    Regards,
    Vidya Chowdhary A.

  • Issue while updating(Changing) quantity on line at quick sales order form

    Hi,
    I am facing a issue while changing quantity ordered on the order line in quick sales order form. (R12.1.3)
    Although the same logic works exactly as required in 11.5.9.
    There is a custom logic, post booking line status is Awaiting Shipping.
    Now when quantity is changed +(Saved), the status changes to a custom state but at the same time a new row is created with the same line id but different reservation id in the MTL_RESERVATIONS.
    The quantity here is the difference between the original quantity and the new entered quantity.
    And post completion of the custom logic the original row is updated, but being there a additional row the quantity reserved at the shipping tab comes wrong.
    Our requirement is of update which is happening but not the additional insert which is going into MTL_RESERVATIONS.
    The logic is perfect in 11.5.9 and no additional insert is being made.
    Kindly help and give some ideas for the possible reason the issue.
    Please ask for more information if required.
    Thanks,
    Vishal

    Hi Mahendra,
    I have gone through the note id that you have given. sorry to say that, that is refering to diffrent issue.
    Actually what i did is, At form header level, I have hide the fileds using the folder options. once after changes I have closed the form and re-opened it. by that time I can see that Button names got changed in bottom of the "Quick sales order form". Not sure how it become changed. there five buttons over the form, only two button names got changed.
    Kindly suggest any other options.

  • Production order change (quantity) doubt.

    Hi pp experts,
        I have a problem, while changing order quantity in the production order through Coois or co02, i am not getting the changed quantity. how to display that.
    for ex,
    The order qty is 10 Nos , through Coois i change this qty to 4, i want to display the order qty 10 with change qty 4. give some soln.
    Thanks,
    Gowri

    Gowrisankar,
    Check if the refresh button is there. Click that. If not there then you have to come out and come back in.
    Rgds
    Ram

  • I want to change Quantity in the Billing Document.

    Hi,
    *+Order - related Billing+*
    I creat the Service sales order with 100 Quantity.
    While i am creating billing document System by defalt taking 100 Quantity.
    But  i want Bill Only 50 Quantity.
    Who to change the Quantity in the Billing Document.The quantity feild is gray mode.
    How to open quantity feied in the Billing document
    Pls Guide me
    Thanks
    Sriram

    Hi Sriram,
    Go to VTFA .Code which is the copying control.
    Select your appropriate entry(Sales order and billing document).
    Click on item.
    Choose the pos./neg. quantity as "+".Now it will allow you partial quantity.
    Regards,
    Mohan.

  • How to chang message "W" to "E"

    Dear all,
    During creating Delivery for sales order, I am facing the following waring message.
    Delivery quantity must be entered for the item
    Message no. VL361
    Diagnosis
    The delivery quantity must be greater than zero, as defined in Customizing for the item category of this delivery item.
    Procedure
    Enter a quantity greater than zero in delivery processing.
    Should this error message appear when you are confirming a WMS transfer order that you want to close with a quantity of zero, it could be that the delivery item does not allow a quantity of zero. If necessary, ask the person responsible for Customizing if this is intentional. If so, you cannot confirm the transfer order with a quantity of zero.
    I hope the message is eror.
    How to chang message "W" to "E"?
    colin

    Hi
    SAP has given some messages which can be converted from waring to error and vice versa thro customization
    All that SD related messages which is offered by standard SAP you can find in OVAH and OVM1
    your message VL361  will not be there in OVM1 which means that standard SAP has hardcoded this message type thro its program and not available for customization
    Go to SE91 and do the following:-
    input VL in Message Class
    input 361 in Number and execute.
    select the message number and click on "Where-Used List" (press Cntrl + Shift + F3)
    Deselect all boxes excepting "Programs"
    List of programs will be displayed where this error message is used
    Double click on the description in right side of the screen
    You can see the codings written for the error message as W361 which may be changed to E361.
    This is a modification of the codings of the standard program which standard SAP does not recommand and if still you want to go with it it needs to be done thro ABAPer which will ask for developer access key etc
    Regards
    Raja

Maybe you are looking for

  • Finding Gaps In Date Range

    I was recently asked to help create a query at my company to search for date gaps in employment status history. My table data looks similar to this employee_id employment_status beg_date end_date 1               Active               1990-01-01       

  • Po line items

    hi friends , i taken internal table for header data  and item data for single table. what code write it in recording for line item and header item.

  • Question mark folder appears at startup. Impending doom?

    Like it says, it flicks on for half a second then starts up OK. I have used some utilities to tidy things up- Onyx and Applejack (I expect there's some redundancy there). These should have fixed all permissions, etc. However, I still get this, and am

  • HTTP BC randomly hangs on reply action

    I have a very simple test case where a BPEL process, providing a simple 'echo' service, is accessible trough a SOAP/http BC. However, the soap binding component regulary hangs on sending the reply back to the caller. This might occur after 9 messages

  • Cannot move my wifes Apple ID from MobileMe to iCloud

    Hi Can anyone please help me? I have moved my AppleID to iCloud successfully, but my wifes email address and AppleID was a secondary address on my family MobileMe account. When I try and sign in to the iCloud as her, a pop up box says "To sign in, mo