URGENT: Updating FISTL field using BAPI_PO_CHANGE

HI Friends,
I am about to update the field FISTL and GEBER in EKKN .
I am using BAPI_PO_CHANGE to update those fields . I have tried passing the fields to the table
POITEM  and POACCOUNT in BAPI.
i have also given the values to POITEMX  and POACCOUNTX tables .
I have given the BAPI_COMMIT_TRANSACTION also . i have given wait time also . Even then the value is not updated in EKKN table .
What could be reason for value not getting updated .
Is the table to which i am passing in BAPI is ok?
Please help me in this issue , its urgent.
Reward is sure

Hi Gokul,
Try 'BAPI_PO_CREATE1' and see if you can achieve the result.
*& Report  YDM_PO_CREATE                                               *
REPORT  ydm_po_create.
*-- Input File Declaration
TYPES: BEGIN OF ty_input_file,
       column1 TYPE char50,
       column2 TYPE char50,
       column3 TYPE char50,
       column4 TYPE char50,
       column5 TYPE char50,
       column6 TYPE char50,
       column7 TYPE char50,
       column8 TYPE char50,
       column9 TYPE char50,
       column10 TYPE char50,
       column11 TYPE char50,
       column12 TYPE char50,
       column13 TYPE char50,
       column14 TYPE char50,
       column15 TYPE char50,
       column16 TYPE char50,
       column17 TYPE char50,
       column18 TYPE char50,
END OF ty_input_file.
DATA: i_input_file  TYPE STANDARD TABLE OF ty_input_file,
      wa_input_file TYPE ty_input_file.
CONSTANTS: c_path     TYPE char20 VALUE 'C:\',
           c_mask     TYPE char9  VALUE ',*.*,*.*.',
           c_mode     TYPE char1  VALUE 'O',
           c_filetype TYPE char10 VALUE 'ASC',
           c_x        TYPE char01 VALUE 'X'.
PARAMETERS : p_fname   LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
*-- Browse Presentation Server
  PERFORM f4_presentation_file.
START-OF-SELECTION..
*-- Read presentation server file
  PERFORM f1003_upload_file.
  IF NOT i_input_file[] IS INITIAL.
    PERFORM split_data.
  ENDIF.
*&                  Form  f4_presentation_file
*&                F4 Help for presentation server
FORM f4_presentation_file .
  CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
      def_path         = c_path
      mask             = c_mask
      mode             = c_mode
      title            = text-001
    IMPORTING
      filename         = p_fname
    EXCEPTIONS
      inv_winsys       = 1
      no_batch         = 2
      selection_cancel = 3
      selection_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.
ENDFORM.                    " f4_presentation_file
*&                      Form  f1003_upload_file
*&                         Upload File
FORM f1003_upload_file .
  DATA: lcl_filename TYPE string.
  lcl_filename = p_fname.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = lcl_filename
      filetype                = c_filetype
      has_field_separator     = c_x
    TABLES
      data_tab                = i_input_file
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      OTHERS                  = 17.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    EXIT.
  ENDIF.
ENDFORM.                    " f1003_upload_file
*&      Form  split_data
      Collect data for creating Purchase Order
