Update shipment using SHPMNT03

Hi All,
I have been looking for some help in the Logistics IDocs area.
The current inbound interface utilizes the following to perform the creation, pick (SDPICK), pack (SDPACK), status update and PGI functions:
IDOC Type: SHPMNT03
Msg Type: SHPMNT
Msg Function: SHP
Function Module: IDOC_INPUT_SHPMNT
In future, shipments will be created by this third party transportation system that the client uses. So we need this interface to do everything else but create, i.e., pick, pack, status update and PGI functions.
Is there a way to use SHPMNT03 Idoc to update shipments instead of creating shipments? If yes, what needs to be done? We do not want to change the Idoc type because its being used by a number of warehouses.
Thanks,
Jay Viswanathan.

Hi,
In the given function IDOC_INPUT_SHPMNT,search for function which processes shipment (SD_SHIPMENT_PROCESS).This function internal can identify activities as create,update,delete .If before this functional call you can check IDoc data in exit (EXIT_SAPLV55K_021 )& modify it whenever you get create activity to Update activity ,it should solve your problem.
Not sure whether this is what you were looking for .
Thanks.
Mark points if helpful.

Similar Messages

  • Update shipments using SHPMNT03

    Hi All,
    I have been looking for some help in the Logistics IDocs area.
    The current inbound interface utilizes the following to perform the creation, pick (SDPICK), pack (SDPACK), status update and PGI functions:
    IDOC Type: SHPMNT03
    Msg Type: SHPMNT
    Msg Function: SHP
    Function Module: IDOC_INPUT_SHPMNT
    In future, shipments will be created by this third party transportation system that the client uses. So we need this interface to do everything else but create, i.e., pick, pack, status update and PGI functions.
    Is there a way to use SHPMNT03 Idoc to update shipments instead of creating shipments? If yes, what needs to be done? We do not want to change the Idoc type because its being used by a number of warehouses.
    Thanks,
    Jay Viswanathan.

    Hi,
    In the given function IDOC_INPUT_SHPMNT,search for function which processes shipment (SD_SHIPMENT_PROCESS).This function internal can identify activities as create,update,delete .If before this functional call you can check IDoc data in exit (EXIT_SAPLV55K_021 )& modify it whenever you get create activity to Update activity ,it should solve your problem.
    Not sure whether this is what you were looking for .
    Thanks.
    Mark points if helpful.

  • Single item shipment using multiple trucks

    Hi Friends,
    I have a typical requirement where my client want to ship one of their product ( A Huge item, which they dismantle it for shipment) using multiple trucks. How we can handle this situation using SAP LES module? They can hire multiple trucks to ship this item by road to the destination using multiple service providers. So the service cost also need to be settled for all these service providers.  Will SAP allow to split a single item through multiple shipments? I really appreciate a solution for this.
    Thanks

    There are a couple of recommended methods for using more than one iPod on a single computer. Method one is to have individual Mac or Windows user accounts which by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. Each iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists.
    Method two is to set your preferences so that either one or all iPods get updated with only certain playlists within one library. Have a look at this article and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer
    Another option when using a single library is to set the iPods to manual update: Managing content manually on iPod
    Choosing the update option "automatically update selected playlists only" (called Sync Music - Selected playlists in iTunes 7) allows you to create a playlist specifically for each iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used by the other iPods. Make your playlist a Smart playlist and limit the size to just below the advertised capacity of your iPod ( for example, around 3700MB for a 4GB or 1800MB for a 2GB Mini or Nano). You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes

  • Update shipment partner address E1ADRM4 & BADI_LE_SHIPMENT

    Hi,
    We want to update an existing shipment with updated detailed address information from an incoming Idoc from the forwarding agent. The idea is to replace the generic phone, email, name etc. with the specific clerk handling this shipment.
    We are on release 6.02, so OSS note 982041 is in. Still, I can not get the data on the E1ADRM4 segment to do any updates.
    As an alternative plan, I am looking into BADI_LE_SHIPMENT. By setting a breakpoint in FM SD_PARTNER_ADDRESSES_TO_DB, I have studied how a manual change in VT02N affects the address update. When the shipment is created, the adress number from the Vendor master is copied to the shipment. When I change the address, a new 90* number is created. I replicated the update flag (UPDKZ) in both VBPA and VBADR level, but to no avail. This is the current code. A new 90* address number is assigned, but it does not contain any address data ...
    method if_ex_badi_le_shipment~at_save.
      data : ld_e_mail(70) type c.
      data : ld_name_co(40) type c.
      data : ld_telephone1(30) type c.
      data : ls_vbpa type vbpavb.
      data : ls_vbadr type sadrvb.
      clear : ld_e_mail, ld_name_co , ld_telephone1.
    import from memory id. EXPORT done in edi program zxtrku09
      import e_mail to ld_e_mail from memory id 'Z_E1ADRM4'.
      import name_co to ld_name_co from memory id 'Z_E1ADRM4'.
      import telephone1 to ld_telephone1 from memory id 'Z_E1ADRM4'.
    ld_e_mail = 'Email'.
    ld_name_co = 'Ole Elmose'.
    ld_telephone1 = '555.555 1111'.
      if not ( ld_e_mail is initial
      and ld_name_co is initial
      and ld_telephone1 is initial ).
        cha_shipments_at_save-old_vbpa[] = im_shipments_at_save-old_vbpa[].
        cha_shipments_at_save-new_vbpa[] = im_shipments_at_save-new_vbpa[].
        cha_shipments_at_save-old_sadr[] = im_shipments_at_save-old_sadr[].
        cha_shipments_at_save-new_sadr[] = im_shipments_at_save-new_sadr[].
    Get shipment partner data
        read table cha_shipments_at_save-new_vbpa
        with key parvw = 'SP'
        posnr = '000000'
        into ls_vbpa.
    Get shipment address data
        read table cha_shipments_at_save-new_sadr
        index 1
        into ls_vbadr.
        case ls_vbpa-adrda.
          when 'D'.
    First change from Vendor master adress
            ls_vbadr-telf1 = ld_telephone1.
            ls_vbadr-email_addr = ld_e_mail.
            ls_vbadr-updkz = 'I'.
           ls_vbadr-addr_renumbered = 'X'.
            ls_vbadr-adrnr = 'SP  $00000'.
            append ls_vbadr to cha_shipments_at_save-new_sadr.
            loop at cha_shipments_at_save-new_vbpa
            into ls_vbpa.
              ls_vbpa-updkz = 'U'.
              ls_vbpa-adrnr = 'SP  $00000'.
              ls_vbpa-adrda = 'E'.
              modify cha_shipments_at_save-new_vbpa
              from ls_vbpa index sy-tabix.
            endloop.
          when 'E'.
    Change an already changed (90*) address number
            ls_vbadr-telf1 = ld_telephone1.
            ls_vbadr-email_addr = ld_e_mail.
            ls_vbadr-updkz = 'U'.
            modify cha_shipments_at_save-new_sadr
            from ls_vbadr index 1.
            ls_vbpa-updkz = 'U'.
            modify cha_shipments_at_save-new_vbpa
            from ls_vbpa index 1.
          when others.
        endcase.
      endif.
    endmethod.                    "if_ex_badi_le_shipment~before_update
    Anyone who have succeeded in updating shipment address either from Idoc or BADI ?

    Hi,
    Yes and no.
    I tried hard with several alternatives, but never got the partner update to work. The workaround was to write the updated information in a new dedicated shipment text field in ZXTRUKU11. Specific qualifiers are used if just part of the updated address is avaialble. The E-mail is checked as in the Vendor master.
    Then this text is read in similar way in ZXTRKU02 for the EDI output.
    CLEAR ls_idoc_data.  CLEAR gs_emaildata.
    gs_emaildata-type = 'INT'. " Address type is E-mail
    LOOP AT all_idoc_data INTO ls_idoc_data
    WHERE segnam = 'E1ADRM4'.
      gd_tabix = sy-tabix.
      MOVE ls_idoc_data-sdata TO str_e1adrm4.
      CHECK str_e1adrm4-partner_q = 'SP'. " Forwarding agent
    * Validate mail formatting
      IF NOT str_e1adrm4-e_mail IS INITIAL.
        MOVE str_e1adrm4-e_mail TO gs_emaildata-address.
    * Use same validation as in partner maintenace
        CALL FUNCTION 'SX_INTERNET_ADDRESS_TO_NORMAL'
          EXPORTING
            address_unstruct    = gs_emaildata
          EXCEPTIONS
            error_address_type  = 1
            error_address       = 2
            error_group_address = 3
            OTHERS              = 4.
        IF NOT sy-subrc IS INITIAL.
          CLEAR str_e1adrm4-e_mail.
          MOVE str_e1adrm4 TO ls_idoc_data-sdata.
          MODIFY all_idoc_data FROM ls_idoc_data INDEX gd_tabix .
        ENDIF.
      ENDIF.
    * Save updated address data in text object ( Ignore existing)
      CLEAR ls_lines.  CLEAR lt_lines.
    * Add name to text ID with qualifier QN
      IF NOT str_e1adrm4-name_text IS INITIAL.
        CONCATENATE gc_qual_name   " Qualifier for name: QN:
        str_e1adrm4-name_text
        INTO  ls_lines-tdline
        SEPARATED BY space.
        ls_lines-tdformat = gc_star_format.
        APPEND ls_lines TO lt_lines.
        CLEAR ls_lines.
      ENDIF.
    * Add Telephone to text ID with qualifier QT
      IF NOT str_e1adrm4-telephone1 IS INITIAL.
        CONCATENATE gc_qual_phone   " Qualifier for telephone: QT:
        str_e1adrm4-telephone1
        INTO  ls_lines-tdline
        SEPARATED BY space.
        ls_lines-tdformat = gc_star_format.
        APPEND ls_lines TO lt_lines.
        CLEAR ls_lines.
      ENDIF.
    * Add E-mail to text ID with qualifier QM
      IF NOT str_e1adrm4-e_mail IS INITIAL.
        CONCATENATE gc_qual_email   " Qualifier for mail: QM:
        str_e1adrm4-e_mail INTO  ls_lines-tdline
        SEPARATED BY space.
        ls_lines-tdformat = gc_star_format.
        APPEND ls_lines TO lt_lines.
        CLEAR ls_lines.
      ENDIF.
      CLEAR  ls_header.
    * Get shipment number
      READ TABLE all_idoc_data INTO ls_idoc_data
                          WITH KEY segnam = 'E1EDT20'.
      MOVE ls_idoc_data-sdata TO str_e1edt20.
      ls_header-tdobject  = 'VTTK'.              " Shipment
      ls_header-tdname    = str_e1edt20-tknum.   " Shipment #
      ls_header-tdid      = gc_address_tdid.     " Z016 - Text for DSP address details
      ls_header-tdspras   = 'EN'.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          client          = sy-mandt
          header          = ls_header
          insert          = 'X'
          savemode_direct = 'X'
        TABLES
          lines           = lt_lines
        EXCEPTIONS
          id              = 1
          language        = 2
          name            = 3
          object          = 4
          OTHERS          = 5.
    ENDLOOP.
    - Sorry for the mess, but can't get any markup to work ....

  • Regarding Updating Shipment Header Details in VT02N tcode

    Hi all,
    I have created a dialog program, inwhich iam populating shipment related details.
    1st Screen: Selection screen fields:
    billing Doc
    Billing date
    2nd Screen: Based on Billing Document number and date, i have to fetch Shipment details using Table Control like:
    shipment number,        Output only
    Forwarding Agent,      input/Output both -
    editable
    Shipment start Date,    input/Output both -
    editable
    Container id.                input/Output both -
    editable
    and i have created a button as "Update VT02N" on second screen.
    When we choose Columns in table control and click on "Update VT02N", then it should trigger VT02N transaction and update the shipment details with following fields:
    1. Forwarding agent
    2. Container id
    3. Shipment start Date.
    So i waht to know any BAPI available to update Shipment Header details in VT02N tcode.
    I have tried: BAPI_SHIPMENT_CHANGE -
    NOT WORKING PROPERLY.
                        SD_SHIPMENT_SAVE -
    NOT  WORKING.
    IF ANY BODY HAS SOME SOLUTION, PL SUGGEST WITH STEPS.
    HELPFUL ANSWERS -
    BETTER POINTS...
    Regards,
    Vamsy

    Hi,
    Have you called the BAPI_TRANSACTION_COMMIT after executing BAPI_SHIPMENT_CHANGE , even then if it is not working
    you can check the FM  SD_SHIPMENT_HEADER_CHANGE.
    Thanks.

  • Function Module to Update Shipment Cost Document through Idoc.....?

    Is there any EDI function module which can Update Shipment Cost Document through Idoc.....

    Hi Vijendra,
    Welcome to SDN.
    You can use FM IDOC_INPUT_SHPMNT with message SHPMNT and IDoc type SHPMNT01/02/03/04/05 to update shipment document.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if very helpful.

  • How to change shipment using Invoice no??

    Hi experts,
    I have to progrmatically change/update "Bill of lading" field in the shipment using data in the excel file.
    Excel file will contain invoice numbers and data for Bill of lading.
    Please provide me the solution or name of function module....
    Thanks
    Sameer

    Hii Sameer
    I guess you have to connect the tables (shipment & billing) to do the same.
    You can connect billing to delivery by table VBFA and then from delivery to shipping again by the same table.
    By this you can connect billing directly to shipment and do the changes.
    You need to take help of some ABAPer to do the same.
    Thanks & Regards
    Gaurav Manocha

  • Update shipment

    hi experts,
    Can you please tell me how to add new items in a shipment?  is there any bapi for that?
    thanks,
    vitish

    hi,
    You can create deliveries within a shipment, using the Create Outbound Delivery transaction (VL01N) and you can change deliveries that are already packed in a shipment, using the Change Outbound Delivery transaction (VL02N).
    After you change a delivery in a shipment, the unassigned delivery tree is refreshed for the processed delivery, so that all updates and any new items are reflected in the tree.
    You can change delivery items that are packed in containers in a shipment. Since transaction VL02N is used for that, you can add new items to the delivery at the same time. It is recognized that these items will be added to the shipment without being packed into a container. RLM Packing does not handle such items. On return to the packing program, the items will be displayed in the hierarchy, but cannot be moved. To pack the items in a container, you must call the Shipment Change transaction, using the functions described below.
    Changing shipments
    RLM Packing allows you to call the standard Sales and Distribution (SD) Shipment Create transaction (see the path below), or change transaction (see below).
    When control returns from the shipment change transaction, the RLM Packing hierarchy will be refreshed in the area of the shipment affected.
    Process Flow
    To create a delivery, you create it in: Logistics à Sales and Distribution à Shipping and Transportation à Outbound Delivery à Create à Single Document à With Reference to Sales Order. The Create Outbound Delivery with Order Reference screen is used to do that.
    To change a delivery, you use: Logistics à Sales and Distribution à Shipping and Transportation à Outbound Delivery à Change à Single Document. On the subsequent screen, you can enter the ID of the out-bound delivery.
    regards,
    Siddharth

  • Loading complex report data into a direct update DSO using APD

    Dear All,
    Recently, I had a requirement to download the report data into a direct update DSO using an APD. I was able to perform this easily when the report was simple i.e it has few rows and columns. But I faced problems If the report is a complex one. Summing up, I would like to know how to handle the scenarios in each of the following cases:
    1.   How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
          key fields of DSO and the remaining to the data fields? Correct me.
    2.   What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
          system and then include these in the DSO data fields to accommodate the extracted data ?
    3.   How do I handle the Free Characteristics and Filters ?
    4.  Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
         use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
         shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    I would appreciate if someone can answer my questions clearly.
    Regards,
    D. Srinivas Rao

    Hi ,
    PFB the answers.
    1. How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
    key fields of DSO and the remaining to the data fields? Correct me.
    --- Yes , you can use the elements in the ROWS in the Key fields,  but in case you get two records with same value in the ROWS element the data load will fail. So you basically need to have one value that would be different for each record.
    2. What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
    system and then include these in the DSO data fields to accommodate the extracted data ?
    Yes you would need to create new Infoobjects for the CKF's and RKF's in the Report and include them in your DSO.
    3. How do I handle the Free Characteristics and Filters ?
    The default filters work in the same way as when you yourself execute the reoprt. But you cannot use the Free characterisitics in the APD. only the ROWS and cloumns element which are in default layout can be used.
    4. Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
    use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
    shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    --- Yes you would need to create 10 different APD's. Its very simple to create, you can copy an APD. but it would be for sure a maintance issue. you would have to maintain 10 APD's.
    Please revert in case of any further queries.

  • How to send an updated list using batch job

    Hi All,
      The program displays data on the screen, if the data looks ok, then there is an option to update.
    When I run update, the program submits a batch job and the basic list gets updated, but my batch job is still sending the data on the screen. how can i send the updated list using batch job.
      Ex: output of the program
                    1         2
           there is an update button on the screen, when i press update button, my program submits in batch job, the above list becomes
                    1        2
                    3        4
    but when i check the spool, it shows the o/p as         1           2 ..it is not sending the updated list.
    Please suggest me how to send the updated data
    Thanks,
    Kumar

    Hi Krishna,
      I have added a button on the alv list. when i press update button, my program updates the list, then submits the batch job. I am attaching the sample test program i am trying with, please suggest me how can i get the updated list.
    *& Report  ZTESTSSSSS
    REPORT  ZTESTSSSSS.
    DATA: gt_fieldcat TYPE slis_fieldcat_alv,
          lt_fieldcat type slis_t_fieldcat_alv,
          gt_sort     TYPE slis_t_sortinfo_alv,
          g_repid     LIKE sy-repid,
          gt_layout   TYPE slis_layout_alv.
    start-of-selection.
      lt_return-type = 'S'.
      lt_return-message = 'test message'.
      append lt_return.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'TYPE'.
      gt_fieldcat-outputlen = '3'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Type'.
      gt_fieldcat-seltext_m  =  'Type'.
      gt_fieldcat-seltext_s  =  'Type'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'MESSAGE'.
      gt_fieldcat-outputlen = '15'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Message'.
      gt_fieldcat-seltext_m  =  'Message'.
      gt_fieldcat-seltext_s  =  'Message'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM       = sy-repid
          I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_FIELDCAT              = lt_fieldcat
        TABLES
          T_OUTTAB                 = lt_return
        EXCEPTIONS
          PROGRAM_ERROR            = 1
          OTHERS                   = 2.
    *&      Form  set_pf_status
          text
         -->RT_EXTAB   text
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD'.
    ENDFORM. "Set_pf_status
    *&      Form  user_command
          text
         -->R_UCOMM      text
         -->RS_SELFIELD  text
    FORM user_command USING r_ucomm     LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      DATA: li_count TYPE I.
      IF r_ucomm EQ 'UPD'.
    Adding another message
        lt_return-type = 'S'.
        lt_return-message = 'Another test message'.
        APPEND lt_return.
        rs_selfield-refresh = 'X'.
        rs_selfield-col_stable = 'X'.
        rs_selfield-row_stable = 'X'.
        l_upd = 'X'.
       LOOP AT lt_return.
         WRITE: / lt_return-type, lt_return-message.
       ENDLOOP.
        IF sy-batch IS INITIAL.
          l_upd = 'X'.
    Open the Job
          CALL FUNCTION 'JOB_OPEN'
            EXPORTING
              jobname          = w_name
            IMPORTING
              jobcount         = w_number
            EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
          IF sy-subrc = 0.
            SUBMIT ('ZTESTSSSSS') VIA JOB w_name NUMBER w_number
                    AND RETURN
                    WITH p_recnnr = p_recnnr.
            CALL FUNCTION 'JOB_CLOSE'
              EXPORTING
                jobcount             = w_number
                jobname              = w_name
                strtimmed            = 'X'
              EXCEPTIONS
                cant_start_immediate = 1
                invalid_startdate    = 2
                jobname_missing      = 3
                job_close_failed     = 4
                job_nosteps          = 5
                job_notex            = 6
                lock_failed          = 7
                OTHERS               = 8.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.  "User_command
    Thanks,
    Kumar

  • TS1702 Changed my email (also Apple ID) and have a new iPad, now I can't update or use any of the apps that I purchased on my old iPad because it wants to use my old email (ID) how do I fix this. I have spent a lot of money of these apps!

    I changed my email address, which in turn, changed my Apple ID. I changed the settings of my iPad and things were fine for me, but my husband shares a few apps with me and isn't able to update or use any of those apps now. The change doesn't work for him. 
    Now, I got a new iPad mini and I'm having the same problem. I have purchased many apps which I can't use now. I have a lot of work documents saved to them too.
    Is there anyway that both husband and I can change the setting so we can access the apps we have already purchased?

    You have to be signed into the correct Apple ID in order to download those purchases again for free.
    Settings>iTunes & App Store. Tap the old ID and sign out, then sign in with the new/changed ID.

  • Add fields to maintenance view and update then using events

    Hi experts:
      I've created a table with 4 fields, one of them is userid. Also, there is a maintenance view to add new entries.
      I want to display user name when typing userid using events (1 or 21). I know how to do it if username is one of the fields of the table, but there is a requirement to not store username in the table, just userid.
    My question is: is possible to add a field into the maintenance view and update it using events but not store the value in DB?.
    Thanks in advance for your help.
    Regards,
    Carlos.

    In the save event just clear the entries of the field(user name) in the internal table.

  • How to add a new record in updatable report using apex_item

    Hi,
    i am using an updatable report using the following select
    select
    aPEX_ITEM.POPUP_FROM_QUERY(2,emp_code,
    ' SELECT emp_surname, emp_code FROM hrm_employee ' ,null,null,null,null,null,'onchange="f_set_multi_items_tabular(this.value ''#ROWNUM#'''
    || ')"',null,null,null) PF_No,
    apex_item.text (32,
    NULL,
    80,
    100,
    'style="width:190px" ',
    'f11_' || '#ROWNUM#'
    ) Name,
    " REST_DATE",
    "REMARKS",
    from "roster"
    when i click on the button add row , only the column rest_date and the remarks are enable.
    why is the apex_item.text and apex_item_popup_from_query is disable ? and how i can make it enable.
    thanks
    regards
    jerry

    I could see that you are using the addRow() function to generate new blank row.
    I guess, this function(used by the builtin tabular form s) , identifies editable columns when they are marked so at the report column attributes.
    When you use apex_item API, it expects the columns to be standard report column and hence render the new rows as such.
    Some one from the development team might be able to give a better answer on that.
    As for avoiding this issue
    <li>One method , would be to define the columns editable(and display types) in report column attributes.
    <li> You can duplicate the last row using jQuery( *$('tr.highlight-row:last).after( $('tr.highlight-row:last).clone() )* ) and removing the field values, but events(for example datepicker) would remain attached to the original row , so it isn't very straightforward either.
    <li>If you want to use apex_item you would have to use a pseudo union to DUAL for generating a blank row and re-render the report either by a page load or a Dynamic Action. Sounds like a nice idea for a plugin.
    Now , if you want to add rows multiple times without saving them, then you would need to store the values in a collection at load and update the collection before adding the row.

  • Error in updating pricing using BAPI_QUOTATION_CREATEFROMDATA2

    Hi,
        I am using the BAPI function module BAPI_QUOTATION_CREATEFROMDATA2. I am calling BAPI_TRANSACTION_COMMIT subsequently
    I need to change an existing pricing condition ZMLT which is
    automatically determined by the config while creating a sales quotation
    Also I need to add ZFR1 and ZFR2 which are 2 freight condition types
    (Condition Class = 'F')
    Case 1
    If I set the LOGIC-SWITCH-COND_HANDL = 'X', then I can correctly update
    ZMLT using CONDITIONS_IN parameter, but I can't update ZFR1 and ZFR2
    since they are freight condition types (as per Note 593246)
    Case 2
    If I set LOGIC-SWITCH-COND_HANDL = ' ', then I can correctly update
    ZFR1 and ZFR2 freight condition types using the parameters
    CONDITIONS_IN and CONDITIONS_INX. But when I try to update ZMLT, it
    deactivates the existing line in the pricing and adds a new line with
    same condition type ZMLT. Why does it do this...?
    Here are the parameters that I am using as per Note 593246, Point 4
    CONDITIONS_IN-ITM_NUMBER = '000010'
    CONDITIONS_IN-COND_COUNT = '01'
    CONDITIONS_IN-COND_TYPE  = 'ZMLT'
    CONDITIONS_IN-COND_VALUE = 12.00
    CONDITIONS_IN-CURRENCY = ' '   (This is a percentage)
    CONDITIONS_INX-ITM_NUMBER = '000010'
    CONDITIONS_INX-COND_COUNT = '01'
    CONDITIONS_INX-COND_TYPE  = 'ZMLT'
    CONDITIONS_INX-UPDATEFLAG = 'U'
    CONDITIONS_INX-COND_VALUE = 'X'
    CONDITIONS_INX-CURRENCY = 'X'
       Please advise on this. Although the Total Value in the pricing is
    correctly updated, why does it deactivate one line and insert a new one
    for the same condition type.
       Please note that my requirement is to add condition types ZFR1, ZFR2
    and update ZMLT
    Thanks and Regards,
    Aditya Palekar

    Hi!
    You have very well prepared this example!
    ...and you analyzed it completely, this behavior is just the restriction you have to live with.
    Old style condition handling couldn't change values, so workaround with adding new line and inactive existing line was done. New condition handling has restrictions, too - so no freights.
    Why does it do this... it's a buggy feature or whatever you would like to call it. At least it was done by purpose, what internal reasons lead to this, I can't say.
    One workaround would be possible for you: create quotation with cond_handl = A, change afterwards with cond_handl = B.
    If you start with A = X and B = space or A = space and B = X should be the same in the end.
    Regards,
    Christian

  • Error while updating data using session and call transaction method

    Hi all,
        i have to update data using MM01 transaction from flat file to database.i have used both session method and call transaction method to do that.in both the methods data has been transferred from internal tables to screens but while updating the data that is by clicking the ok-code at the end of the transaction iam getting a dialogue box stating
       SAP EXPRESS DOCUMENT "UPDATE WAS TERMINATED" RECEIVED FROM AUTHOR "SAP".
      please tell whether the problem lies and solution for that.
                                       thanks and regards.

    hi,
    check your recording.check whether u saved your material no in recording or not.
    once again record the transacton mm01.
           MATNR LIKE RMMG1-MATNR,
           MBRSH LIKE RMMG1-MBRSH,
           MTART LIKE RMMG1-MTART,
           MAKTX LIKE MAKT-MAKTX,
           MEINS LIKE MARA-MEINS,
           MATKL LIKE MARA-MATKL,
           BISMT LIKE MARA-BISMT,
           EXTWG LIKE MARA-EXTWG,
    these are the fields which u have to take in internal table.
    this is the record which i took in my flatfile.use filetype as asc and hasfieldseperator as 'X'.
    SUDHU-6     R     ROH     MATSUDHU     "     001     7890     AA
    i did the same.but i didn't get any error.

Maybe you are looking for