BAPI not updating Z-fields while creating PR

Hi all,
I am creatting PR using BAPI_REQUISITION_CREATE, PR was created and std fields uppdated but some customer data z-fields hasbeen added to the screen and i am passing these fields using BAPI structure but these z-fields remains blank. Below is the code kindly suggest what's going wrong.
zfield structure
PREQ_ITEM     NUMC     5     0
Zfield1                     CHAR     40      0
Zfield1            CHAR     30     0
Zfield1          CHAR     1     0
Zfield1          CHAR     1     0
Zfield1          CHAR     1     0
Zfield1          CHAR     1     0
Zfield1          CHAR     255     0
Zfield1          CHAR     255     0
*******Code***********
data : BAPI_TE_MEREQITEM type BAPI_TE_MEREQITEM.
data : BAPI_TE_MEREQITEMX type BAPI_TE_MEREQITEMX.
BAPI_TE_MEREQITEM-PREQ_ITEM = '10'.
BAPI_TE_MEREQITEM-Zfield1 = 'TEST'.
BAPI_TE_MEREQITEM-Zfield2 = '999999999'.
BAPI_TE_MEREQITEM-field3 = 'N'.
BAPI_TE_MEREQITEM-field4 = 'N'.
BAPI_TE_MEREQITEM-field5 = 'N'.
BAPI_TE_MEREQITEM-field6 = 'N'.
BAPI_TE_MEREQITEM-field7 = 'DRI PLANT'.
BAPI_TE_MEREQITEM-field8 = 'From IT'.
   move 'BAPI_TE_MEREQITEM' to extensionin-structure.
  extensionin-VALUEPART1 = BAPI_TE_MEREQITEM+0(240).
  extensionin-VALUEPART2 = BAPI_TE_MEREQITEM+240(239).
  extensionin-VALUEPART3 = BAPI_TE_MEREQITEM+480(109).
  append extensionin.
BAPI_TE_MEREQITEMX-PREQ_ITEM = '10'.
BAPI_TE_MEREQITEMX-field1  = 'X'.
BAPI_TE_MEREQITEMX-field2  = 'X'.
BAPI_TE_MEREQITEMX-field3  = 'X'.
BAPI_TE_MEREQITEMX-field4  = 'X'.
BAPI_TE_MEREQITEMX-field5  = 'X'.
BAPI_TE_MEREQITEMX-field6 = 'X'.
BAPI_TE_MEREQITEMX-field7 = 'X'.
BAPI_TE_MEREQITEMX-field8 = 'X'.
    move 'BAPI_TE_MEREQITEMX' to extensionin-structure.
  append extensionin.
        CALL FUNCTION 'BAPI_REQUISITION_CREATE'
           IMPORTING
             number                   = prno
            TABLES
                 requisition_items    = requisition_items
      requisition_account_assignment   =  requisition_account_assignment
           return                     = i_return
           EXTENSIONIN               = EXTENSIONIN.

Hello,
before calling Commit FM please try using FM ZZG05_BUPA_EVENT_DSAVB  and then commit the changes.
or
Use the Function Module CRMXIF_PARTNER_SAVE. You can update or create standard and newly created fields(EEWB).
The following FM updates all the customer fields.
Please let me know if you face any issues.
Thanks & Regards,
Ravi Aswani