FORM split_data .
  DATA: i_poitem        TYPE STANDARD TABLE OF bapimepoitem,
        i_poitemx       TYPE STANDARD TABLE OF bapimepoitemx,
        i_poitem_sch    TYPE STANDARD TABLE OF bapimeposchedule,
        i_poitem_schx   TYPE STANDARD TABLE OF bapimeposchedulx,
        i_acct_***      TYPE STANDARD TABLE OF bapimepoaccount,
        i_acct_assx     TYPE STANDARD TABLE OF bapimepoaccountx,
        i_services      TYPE STANDARD TABLE OF bapiesllc ,
        i_srvacc        TYPE STANDARD TABLE OF bapiesklc,
        i_return        TYPE STANDARD TABLE OF bapiret2,
        wa_header       TYPE bapimepoheader,
        wa_headerx      TYPE bapimepoheaderx,
        wa_poitem       TYPE bapimepoitem,
        wa_poitemx      TYPE bapimepoitemx,
        wa_poitem_sch   TYPE bapimeposchedule,
        wa_poitem_schx  TYPE bapimeposchedulx,
        wa_acct_***     TYPE bapimepoaccount,
        wa_acct_assx    TYPE bapimepoaccountx,
        wa_services     TYPE bapiesllc,
        wa_srvacc       TYPE bapiesklc,
        wa_return       TYPE bapiret2,
        ws_po           TYPE bapimepoheader-po_number.
  break gbpra8.
  wa_services-pckg_no = 10.
  wa_services-line_no = 1.
  wa_services-outl_no = '0'.
  wa_services-outl_ind = c_x.
  wa_services-subpckg_no = 20.
  APPEND wa_services TO i_services.
  wa_srvacc-pckg_no = 10.
  wa_srvacc-line_no = 1.
  wa_srvacc-serno_line = 01.
  wa_srvacc-serial_no = 01.
  wa_srvacc-percentage = 100.
  APPEND wa_srvacc TO i_srvacc.
  LOOP AT i_input_file INTO wa_input_file.
    IF wa_input_file-column2 EQ 'HD'.
      wa_header-doc_type = wa_input_file-column3.
      wa_header-creat_date = sy-datum.
      wa_header-created_by = sy-uname.
      wa_header-vendor = wa_input_file-column4.
      PERFORM conversion_output USING wa_header-vendor
                                CHANGING wa_header-vendor.
      wa_header-comp_code = 'DE03'.
      wa_header-purch_org = 'DE03'.
      wa_header-pur_group = 'DE1'.
      wa_header-vper_start = wa_input_file-column9.
      wa_header-vper_end = wa_input_file-column10.
      wa_headerx-comp_code = c_x.
      wa_headerx-doc_type = c_x.
      wa_headerx-creat_date = c_x.
      wa_headerx-created_by = c_x.
      wa_headerx-vendor = c_x.
      wa_headerx-purch_org = c_x.
      wa_headerx-pur_group = c_x.
      wa_headerx-vper_start = c_x.
      wa_headerx-vper_end = c_x.
    ENDIF.
    IF wa_input_file-column2 EQ 'IT'.
      wa_poitem-po_item = wa_input_file-column3.
      wa_poitem-short_text = wa_input_file-column6.
      wa_poitem-plant = wa_input_file-column8.
      wa_poitem-quantity = '1'.
      wa_poitem-tax_code = 'V0'.
      wa_poitem-item_cat = 'D'.
      wa_poitem-acctasscat = 'K'.
      wa_poitem-matl_group = wa_input_file-column7.
      wa_poitem-pckg_no = '10'.
      APPEND wa_poitem TO i_poitem .
      wa_poitemx-po_item = wa_input_file-column3.
      wa_poitemx-po_itemx = c_x.
      wa_poitemx-short_text = c_x.
      wa_poitemx-plant = c_x.
      wa_poitemx-quantity = c_x.
      wa_poitemx-tax_code = c_x.
      wa_poitemx-item_cat = c_x.
      wa_poitemx-acctasscat = c_x.
      wa_poitemx-matl_group = c_x.
      wa_poitemx-pckg_no = c_x.
      APPEND wa_poitemx TO i_poitemx.
      wa_poitem_sch-po_item = wa_input_file-column3.
      wa_poitem_sch-delivery_date = sy-datum.
      APPEND wa_poitem_sch TO i_poitem_sch.
      wa_poitem_schx-po_item = wa_input_file-column3.
      wa_poitem_schx-po_itemx = c_x.
      wa_poitem_schx-delivery_date = c_x.
      APPEND wa_poitem_schx TO i_poitem_schx.
      wa_acct_***-po_item = 10.
      wa_acct_***-serial_no = 01.
      wa_acct_***-gl_account = '0006360100'.
      wa_acct_***-co_area  = '1000'.
      wa_acct_***-costcenter = 'KC010000'.
      APPEND wa_acct_*** TO i_acct_***.
      wa_acct_***-po_item = 10.
      wa_acct_***-serial_no = 02.
      wa_acct_***-gl_account = '0006360100'.
      wa_acct_***-co_area  = '1000'.
      wa_acct_***-costcenter = 'KC010000'.
      APPEND wa_acct_*** TO i_acct_***.
      wa_acct_assx-po_item = 10.
      wa_acct_assx-serial_no = 01.
      wa_acct_assx-po_itemx = c_x.
      wa_acct_assx-serial_nox = c_x.
      wa_acct_assx-gl_account = c_x.
      wa_acct_assx-co_area  = c_x.
      wa_acct_assx-costcenter = c_x.
      APPEND wa_acct_assx TO i_acct_assx.
      wa_acct_assx-po_item = 10.
      wa_acct_assx-serial_no = 02.
      wa_acct_assx-po_itemx = c_x.
      wa_acct_assx-serial_nox = c_x.
      wa_acct_assx-gl_account = c_x.
      wa_acct_assx-co_area  = c_x.
      wa_acct_assx-costcenter = c_x.
      APPEND wa_acct_assx TO i_acct_assx.
      wa_services-pckg_no = 20.
      wa_services-line_no = 2.
      wa_services-service = wa_input_file-column9.
      wa_services-quantity = '100'.
      wa_services-gr_price = '100'.
      wa_services-userf1_txt = wa_input_file-column13.
      APPEND wa_services TO i_services.
      wa_srvacc-pckg_no = 20.
      wa_srvacc-line_no = 1.
      wa_srvacc-serno_line = 02.
      wa_srvacc-serial_no = 02.
      wa_srvacc-percentage = 100.
      APPEND wa_srvacc TO i_srvacc.
    ENDIF.
  ENDLOOP.
  CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
      poheader                     = wa_header
      poheaderx                    = wa_headerx
  POADDRVENDOR                 =
  TESTRUN                      =
  MEMORY_UNCOMPLETE            =
  MEMORY_COMPLETE              =
  POEXPIMPHEADER               =
  POEXPIMPHEADERX              =
  VERSIONS                     =
  NO_MESSAGING                 =
  NO_MESSAGE_REQ               =
  NO_AUTHORITY                 =
  NO_PRICE_FROM_PO             =
   IMPORTING
     exppurchaseorder             = ws_po
  EXPHEADER                    =
  EXPPOEXPIMPHEADER            =
   TABLES
     return                       = i_return
     poitem                       = i_poitem
     poitemx                      = i_poitemx
  POADDRDELIVERY               =
     poschedule                   = i_poitem_sch
     poschedulex                  = i_poitem_schx
     poaccount                    = i_acct_***
  POACCOUNTPROFITSEGMENT       =
     poaccountx                   = i_acct_assx
  POCONDHEADER                 =
  POCONDHEADERX                =
  POCOND                       =
  POCONDX                      =
  POLIMITS                     =
  POCONTRACTLIMITS             =
     poservices                   = i_services
     posrvaccessvalues            = i_srvacc
  POSERVICESTEXT               =
  EXTENSIONIN                  =
  EXTENSIONOUT                 =
  POEXPIMPITEM                 =
  POEXPIMPITEMX                =
  POTEXTHEADER                 =
  POTEXTITEM                   =
  ALLVERSIONS                  =
  POPARTNER                    =
  break gbpra8.
  LOOP AT i_return INTO wa_return.
  ENDLOOP.
ENDFORM.                    " split_data
*&      Form  conversion_output
      Conversion exit input
FORM conversion_output  USING    p_ip
                        CHANGING p_op.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = p_ip
    IMPORTING
      output = p_op.
ENDFORM.                    " conversion_output
<b>Reward points if this helps.
Manish</b>

Similar Messages

  • Unable to update a field using the Data tab on a VIEW

    When viewing data using a VIEW instead of going to the table directly, am unable to change the values in any of the fields
    When I click on the list of VIEWs for a schema, then select a view that is based on a SELECT statement for a single table with a Primary key, and then click on the DATA tab to modify the value in one of the fields, SQL Developer does not allow me to change the value.
    Went into SQL Plus, and was able to execute an UPDATE statement against the same row of that VIEW, and update that field ("UPDATE vw_mytable SET thisfield = 'YES' WHEN row_id_number = 1'").
    Does SQL Developer not allow updating tables through a VIEW?
    Will it allow updating in the future? Please say yes.
    Oracle 10g DB and latest version of SQL Developer.

    Remember to add feature requests and vote on them on the SQL Developer Exchange!
    <br>
    <p>We have added updateable views to 1.1, but do remember, not all views are updateable - even in SQL*Plus.</p>
    <br>
    Sue

  • Can we update InfoPath field using Event Receiver ItemAdded method

    Hi,
    Can we update InfoPath browser enabled form field using Event Receiver ItemAdded method. Following is the code snippet I used to update the field but it's not updating the field.
    Please help me on this issue.
    public override void ItemAdded(SPItemEventProperties properties)
                base.ItemAdded(properties);
                try
                    //Turn off event firing so we don't end up with a conflict 
                    base.EventFiringEnabled = false;
                    //Run the code elevated so we can rename our item
                    SPSecurity.RunWithElevatedPrivileges(delegate()
                        using (SPSite site = new SPSite(properties.Web.Site.ID))
                            using (SPWeb web = site.OpenWeb(properties.Web.ID))
                                //Grab a new copy of our list and listitem under the new security context
                                SPList list = web.Lists[properties.List.ID];
                                SPListItem item = list.Items.GetItemById(properties.ListItemId);
                                //Change name and title to match item ID
                                item.File.CheckOut();
                                string fieldInternalName = properties.List.Fields["Employee Name"].InternalName;
                                SPUser oUser = web.EnsureUser(Convert.ToString(item["Employee Entry"]).Substring(0, Convert.ToString(item["Employee Entry"]).Length - 2));
                                item[fieldInternalName] = oUser.Name;
                                item.Update();
                                item.File.CheckIn("Changed Employee Name");
                catch (Exception ex)
                    //Log an errors to the ULS
                finally
                    //Turn event firing back on
                    base.EventFiringEnabled = true;
    Srivignesh J

    When you published your infopath form, did you promote the field you are trying to update to a property, and allow updates (its one of the steps in publishing your form, where you pick which fields you want to show as fields in the list view)... 
    Otherwise, how about get the Item.SPFile object, open it as XML, find the field you want to update, and update it that way... 

  • Update multiple fields using select query efficiently – 9i

    I need to populate a table called prop_charact used for synching data to a legacy system.
    Prop_charact has fields that are found in a few other tables (no one field is found in more than one table outside of prop_charact). I want to pull the data from the corresponding fields in the source tables and put it into prop_charact. I only want to populate prop_charact with records that have been updated, but want to pull all fields for those records (whether or not that field has been updated). I am getting the list of updated records from a transaction history table.
    After getting that list, I was not sure what to do with it.
    I put what I want to do in terms of strictly SQL. I am thinking there are more efficient (less system resources) ways of doing this, but I am not sure what to pursue. I can use PL/SQL, but please keep in mind I am limited to using version 9i. Anyone have any hints about what I should look into using instead of just thes particular SQL statements?
    insert into eval.prop_charact (parcelno, propertyid)
    select distinct p.parcelno, p.propertyid
    from eval.transaction_history tr,
    admin.properties p
    where tr.propertyid = p.propertyid
    and trim(tr.tablename) in ('PROPERTIES', 'PROPERTYCHARACTERISTICS','EQID','NEWCHARACTERISTICS','DIMENSIONS', 'NON_RESIDENTIALS')
    and trim(tr.fieldname) in ('BLDGCODE', 'CATCODE', 'UNFINISHED', 'TOPOGRAPHY', 'GARAGETYPE', 'GARAGESPACES', 'OPENSPACES',
    'VIEW', 'GENERALCONSTRUCTION', 'YEARBUILT', 'ESTIMATEDYEAR', 'TOTALROOMS', 'TOTALBEDROOMS',
    'BASEMENTTYPE', 'NUMBEROFFIREPLACES', 'HEAT', 'CENTRALAIR','CONDITION','SITE_TYPE','TOTALDWELLINGAREA',
    'PLOTFRONT','PLOTDEPTH','PLOTSQFT','SHAPE','STORIES','FULLBATHROOMS','PARTBATHROOMS','MULTIPLE_BLDGS')
    and tr.trans_date >= to_date('01-01-2010', 'MM/DD/YYYY')
    and tr.trans_date < sysdate
    order by p.parcelno;
    update
    select p.BLDGCODE pBLDGCODE, epc.BLDGCODE epcBLDGCODE, p.CATCODE pCATCODE,epc.CATCODE epcCATCODE,
    p.UNFINISHED pUNFINISHED, epc.UNFINISHED epcUNFINISHED,
    pc.TOPOGRAPHY pcTOPOGRAPHY, epc.TOPOGRAPHY epcTOPOGRAPHY,
    pc.GARAGETYPE pcGARAGETYPE, epc.GARAGETYPE epcGARAGETYPE,
    pc.GARAGESPACES pcGARAGESPACES, epc.GARAGESPACES epcGARAGESPACES,
    pc.OPENSPACES pcOPENSPACES, epc.OPENSPACES epcOPENSPACES, pc.VIEW_ pcVIEW_, epc.VIEW_ epcVIEW_,
    pc.GENERALCONSTRUCTION pcGENERALCONSTRUCTION,
    epc.GENERALCONSTRUCTION epcGENERALCONSTRUCTION,
    pc.YEARBUILT pcYEARBUILT, epc.YEARBUILT epcYEARBUILT,
    pc.ESTIMATEDYEAR pcESTIMATEDYEAR, epc.ESTIMATEDYEAR epcESTIMATEDYEAR,
    pc.TOTALROOMS pcTOTALROOMS, epc.TOTALROOMS epcTOTALROOMS,
    pc.TOTALBEDROOMS pcTOTALBEDROOMS, epc.TOTALBEDROOMS epcTOTALBEDROOMS,
    pc.BASEMENTTYPE pcBASEMENTTYPE, epc.BASEMENTTYPE epcBASEMENTTYPE,
    pc.NUMBEROFFIREPLACES pcNUMBEROFFIREPLACES, epc.NUMBEROFFIREPLACES epcNUMBEROFFIREPLACES,
    pc.HEAT pcHEAT, epc.HEAT epcHEAT, pc.CENTRALAIR pcCENTRALAIR, epc.CENTRALAIR epcCENTRALAIR,
    e.CONDITION eCONDITION, epc.CONDITION epcCONDITION,
    n.SITE_TYPE nSITE_TYPE, epc.SITE_TYPE epcSITE_TYPE,
    d.TOTALDWELLINGAREA dTOTALDWELLINGAREA, epc.TOTALDWELLINGAREA epcTOTALDWELLINGAREA,
    d.PLOTFRONT dPLOTFRONT, epc.PLOTFRONT epcPLOTFRONT,
    d.PLOTDEPTH dPLOTDEPTH, epc.PLOTDEPTH epcPLOTDEPTH,
    d.PLOTSQFT dPLOTSQFT, epc.PLOTSQFT epcPLOTSQFT,d.SHAPE dSHAPE, epc.SHAPE epcSHAPE,
    pc.STORIES pcSTORIES, epc.STORIES epcSTORIES,
    n.FULLBATHROOMS nFULLBATHROOMS,epc.FULLBATHROOMS epcFULLBATHROOMS,
    n.PARTBATHROOMS nPARTBATHROOMS, epc.PARTBATHROOMS epcPARTBATHROOMS,
    nr.MULTIPLE_BLDGS nrMULTIPLE_BLDGS, epc.MULTIPLE_BLDGS epcMULTIPLE_BLDGS
    from eval.prop_charact epc, admin.properties p, admin.propertycharacteristics pc, admin.eqid e,
    admin.dimensions d, eval.newcharacteristics n, EVAL.non_residentials nr
    where epc.propertyid = p.propertyid and epc.propertyid = pc.propertyid and epc.propertyid = e.propertyid(+)
    and epc.propertyid = d.propertyid(+) and epc.propertyid = n.propertyid(+) and epc.propertyid = nr.propertyid(+)
    set epcBLDGCODE= pBLDGCODE, epcCATCODE= pCATCODE, epcUNFINISHED = pUNFINISHED,
    epcTOPOGRAPHY = pcTOPOGRAPHY, epcGARAGETYPE = pcGARAGETYPE, epcGARAGESPACES = pcGARAGESPACES,
    epcOPENSPACES = pcOPENSPACES, epcVIEW_ = pcVIEW_, epcGENERALCONSTRUCTION = pcGENERALCONSTRUCTION,
    epcYEARBUILT = pcYEARBUILT, epcESTIMATEDYEAR = pcESTIMATEDYEAR, epcTOTALROOMS = pcTOTALROOMS,
    epcTOTALBEDROOMS = pcTOTALBEDROOMS, epcBASEMENTTYPE = pcBASEMENTTYPE,
    epcNUMBEROFFIREPLACES = pcNUMBEROFFIREPLACES, epcHEAT = pcHEAT, epcCENTRALAIR = pcCENTRALAIR,
    epcCONDITION = eCONDITION, epcSITE_TYPE = nSITE_TYPE, epcTOTALDWELLINGAREA = dTOTALDWELLINGAREA,
    epcPLOTFRONT = dPLOTFRONT, epcPLOTDEPTH = dPLOTDEPTH, epcPLOTSQFT = dPLOTSQFT,
    epcSHAPE = dSHAPE, epcSTORIES = pcSTORIES, epcFULLBATHROOMS = nFULLBATHROOMS,
    epcPARTBATHROOMS = nPARTBATHROOMS, epcMULTIPLE_BLDGS = nrMULTIPLE_BLDGS;

    The following example may be of help.
    SQL> create table mytable(col1 number(1),
      2  col2 date);
    Table created.
    SQL> insert into mytable values(1,sysdate);
    1 row created.
    SQL> select * from mytable;
          COL1 COL2
             1 20-AUG-04
    SQL> update mytable
      2  set (col1,col2) = (select 2, sysdate-1 from dual);
    1 row updated.
    SQL> select * from mytable;
          COL1 COL2
             2 19-AUG-04

  • Updating multiple fields using a single update statement.

    Hi All,
    I am a beginner to Oracle. I have used the following Hint in an update query that is executed in Oracle 10G. We recently updated the Oracle to version 11g and when executing the query getting the following Error: ORA-01779: cannot modify a column which maps to a non key-preserved table. PFB the query. Please suggest me some ways that I can do to avoid this error.
    UPDATE /*+ bypass_ujvc */
    (SELECT t1.STG_DEL_CONDITION, t2.condition
    FROM stg_reports_membenft_latest T1 JOIN (select ods_ssn_grp,sys_id, first_value(STG_DEL_CONDITION) over(PARTITION BY ods_ssn_grp,sys_id
    ORDER BY STG_DEL_CONDITION DESC) AS
    condition from stg_reports_membenft_latest) T2
    ON T1.ods_ssn_grp = T2.ods_ssn_grp AND T1.SYS_ID=T2.SYS_ID ) x
    SET x.STG_DEL_CONDITION = x.condition;
    Thanks and Regards,
    Karthik Sivakumar.

    I used the below query and got the Result.
    Thank You all
    MERGE INTO stg_reports_membenft_latest x1
    USING (SELECT distinct ods_ssn_grp,
    sys_id,
    First_value(STG_DEL_CONDITION) OVER(partition BY ods_ssn_grp,sys_id
    ORDER BY STG_DEL_CONDITION DESC)
    AS condition
    FROM stg_reports_membenft_latest) x2
    ON ( x1.ods_ssn_grp = x2.ods_ssn_grp
    AND x1.SYS_ID = x2.sys_id )
    WHEN matched THEN
    UPDATE SET x1.STG_DEL_CONDITION=x2.condition;

  • How to populate cusotom fields using BAPI_GOODSMVT_CREATE  for MIGO

    Hi,
    I was to update custom field using BAPI_GOODSMVT_CREATE for MIGO and store it is MSEG table.
    Please tell me how to proceed.
    Moderator message: last warning, if you continue to post the same thread again, I will submit your user ID for deletion. See my comments in your previous posts.
    Edited by: Thomas Zloch on Jul 14, 2011 4:38 PM

    Hi ANID,
    Thanks for the reply.
    I have checked in the documention of the bapi and no communication structure regarding to the bapi is there so i am not able to figure out where to add the custom field so that it can be added in the MKPF table.
    Regads
    Dipak

  • FM : to call collective Search help and update two fields in SSCR

    Hi Experts,
         I have problem while using collective serach help.
        My scenario is using Collective Search help thru that i want to update 2 fields in my selection screen.
    Thru this function module F4IF_INT_TABLE_VALUE_REQUEST  i can mapping and update two fields using DYNP_VALUE_UPDATE but using this function module i can't able to call my Collective Search help
    in other way
    Thru F4IF_FIELD_VALUE_REQUEST  i can able to call the collective search help but _i can't mapping field and can't updated the
    selection screen field_
    Is any otherway to do it, Please help me ASAP.
    Regards,
    Florian.

    Hi Friends,
    I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
    The search help is working fine and i am getting the entries with the following code.
    The problem is i am finding extra popup on screen.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname         =  space
    fieldname       =  space
    SEARCHHELP      =  'MAT1'
    MULTIPLE_CHOICE =  'X'
    STEPL           =  0
    value           = 'MATNR'
    *dynpprog        =  progname
    *dynpnr          =  dynnum
    *dynprofield     = 'CARRIER'
    CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
    CALLBACK_FORM             = 'F4CALLBACK'
    TABLES
    RETURN_TAB                = RETURN_TAB
    EXCEPTIONS
    FIELD_NOT_FOUND           = 1
    NO_HELP_FOR_FIELD         = 2
    INCONSISTENT_HELP         = 3
    NO_VALUES_FOUND           = 4
    OTHERS                    = 5.

  • I am trying to update the Subcontracting type of PO using 'BAPI_PO_CHANGE'. However i am able to update this field . Can someone advice me how to do.

    HI,
    I am trying to update the Subcontracting type of PO using 'BAPI_PO_CHANGE'. However i am able to update this field .
    Can someone advice me how to do.
    My code sample is :
    wl_poitem-po_item = l_ebelp.
    wl_poitemx-po_item = wl_poitem-po_item.
    wl_poitemx-po_itemx = c_x.
    *C--material procurement indicator need to update
    *   the type of procurement
    wl_materialind-po_item       = wl_poitem-po_item.
    wl_materialindx-po_item      = wl_poitem-po_item.
    wl_materialindx-po_itemx     = c_x.
    wl_materialind-item_no       = wl_poitem-po_item.
    wl_materialindx-item_no      = wl_poitem-po_item.
    wl_materialindx-item_nox     = c_x.
    wl_materialind-mat_provision = 'S'.
    wl_materialindx-mat_provision = c_x.
    wl_materialind-sched_line      = '0001'.
    wl_materialindx-sched_line     = '0001'.
    wl_materialindx-sched_linex    = c_x.
    wl_materialind-entry_quantity  = wl_poitem-quantity.
    wl_materialindx-entry_quantity = c_x.
    wl_materialind-plant           = wl_poitem-plant.
    wl_materialindx-plant          = c_x.
    wl_materialind-material        = wl_poitem-material.
    wl_materialindx-material       = c_x.
    wl_materialind-item_cat        = 'L'.
    wl_materialindx-item_cat       = c_x.
    wl_extensionin-structure  = 'BAPI_TE_MEPOITEM'.
    wl_extensioninx-structure = 'BAPI_TE_MEPOITEMX' .
    wl_extensionin-valuepart1+222(1) = '1'.
    wl_extensioninx-valuepart1+24(1) = c_x.
    APPEND wl_poitem  TO tl_poitem.
    CLEAR  wl_poitem.
    APPEND wl_poitemx TO tl_poitemx.
    CLEAR  wl_poitemx.
    APPEND wl_materialind TO tl_materialind.
    CLEAR  wl_materialind.
    APPEND wl_materialindx TO tl_materialindx.
    CLEAR  wl_materialindx.
    APPEND wl_extensionin  TO tl_extensionin.
    CLEAR  wl_extensionin.
    APPEND wl_extensioninx TO tl_extensioninx.
    CLEAR  wl_extensioninx.
    CALL FUNCTION 'BAPI_PO_CHANGE'
       EXPORTING
         purchaseorder = l_ebeln
         versions      = wa_version
       TABLES
         return        = tl_return
    *    poitem        = tl_poitem
    *    poitemx       = tl_poitemx
         pocomponents  = tl_materialind
         pocomponentsx = tl_materialindx
         extensionin   = tl_extensionin
         extensionout  = tl_extensioninx.
    READ TABLE  tl_return WITH KEY type = 'E' TRANSPORTING NO FIELDS.
    IF sy-subrc NE 0.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .
    ENDIF.

    In the above question i mean- I am UNABLE to update

  • Error using Bapi_PO_Change for update custom fields

    Dear Expert,
    I have requirement for update custom field in table ekko. I used BAPI_PO_CHANGE with PO_number as a key. Then i put the value of custom field in segment TABLES - EXTENSIONIN.
    But I get error : "ERROR TRANSFERING EXTENSIONIN DATA FOR ENHANCEMENT CI_EKKODB".
    When I checked, I found the difference between data type the value for BAPI_PO_CHANGE (Usinf structure BAPIPAREX) and data type for custom field in table EKKO.
    Data Type in BAPI_PO_CHANGE is CHAR (you can see in structure BAPIPAREX). And data type for the custom field is DECIMAL.
    I found the note '1124803', but the correction note was not applicable for us because our released system is 500.
    Is there any suggestion or solution for resolve our problem?
    Really appreciate your help.
    Thanks.

    Hi Laxmikanth Bethi ,
    I tried with BAPI_PO_CHANGE in level header, and SAP was support the BAPI. And also i tried to appending the same fields in MEPOHEADR & MEPOHEADERX structures, but the problem is the type of my custom fields are DECIMAL, then the type MEPOHEADR & MEPOHEADERX structures are CHARACTER. So i got the error :  "ERROR TRANSFERING EXTENSIONIN DATA FOR ENHANCEMENT CI_EKKODB".
    Because the types are difference.
    Have you any suggestion to solve this problem?
    Really appreciate for your input.

  • Update Z-Field in EKPO with BAPI_PO_CHANGE

    Hello!
    I need to update my field - called ZSERNR - in the table EKPO.
    I found the FM BAPI_PO_CHANGE, but I do not know how it works.
    I tried it so, but I just get the message (table RETURN), that no datas got changed.
    I found some threads but I didn't understand them.
    DATA: s_item                TYPE bapimepoitem,
              s_itemx               TYPE bapimepoitemx,
              i_return              TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
              i_extension           TYPE bapiparex OCCURS 0 WITH HEADER LINE,
              s_bapi_te_mepoitem    TYPE bapi_te_mepoitem,
              s_bapi_te_mepoitemx   TYPE bapi_te_mepoitemx.
        s_bapi_te_mepoitemx-po_item = ls_data_new-ebelp.
        s_bapi_te_mepoitemx-zsernr = 'X'.
        s_bapi_te_mepoitem-po_item = ls_data_new-ebelp.
        s_bapi_te_mepoitem-zsernr = '123123'.
        i_extension-structure = 'BAPI_TE_MEPOITEM'.
        i_extension-valuepart1 = s_bapi_te_mepoitem.
        APPEND i_extension.
        i_extension-structure = 'BAPI_TE_MEPOITEMX'.
        i_extension-valuepart1 = s_bapi_te_mepoitemx.
        APPEND i_extension.
        s_item-po_item = ls_data_new-ebeln.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = ls_data_new-ebeln
          TABLES
            return        = i_return
            extensionin   = i_extension.
    I hope somebody can help me.
    Thx

    Thank you for your fast answear
    I didn't solved the problem till now, but I know that I can't use this FM in my BADI.
    Because the table EKPO is locked at the time I am using the FM.
    (BADI also writes into the table EKPO)

  • Master Detail Form - How 2 update a field in the Detail form using a query?

    Hello,
    I have a master detail form with, each master record having a fixed(6) number of detail records. One of the fields in the detail record is the PART_DESCRIPTION field. I am trying to update this field by querying Table_X. TABLE_X is in the format of (desciption id, description). Description id runs from 1 to 6.
    When the form displays, the PART_DESCRIPTION field for the 6 detail records needs to be automatically populated with the six values of description stored in Table_X. How can this be done?
    Tried using session storage objects, but made no headway.
    Would greatly appreciate pointers on how to go about doing this.
    Thanks.
    Dev

    If you are on a Portal Version lesser than 3.0.9.8.3, then please try the following to populate
    the PART_DESCRIPTION field.
    Steps:-
    1> Edit the form and go to the Additional PL/SQl section and put the following code in the
    "...after displaying the page area" :-
    declare
    type t_vc_arr is table of varchar2(4000) index by binary_integer;
    l_arr_desc t_vc_arr;
    l_form_name varchar2(200);
    l_form_state varchar2(500);
    begin
    l_form_name := p_session.get_module().get_name();
    l_form_state := p_session.get_value_as_varchar2(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE'
    if l_form_state = 'QUERY_AND_SAVE' then
    select description
    bulk collect into l_arr_desc
    from <schema>.table_x;
    htp.p('
    <script>
    var descArr = new Array();
    var Fidx = 1;
    var formObj = document.WWVM'||p_session.get_id()||';
    var fieldName = "'||l_form_name||'.DETAIL_BLOCK.PART_DESCRIPTION.0";
    for i in 1..l_arr_desc.count loop
    htp.p('descArr['||to_char(i-1)||']="'||l_arr_desc(i)||'";');
    end loop;
    htp.p('
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName+Fidx){
    formObj.elements[i].value = descArr[Fidx-1];
    ++Fidx;
    htp.p('</script>');
    end if;
    end;

  • Update Schedule line Delivery date using Bapi_po_Change

    Hi all,
    I am using Bapi_po_change to Update the Schedule line Delivery date(EKET-EINDT) for the PO based on the Item and the Schedule line.
    I am passing the PO number, Po header, Item structure, Schedule line Structure.
    But the Date is not getting updated in the Eket table.
    Please suggest.

    Hi Sukriti,
    Thanks for the Response, yes i have used the Bapi Transaction Commit Also .
    The point is I am able to Update the Statistical Delivery Date in the Same EKET table using BAPI_PO_Change .I have Checked all the Ways to update the EKET-EINDT(Delivery Date)but no Unable to do it.

  • Using BAPI_PO_CHANGE to update PO with item actegory B

    Hi Experts,
    I have a requirement to update the PO with item category B which is created by referring  PR having account assignment category N(.( So I have a PO with Acc assignment N now have to update the item category with B ). I am using BAPI_PO_CHANGE to update the item category with B  .in me22n system will prompt the Limits ( overall limit , expected value) and Network details ( like GL acc and Network and activity code) so i am passing lt_poitem,lt_poitemx,lt_polimits,lt_poaccount,lt_poaccountx,lt_POSRVACCESSVALUES. System is issuing a message Buffer table is not up-to-date . Please let me know if any one updated the PO with item category B using BAPI_PO_CHANGE and please provide sample code for the same if possible. Thanks in advance.
    Thanks
    Pravee

    Hi Experts,
    I am passing the required structure as below .
    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        purchaseorder = v_po
      TABLES
        return        = lt_return
        poitem        = lt_poitem
        poitemx       = lt_poitemx
        polimits      = lt_polimits
        poaccount     = lt_poaccount
        poaccountx    = lt_poaccountx
        POSRVACCESSVALUES = lt_POSRVACCESSVALUES
        POCONTRACTLIMITS = lt_POCONTRACTLIMITS
        POSERVICES    = lt_POSERVICES.
    Now i am getting a message below messages from BAPI :
    S     06     023     Indirect PO (ZSTA) 4506000481 changed
    I     ME     664     Change Item Category could not be effected
    I     ME     664     Change Item Category could not be effected
    I can see that the PO is not got updated with any of values.Please help me to resolve this issue.
    Thanks
    PRavee.

  • How to update information fields of a profile in Oracle UCM using RIDC

    Hi All
    I have a requirement in which i need to modify/update the metadata/information fields of a Profile in Oracle Webcenter Content(UCM).
    I found out that this can be achieved using RIDC api, but i have little knowledge about the same.
    If someone could suggest about how to retrieve and update the fields in UCM using RIDC or some other approach would be of great help.
    It's really important.Kindly help
    Regards
    ACM

    user13069455 wrote:
    Hi Jiri
    Even i have thought about the same as one of the approaches, but i was a bit apprehensive about using this one.
    I have few stupid queries regarding this:
    1)Will it expose the production database(connection details) to the environment?Yes. If you don't like the idea of giving connection to the database to a "third-party" program, you could go from the other side - create a UCM component (some kind of scheduled job), which will be a part of UCM, but do the same. It will be a bit more complicated, but might be considered more secure.
    2)Will it have any performance impact?I don't think there will be much impact - most of time, tables will be accessed in read-only mode (pulling the data out), so except few per cent of CPU and some memory it should not consume anything. Besides, you should be able to schedule upload to "quiet hours", if there are some
    3)Will it still be an integration with the UCM?Well, yes. It will be integration at the database level. But honestly, as long as it works, do you care how is it called?
    >
    Thanks
    ACM

  • Need to update custom fields in MSEG table using "BAPI_GOODSMVT_CREATE"

    Hi All,
    There is a requirement to update custom fields in table MSEG which are part of append structure. There is a option to update the custom fields using the one of the tables parameters "EXTENSIONIN". Anyone please advice how can I update the custom field thru EXTENSIONIN.
    Thanks in advance.
    cheers,
    Vijay

    see the help
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/4099948b8911d396b70004ac96334b/frameset.htm
    Regards
    Kiran Sure

Maybe you are looking for

  • PRINTING ERROR WHILE PRINTING ON THE ACCOUNTING SOFTWARE DYNAMICS NAV ON MY HP LASER JET 1022n

    I am having printer error while I print reports on accounting software MS Dynamics Nav. I am using IE 10 and my laptop is HP Pavilion Entertainment Pc and the printer is HP Laser Jet 1022n. this is the error message: res://ieframe.dll/preview.js The

  • Sony avchd camcorder

    How can i import my avchd file from my sony avchd camcorder hdrsr7. Final cut express 4 does not recognize those files.

  • Can you restrict APEX users to a single browser session?

    I'm using APEX3.2.1 Is there a package,function, view or table in APEX that can be checked to see if a user_id already has an active session (one that hasn't been purged yet). I wish to restrict each user to a single active browser session. Cheers df

  • Nested class path element in ANT task

    I am having some problems with the nested classpath element in the enhancer ANT task. Does anyone else use this? If so can you share your config with me. class loader could not resolve the class name "XYZ" sean.

  • My documents won't open...??

    Each document just has the 'Pages' logo..... If I create a new document then that's fine but all my 'old' documents done open....