Similar Messages

  • DYNP_VALUES_UPDATE not Updating the Field on my Dynpro

    Hi.
    I want to create a dynpro where two fields are. Field 1 allows the user to enter a customer number, field two shall come up with a number that is calculated somehow. The calculation can last up to 20 seconds, so I dont want to make the user waite for this number.. .he shall be able to work with the rest of the dynpro.
    Therefore I called the function that does the calcuiation like that:
    MODULE user_command_0100 INPUT.
      DATA: lv_guid_16 TYPE guid_16.
      IF kna1-kunnr IS NOT INITIAL AND kna1-kunnr <> gv_kunnr
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_16 = lv_guid_16.
        gv_taskid = lv_guid_16+8(8).
        CALL FUNCTION 'YDETERMINE_DEPOTDISTANCE' 
          STARTING NEW TASK gv_taskid
          PERFORMING receive_depent ON END OF TASK
          EXPORTING
            i_kunnr = kna1-kunnr.
      ENDIF.
    ENDMODULE. 
    The next piece of code shall get the returning value if the function wants to return its results.
    FORM receive_depent USING i_task TYPE clike.
      TABLES: d020s.
      DATA: dyname LIKE d020s-prog,
            dynumb LIKE d020s-dnum.
      DATA: BEGIN OF dynpfields OCCURS 1.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF dynpfields.
      IF i_task = gv_taskid.
        RECEIVE RESULTS FROM FUNCTION 'YDETERMINE_DEPOTDISTANCE'
        IMPORTING
          e_depent         = kna1-yydepent
          e_accuracy       = gv_accuracy.
        MOVE 'KNA1-YYDEPENT' TO dynpfields-fieldname.
        MOVE kna1-yydepent TO dynpfields-fieldvalue.
        APPEND dynpfields.
        dyname = sy-cprog.
        dynumb = '0100'.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = dyname
            dynumb               = dynumb
          TABLES
            dynpfields           = dynpfields
          EXCEPTIONS
            invalid_abapworkarea = 01
            invalid_dynprofield  = 02
            invalid_dynproname   = 03
            invalid_dynpronummer = 04
            invalid_request      = 05
            no_fielddescription  = 06
            undefind_error       = 07.
        ASSERT sy-subrc = 0.
      ENDIF.
    Problem is: The DYNP_VALUES_UPDATE does not update the field on my dynpro at all. If I hit enter another time, then the field is provided by the value as another PBO will be processed. What is my mistake here?
    Regards
    Manfred
    Edited by: Rob Burbank on Oct 29, 2010 12:07 PM

    Hi Manfred,
    Replace all the DYNP_VALUES_UPDATE-related content by the following statement:
    SET USER-COMMAND 'xxx'.
    While DYNP_VALUES_UPDATE does update the fields, a roundtrip is not triggered so the content of the fields will not be refreshed. The SET USER-COMMAND does that.
    Hope this helps you!
    Cheers, Roel

  • Display of Profit Center field while creating asset in AS01

    Dear Experts,
    I have a requirement of displaying profit center field while creating asset in AS01. Currently there is no option of profit center in AS01. My client uses the profit center reporting, so they want to assign a profit center at the time of creation of asset in AS01.
    Is this possible to display profit center field in AS01, or else any other option to tackle this issue.
    Regards,
    Juned

    Hi,
    You can only have COST CENTER in asset master, but not profit center.
    You have to maintain the respective PC in cost center master data only.
    If Cost Cetner field is also not in AS01, then you need to activate it first.
    SPRO->FA->AA->Integration with GL->Additional Account Assignment Objects->Activate Account Assignment Objects.
    Here you need to activate COST CENTER field. Now you will be able to change the field status of cost center field in screen layout for asset master data as REQUIRED field. and SAVE
    Then in AS01 you can enter COST CENTER
    Regards,
    Srinu

  • Ap_vendor_pub_pkg.update_vendor_site API is not updating a field

    Hello
    I want to update the Calculate Tax field on the supplier site level.
    I am using the ap_vendor_pub_pkg.update_vendor_site API to update the ap_supplier_sites_all.auto_tax_calc_flag field. But the API does not update the field. I want to change the value of the auto_tax_calc_flag from 'L' or 'N' to 'Y'
    I am running the API as a concurrent request. Thus the org_id should be set when you use the relevant responsibility
    Below is my code. Am I missing a parameter? The API does complete successfully. The ap_supplier_sites_all table does show as updated when you look at the last_update_date field. But the auto_tax_calc_flag value does not change
    Any ideas why the api is not updating
    create or replace procedure apps3_mtnaol.mtn_update_supp_sites(errbuf in out varchar2, retcode in out number) is
    v_error_message varchar2(3000);
    l_vendor_site_rec ap_vendor_pub_pkg.r_vendor_site_rec_type;
    l_return_status varchar2(1000);
    l_msg_count number;
    l_msg_data varchar2(2000);
    l_msg_dummy varchar2(3000);
    l_output varchar2(3000);
    l_vendor_name varchar2(3000);
    l_vendor_number varchar2(3000);
    l_vendor_site_code varchar2(3000);
    v_vendor_site_code varchar2(3000);
    v_vendor_site_id number;
    v_party_site_id number;
    l_remmitance_email varchar2(2000);
    v_party_id number;
    v_party_site_name varchar2(3000);
    v_ext_payee_rec iby_disbursement_setup_pub.external_payee_rec_type;
    cursor c_1
    is
    select segment1
    ,vendor_name
    ,vendor_id
    --,vendor_site_id --vendor_site_id from org_id 22970
    ,vendor_site_code
    ,vendor_type_lookup_code
    ,org_id
    ,party_id
    ,party_site_id
    from mtn_supplier_site_22970
    where 1 = 1
    and segment1 = '661699';
    begin
    for rec in c_1 loop
    select assa.vendor_site_id -- get vendor_site_id from org_id 5001
    ,assa.party_site_id
    into v_vendor_site_id
    ,v_party_site_id
    from ap_supplier_sites_all assa
    where 1=1
    and org_id = 5001
    and assa.vendor_id = rec.vendor_id
    and vendor_site_code = rec.vendor_site_code;
    select party_id
    ,party_site_name
    into v_party_id
    ,v_party_site_name
    from hz_party_sites
    where 1=1
    and party_site_id = v_party_site_id;
    fnd_msg_pub.delete_msg(null);
    fnd_msg_pub.initialize();
    l_return_status := '';
    l_msg_count := '';
    l_msg_data := '';
    l_vendor_site_rec.vendor_site_code := rec.vendor_site_code;
    l_vendor_site_rec.auto_tax_calc_flag := 'Y'; --calculate_tax field that needs to be set to Yes
    l_vendor_site_rec.org_id := 5001;
    l_vendor_site_rec.vendor_id := rec.vendor_id;
    l_vendor_site_rec.party_site_id := v_party_site_id;
    l_vendor_site_rec.party_site_name := v_party_site_name;
    v_ext_payee_rec.payee_party_id := v_party_id;
    v_ext_payee_rec.supplier_site_id := v_vendor_site_id;
    v_ext_payee_rec.payee_party_site_id := v_party_site_id;
    v_ext_payee_rec.payer_org_id := 5001;
    ap_vendor_pub_pkg.update_vendor_site(p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_true,
    p_commit => fnd_api.g_true,
    p_validation_level => fnd_api.g_valid_level_full,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data,
    p_vendor_site_rec => l_vendor_site_rec,
    p_vendor_site_id => v_vendor_site_id
    l_output := '';
    if l_return_status <> 'S' then
    for i in 1..l_msg_count loop
    fnd_msg_pub.get(i, fnd_api.g_false, l_msg_data, l_msg_dummy);
    l_output := l_output || (to_char(i) ||': '|| substr(l_msg_data,1,250));
    fnd_file.put_line(fnd_file.output, 'Unsuccessful Update:'||l_return_status||': '||l_msg_count||', '||l_output);
    fnd_file.put_line(fnd_file.output, 'Vendor Number: ' ||l_vendor_number);
    fnd_file.put_line(fnd_file.output, 'Vendor Name: ' ||l_vendor_name);
    fnd_file.put_line(fnd_file.output, 'Vendor Site Code: ' ||l_vendor_site_code);
    fnd_file.put_line(fnd_file.output, 'Calculate Tax: ' ||l_vendor_site_rec.auto_tax_calc_flag);
    end loop;
    else
    fnd_file.put_line(fnd_file.output, 'Successful Update:' ||l_return_status||': '||l_msg_count||', '||l_output);
    fnd_file.put_line(fnd_file.output, 'Vendor Number: ' ||l_vendor_number);
    fnd_file.put_line(fnd_file.output, 'Vendor Name: ' ||l_vendor_name);
    fnd_file.put_line(fnd_file.output, 'Vendor Site Code: ' ||l_vendor_site_code);
    fnd_file.put_line(fnd_file.output, 'Calculate Tax: ' ||l_vendor_site_rec.auto_tax_calc_flag);
    end if;
    commit;
    end loop;
    exception when others then v_error_message:= 'Other error: ' || SQLERRM;
    fnd_file.put_line(fnd_file.output, 'Error Message: '||v_error_message);
    fnd_file.put_line(fnd_file.log,'***************************************************************************');
    fnd_file.put_line(fnd_file.log, 'Other error: ' || SQLERRM);
    fnd_file.put_line(fnd_file.log,'***************************************************************************');
    end;
    /

    Yes the API works outside my code.
    I have used this exact same API to successfully update other fields on the ap_supplier_sites_all table like hold_unmatched_invoices_flag, match_option, pay_group_lookup_code, pay_date_basis_lookup_code, and always_take_disc_flag fields

  • Validity Table not updating for 0IC_C03 while updating data

    Hi,
    1.Validity table not updating for 0IC_C03 while updating data in my BW 7.4 With HANA data base?
    Key fields : 0Plant
                       0Calday
    if you run this programe after loading data - RSDG_CUBE_VALT_MODIFY it is updating.
    2. I am not getting no marker update option in non-cumulative Info cube 0ic_c03 manage tab or in DTP tabs check as per 7.4 modifications?
    and  2LIS_03_BX in DTP I am getting below this option only
    Can you please give me solution for this issues.
    Regards
    Umashankar

    Hi Uma,
    Please go through the below link which might be helpful.
    Not able to Edit Validity Table : RSDV
    Marker Update Option is available under Collapse tab of Info cube.
    Thanks,
    Karan

  • SC Workflow not updating standard field

    Hi,
    I am using SRM 5.0 .After approval of SC which have multiple item not updating standard field of source_ind to all the line items .
    It's getting updated in only first line item .
    Recent Package : SAP_ABA SAPKA70011
    Thanks ,
    Sachin

    Hi,
    DO you mean to tell that after the shopping cart is approved , only the first item is send to the sourcing cockpit?
    ANd the other items of the shopping cart are not send to the sourcing cockpit?
    Can you please compare the category for the two lines? is it the same?
    can you check wether the category mentioned for the second line has got category which has been configured for sourcing cockpit?

  • Pan number compulsory field while creating vendor code

    is it possible to make pan number compulsory field while creating vendor code

    Dear Sanjeev
    you can make PAN number mandatory use t.code shd0 in that first give transaction code than give screen variant detail for screen variant program go to xk01 and then go to pan field here click on f1 then click on technical specification u can copy the program and screen name after that click on create tab the xk01 screen field comes again go to pan field double click on that field and then select this as required field and save . then go to transaction variants give the transaction name and add a row in which insert row and gives screen  variant , program and screen then save it now move to standard variant give your  screen variant name and activate  now your pan field is mandatory . if you have any problem in understanding i can provide you the screen shot also on your mail. provide your email id
    Award points .
    Regards

  • Mandatory fields while creating masters in SAP B1

    Hi All
    can some body tell if is there any manual where i get to know the mandatory fields while creating the masters in SAP B1 9.0
    Thanks
    Nidhi Trivedi

    Hi Nidhi.
    In Standard you can make UDF mandatory while Creating it by Checking Mandatory Option in UDF Window.
    If you want to make Standard Field Mandatory then you have to use SP Transaction Notification to make that field Mandatory.
    For other options, Please check below links.
    Mandatory Fields in 60 seconds - YouTube
    how to make a field mandatory in SAP Business one ?
    Making Fields Mandatory
    Mandatory Field Options in SAP Business One- no programming required! | Frontline Consultancy
    Hope this helps
    Regards::::
    Atul Chakraborty

  • Subject field while creating the change request

    Hi All
    I want to populate the subject field in the change request by default.

    Hi
    The automatic population of the subject field while creating the CR through folloup transaction from Support message.
    Regards
    Kumar

  • Hiding Reference Fields While creating Customer Master

    Hi,
    I want to Hide Reference fields While creating customer master, Thanks in advance
    Thanks
    seshu

    Hello,
    No need of screen exits or ABAPer.
    You can easily do it with Transaction Variant using T-Code - SHD0 (SHD zero).
    If you dont know how to create a Transaction Variant, just search the forum with Date Range "All" & you will get lot of guidence.
    You will just need help of Basis person for removing end-user's authorization for XD01 & giving authorization for (e.g.) ZXD01
    Hope this helps.
    Thanks,
    Jignesh Mehta

  • HT2534 i am not getting "none" option while creating an apple id without using credit card.

    i am not getting "none" option while creating an apple id without using credit card.

    To get the none option, sign out of anything apple you're signed into. Go to the app store and try to download a free app, any free app. Instead of signing in, take the option to to make a new apple ID. Then go through the steps to make the ID and you'll see the 'none' option.

  • My iphone4s can not update the apps while it could download the apps. It shows that the update can not access to itune store.

    My iphone4s can not update the apps while it could download the apps. It shows that the update can not access to itune store. I don't know how to deal with it...

    Many people (including me) are having the same problem at present. There are other threads in the message board with the same complaint.
    There is nothing you can do about it except wait for Apple to fix the problem.

  • Save EAN11 field while creating POrder creation through Function module

    Hi All,
    I want to update EAN11 field in material master while creating Purchase Order through function module. I am using function module BAPI_PO_CREATE1 for creating purchase order. There are no structures in the PO creation FM in which EAN11 field is there. I have also tried using function module MEPO_DOC_ITEM_PROCESS for updating EAN11 field. It is not working. Please suggest some method to do that.
    Note: I am receiving EAN11 through an external system by proxy.
    Thanks,
    Chinmay

    Hi,
    Use BAPI_MATERIAL_SAVEDATA to updat ean numbers for materials.
    tables INTERNATIONALARTNOS is used to update EAN.
    Regards,
    Shanmugavel Chandrasekaran

  • DYNP_VALUES_UPDATE not updating SCREEN FIELD PERNAM

    Following code not working. screen field pernam not getting updated. pls advise.
    tables:zmara ,DFIES.
    PARAMETER: pmatnr LIKE zmara-matnr,
               pernam like zmara-ernam.
    AT SELECTION-SCREEN ON PMATNR.
    perform p2.
    FORM P2.
    *****READ
    DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
          SCREEN_VALUE   LIKE  LINE OF SCREEN_VALUES.
    DATA:  MATNR1 LIKE ZMARA-MATNR,
          ERNAM1 LIKE ZMARA-ERNAM.
    SCREEN_VALUE-FIELDNAME = 'PMATNR' .             " Field to be read
    APPEND SCREEN_VALUE TO SCREEN_VALUES. " Fill the table
    CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME                   = SY-CPROG
                DYNUMB                   = SY-DYNNR
                TRANSLATE_TO_UPPER       = 'X'
           TABLES
                DYNPFIELDS               = SCREEN_VALUES.
    read TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.
    MATNR1 = SCREEN_VALUE-FIELDVALUE.
    *OVERLAY MATNR1 WITH '000000000000000000'.
    *SHIFT MATNR1 RIGHT DELETING TRAILING SPACE.
    UNPACK MATNR1 TO MATNR1.
    SELECT ERNAM FROM ZMARA INTO ERNAM1 WHERE MATNR = MATNR1.
    ENDSELECT.
    *message ERNAM1 TYPE 'I'.
    **********UPDATE
    CLEAR SCREEN_VALUES[].
    CLEAR SCREEN_VALUE.
    SCREEN_VALUE-FIELDNAME = 'PERNAM' .             " Field to be read
    SCREEN_VALUE-FIELDVALUE = ERNAM1.
    APPEND SCREEN_VALUE TO SCREEN_VALUES. " Fill the table
    CLEAR SCREEN_VALUE.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
                DYNAME                   = sy-CPROG
                DYNUMB                   = SY-DYNNR
           TABLES
                DYNPFIELDS               = SCREEN_VALUES.
    loop at screen_values into screen_value.
      message SCREEN_VALUE-FIELDVALUE TYPE 'I'.
    ENDLOOP.
    ENDFORM.
    Moderator Message: Put a little more effort from your end. Did you check in Debugger?
    Edited by: kishan P on Mar 30, 2011 12:21 PM

    Hi Manfred,
    Replace all the DYNP_VALUES_UPDATE-related content by the following statement:
    SET USER-COMMAND 'xxx'.
    While DYNP_VALUES_UPDATE does update the fields, a roundtrip is not triggered so the content of the fields will not be refreshed. The SET USER-COMMAND does that.
    Hope this helps you!
    Cheers, Roel

  • Check for mandatory fields while creating EP users using code .. :|

    Hello All,
    I have a code using which I can create user accounts/EP users on Portal, am working on EP6 SP9 & SP12.
    <u>My query</u>:
    1. <i>From Portal's perspective</i> -> While creating EP users, there are few mandatory fields like user-id, FirstName, LastName, Email-id and Password. If any of the above fields is null/empty, Portal would give us an error message.
    2. <i>From coding perspective</i> -> Here, only the user-id is required. Even if I do not enter/fill any of the above mentioned mandatory fields (except user-id), user account is created.
    In case wherein FirstName/LastName is not mentioned, Portal shows the userid in the Welcome Frame, i.e. Welcome <user-id>. Tried this by commenting the statements contains the methods related to setting/accepting FirstNme and LastName of user.
    <b>I want to know if this is all rite?
    If no, then please guide me as to how can I set mandatory fields in my code.</b>
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
    >>please guide me as to how can I set mandatory fields in my code??
    In ur jsp file or in the controls code add the following attribute
    <hbj:label id="userIdLabel"
               text="User ID"
               labelFor="userIdInput"
               design="HEADER3"
               required="true"/>
    and to check the mandatory entry for that field do this in the submit button
    <hbj:button id="insert"
                text="Submit"
                design="emphasized"
                onClick="save"
                onClientClick="if(!isMandatory()) htmlbevent.cancelSubmit=true;;"/>
    and in the javascript write the client validation code.
    Hope this helps.
    Regards,
    Joshua Kiran

Maybe you are looking for

  • How do i get itunes to acknowledge my iphone 5?

    hi. i had a problem with my iphone5 and so took it into the apple store. they reset the firmware and said taht i needed to set it up as a new phone as part of the problem was rooted in my icloud backup. the phone itself is now working fine but now i

  • Calculate Time Series in a query

    Hi there, I got follwoing Query SELECT ROW_NUMBER() OVER(Order by Series.Date) AS RowId, Instrument.idInstrument, Series.Date, Series.Value * Series_1.Value AS EURVal FROM Series AS Series_1 INNER JOIN SeriesSubscription AS SeriesSubscription_1 ON Se

  • The Pressure is greyed out in Calligraphy Brush Options. Can anyone explain this to me?? NEED HELP

    cant pick it, it was greyed out only Fixed and Random can be choosen from the Calligraphy Brush Options. NEED HELP

  • PLS-00418: array bind type must match PL/SQL table row type

    If a PL/SQL table is indexed by CHAR and is a parameter in a Stored Program, we are not able to call the stored program from the Java code. We get the following error code. java.sql.SQLException: ORA-06550: line 1, column 62: PLS-00418: array bind ty

  • How can i getParameter then put inti DOM...

    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <%@ page import="javax.xml.parsers.*" %> <%@ page import="org.w3c.dom.*" %> <% String getCate = request.getParameter("category"); %> <html><head>