In EBAN Table custom fields to be updated by BAPI_PR_CREATE

Hello all,
My requirement is PR creation by BAPI_PR_CREATE Function Module .
for pr item level customer added 10 fields in the EBAN table append structure CI_EBANDB. .
i am creating PR by using Funcation module BAPI_PR_CREATE.
In this Function Module I have to pass the structure name and field values in the EXTENTIONIN .
what is the structure name I have to pass and how populate data in to the EBAN table.
after that i have to create PR and updating 10 custom field values in the EBAN Table.
how to proceed for updating the customer field values in the eban table.
after updating the table i have to show all the custom fileds in the PR screen.
thanks in advance.
sri

Try with the below link:
[http://help.sap.com/saphelp_47x200/helpdata/en/3e/0e1089c24611d1ad09080009b0fb56/frameset.htm
Regards,
Kiran Bobbala]

Similar Messages

  • XD01 Custom screen for custom fields,need to update tables kna1,knvv

    Hi all,
             I have designed a custim screen for XD01 with four custom fields five from kna1 other one from knvv table.  i need to update the respective tables with these fields in badi GET_DATA of method IF_EX_CUSTOMER_ADD_DATA how to update the database table. Please help me in the same.

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

  • Unable to update MARA table custom field in Material master

    Hi all,
    I have added one custom field in MM01,Basic View 2.
    For that i have apended that field in MARA table and created one subscreen for that.
    This field is visible in MM02/MM01/MM03 in basic data view 2 .
    The issue is that we are not able to save values in MARA table which we entered in this field.
    I cheked earliar in SDN but couldn't get the proper solution.
    i cheked the below available forum discussion link but couldn't get th proper solution.
    In material master How to add a new field on Basic data 1 view
    Regards,
    Amit

    Hi,
    please trye this :
    Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
    See below example code:
    PBO:
    MODULE initialize OUTPUT.
    CLEAR: sflight, ok_code.
    IF exit IS INITIAL.
    CALL METHOD cl_exithandler=>get_instance
    CHANGING
    instance = exit.
    ENDIF.
    CALL METHOD cl_exithandler=>set_instance_for_subscreen
    EXPORTING
    instance = exit.
    ENDMODULE.
    The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
    MODULE data_for_subscreen OUTPUT.
    program = sy-repid.
    dynpro = sy-dynnr.
    CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
    EXPORTING
    exit_name = 'BADI_SCREEN'
    calling_program = program
    calling_dynpro = dynpro
    subscreen_area = 'SUB'
    IMPORTING
    called_program = program
    called_dynpro = dynpro.
    CALL METHOD exit->put_data_to_screen
    EXPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDMODULE.
    PAI:
    MODULE user_command_0200 INPUT.
    CASE save_ok.
    WHEN 'BACK'.
    SET SCREEN 100.
    WHEN 'SAVE'.
    PERFORM save_flights.
    WHEN '+EXT'.
    CALL METHOD exit->get_data_from_screen
    IMPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDCASE.
    ENDMODULE.
    The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
    These methods are implemented by the user:
    When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
    regards,
    ..Pradeep

  • Custom fields not getting updated in Mass Maintenance-MM17

    Hi,
    I have created a custom field in MARC table and the data is getting updated to the MARC table through MM01/MM02 but it is not getting updated by MM17.  I have checked the notes 44410, 576160, 414020 and 116311.  I have done the following changes as per the sap notes.
    1. Created a custom segment ZE1MARCM by copying the standard segment E1MARCM and added the custom field in that  
        segment.
    2. I have extended the IDOC 'MATMAS03' and added the custom segment ZE1MARCM to E1MARAM.
    3. Created a new entry in we82 and provided the extension type 'ZMATMAS03' and release '701'.
    4. Adjusted the partner profile in we20 for matmas with port and providing the extension idoc type.
    5. Added the custom field in the table MASSFLDLST.
    6. Implemented the code in BADI 'MG_MASS_NEWSEG' and exits 'EXIT_SAPLMV01_002' , 'EXIT_SAPLMV02_002' as per the 
        sap notes.
    The custom field is not getting updated through mass maintenance.  Please let me know if i have missed anything?
    Thanks,
    Geeta

    I had this same question several years ago. Please check my answer at Initialize MARC Custom Fields Using MM17 Does Not Work

  • ESS Leave Custom fields, how to update them using BADIs

    Hi There,
    We are trying to use custom fields provided in ESS leave application, and we want to update them using BADI. As these information is not available on the screen while requesting leave request.
    I did look at PT_ABS_REQ BADI and seems i can use Post_Vio_BLOP .. but its unable to update table PTREQ_ATTABSDATA .
    Can you please suggest what can be best approach here.
    Thanks a lot.
    Rgds,

    Sudhir wrote:>
    > I did look at PT_ABS_REQ BADI and seems i can use Post_Vio_BLOP .. but its unable to update table PTREQ_ATTABSDATA .
    Did you look at using the Implict Enhancement Options available at the beginning & end of the POST_VIA_BLOP Method? Or even better, enhance the Class CL_PT_ARQ_REQ_EXIT & replace the IF_EX_PT_ABS_REQ~POST_VIA_BLOP Method with an Overwrite Exit?
    ~Suresh

  • Limitation on Adding custom fields into VBAP (Updating from BAPI )

    I have added some custom fields into BAPI structure BAPE_VBAP and corresponding structure to update the custom fields added into VBAP.
    in my code i am passing the value bapiparex-valuepart1 = bape_vbap0(240). bapiparex-valuepart1 = bape_vbap240(240),
    bapiparex-valuepart1 = bape_vbap480(240) and bapiparex-valuepart1 = bape_vbap720(240)
    But, while activation its informing me that more than 441 character length not allowed for the structure. Where the total length should be allowed upto 960.
    is there any OSS notes which i can apply to extend the limit for adding more custom fields into VBAP .
    Please help

    Dear All,
    Good Morining.
    The User creation and Assigining roles is done by the same preson and As i have mentioned above i am disabling the Manage_User action,And if i give the responsiblity of assigining  roles to an other person then he can also create user (standard functionality) where i cannot add my required features.Thereby leading for inconsistency.Therefore we thought that we will also add this funtionality in Webdynpro application and for the same, we have to provide the search criteria where currently we are able to search the role based on data entry(eg:t* or Ume etc) .But we need to search also based on the DataSource(ie Portal Role ,All DataSource and UME).Please Can you guide me in this.
    Also please let me know if we are going in a right approach and also suggest any better approach to achieve the same.
    Thanks and Regards,
    Nishita Salver

  • Custom Field is not updating using MM17 ( Mass Material Maintenance )

    Dear All,
          I have created 1 custom field in MRP1 view of MM01 tranction & that field saved into MARC table. It is working fine & I am able to change also that field using tranction code MM02. But Problem is that I want to change that custom field of material master using tranction code MM17 , which is for mass Material Maintenance. So to edit custom field of material master from MM17 what I need to do?  Please suggest...
    Regards
    Pradip Pawar

    Hi,
    Follow the below procedure,
    1. In table MARC  custom fields need to be add using append structure. For that need to create data elements & domain for      corrosponding fields.
    2.In SE51 need to copy standard program SAPLMGD1 & screen 2481( In your case screen would be different ) in to Z program.     
    3.Now in to the layout of  Z program need to add custom fieldu2019s which we defined using append structure in MARC table.
    4.Need to add Field statment for the new custom fieldu2019s into the PAI Flow logic of Z program inside CHAIN...ENDCHAIN statement.
    5.Need to run transaction OMT3B and then copy screen sequence no. 21 into our Z screen sequence say Z1.
    6.Once screen sequence is copied into screen sequence Z1. select sequence Z1 and double click on data screen folder.Select  screen sequence with description MRP1 and after selecting it double click on Folder 'Subscreen ' and change the program given for screen no 2481 with our Z program name and Save.
    Imp Note - Refer SAP Note no. 44410.
    Regards,
    Pradip Pawar

  • Custom fields updation in EBAN Table for bapi_pr_create - Extensionin

    Hi all,
    My requirement is PR creation by BAPI_PR_CREATE Function Module .
    for pr item level customer added 10 fields in the EBAN table append structure CI_EBANDB. .
    i am creating PR by using Funcation module BAPI_PR_CREATE.
    In this Function Module I have to pass the structure name and field values in the EXTENTIONIN .
    what is the structure name I have to pass and how populate data in to the EBAN table.
    after that i have to create PR and updating 10 two custom field values in the EBAN Table.
    how to proceed for updating the customer field values in the eban table.
    thanks in advance.
    sri

    In the Extensionin pass the values
    Structure - EBAN
    VALUEPART1 - Pass the value for customer fields.
    Please reward if useful.

  • Updating EBAN TAble with custom field values by BAPI_PR_CREATE

    Hi all,
    My requirement is PR creation by BAPI_PR_CREATE Function Module .
    for pr item level customer added 10 fields in the EBAN table append structure CI_EBANDB. .
    i am creating PR by using Funcation module BAPI_PR_CREATE.
    In this Function Module I have to pass the structure name and field values in the EXTENTIONIN .
    what is the structure name I have to pass and how populate data in to the EBAN table.
    after that i have to create PR and updating 10 two custom field values in the EBAN Table.
    how to proceed for updating the customer field values in the eban table.
    thanks in advance.
    sri

    Hi Sri,
    better you dont use it. try this..
    example code:
    data: i_banc type bapiebanc occurs 0 with header line.
    data: i_bkn type bapiebkn occurs 0 with header line.
    data: i_ret type bapireturn occurs 0 with header line.
    data: i_band type bapieband occurs 0 with header line.
    data: i_bantx type bapiebantx occurs 0 with header line.
    data number type bapiebanc-preq_no.
    i_banc-acctasscat = par_asset.
    i_banc-short_text = 'VehicleBooking'.
    i_banc-quantity = '1'.
    i_banc-DEL_DATCAT = '1'.
    i_banc-deliv_date = par_date .
    i_banc-mat_grp = 'TRAVEL'.
    i_banc-unit = 'ST'.
    i_banc-c_amt_bapi = 100.
    i_bkn-cost_ctr = par_cost.
    i_bkn-g_l_acct = par_gl.
    i_bkn-fund = par_fund.
    i_bkn-funds_ctr = par_fund_ctr.
    append i_banc.
    append i_bkn.
    call function 'BAPI_REQUISITION_CREATE'
    exporting
    skip_items_with_error = 'X'
    importing
    number = number
    tables
    requisition_items = i_banc
    requisition_account_assignment = i_bkn
    requisition_item_text = i_bantx
    return = i_ret
    Describe table i_ret lines count.
    If count > 0.
    loop at i_ret.
    Message e000(zbooking) with i_ret-message
    endloop.
    Endif.
    if not number is initial.
    S000(zbookings) with 'Requisition number ' , number ,' created'.
    endif.
    thanks
    trinadh

  • Updating EBAN table with custom field values for BAPI_PR_CREATE

    Hi all,
    My requirement is PR creation by BAPI_PR_CREATE Function Module .
    for pr item level customer added 10 fields in the EBAN table append structure CI_EBANDB. .
    i am creating PR by using Funcation module BAPI_PR_CREATE.
    In this Function Module I have to pass the structure name and field values in the EXTENTIONIN .
    what is the structure name I have to pass and how populate data in to the EBAN table.
    after that i have to create PR and updating 10 two custom field values in the EBAN Table.
    how to proceed for updating the customer field values in the eban table.
    thanks in advance.
    sri

    Hi
    First you need to append a  structure in EBAN table, The values you need to pass to the
    BAPIPAREX - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
    Structure will be the appen strucre created in EBAN.
    You can pass the values of the 10 fileds to the VALUEPART1, VALUEPART2 fileds in the structure with 240 charcters each.
    Hope this helps.
    Thanks & Regards
    Kishore

  • Can Me_REQ_POSTED (in ME54) be used to modify custom fields in EBAN?

    Hi ,
    I have a requirement that I have to validate the approver authorization when he tries to approve the PR. I am using the badi ME_REQ_POSTED and the method is 'POSTED'. I have created a z implemetation including this method and the validation are working fine, But at the same time I need to update some custom fields while this check in the BADI.
    I have tried BAPI_PR_CHANGE, direct using update statement but still unable to update the custom fields in EBAN TABLE.
    I have noticed that at point of update custom field is  getting updated but when later on the release status gets updated from the system my custom field value also vanishes.

    After BAPI you need to use CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Are you using it?
    Apps

  • Custom fields appended in /SAPAPO/MM_DOC table gets cleared after BOP

    Hi,
    I appended few fields in /SAPAPO/MM_DOC table for STO's. I was able to populate it from ECC.
    But once the BOP job has run all these custom fields are getting cleared.
    Can someone tell me how to fix this.
    Thanks
    Kranthi

    Hi Vaibhav,
    Some of the custom fields has been added to /SAPAPO/MM_DOC table in SCM to populate data of STO's in ECC.
    These custom fields will be updated using  BADI's in SCM.
    When the Back Order Processing(BOP) runs on SCM for these STO's these fields whatever has been updated from ECC are cleared.
    How can I stop clearing these custom fields.
    Can I use any exits or BADI's which can update these fields during BOP.
    Regards,
    Kranthi

  • Updation of Custom fields in MBEWH from MBEW

    Hi ABAPpers,
    Can anyone give me any clarity  if I append same structure in both MBEW and MBEWH, then during the update will these custom fields also gets updated? Or do we have any other procedure to do this?
    Edited by: VKUPPILI on Dec 9, 2011 1:17 PM

    Hi,
    The append field will be  the ZFILEDS that you add. Those will not get updated automatically but proper enhancements has be written to pass values to that field. The include where you can start to have a look is LMBMMF20 (FORM MBEW_UPDATE)..
    Hope that Helps
    Anirban M.

  • Custom fields values not saved in AUFK using bapi_alm_order_maintain

    Hi ,
        We have a requirement where we have to update the custom fields in enhancement tab of IW31 using bapi_alm_order_maintain.
    We are able to get the successful creation of work order ,but the custom fields are not updated in enhancement tab aswell in aufk table. We are passing values in below table of bapi.
    EXTENSION_IN
                STRUCTURE           =  CI_AUFK
                VALUEPART1        =  '20091223' .
    Please provide the solution.

    Hi Phani,
    May be these links are helpful:
    BAPI extention to work order aiming AUFK custom field filling
    Update custom fields in MARA (BAPI_MATERIAL_SAVEDATA)
    Also search sdn using the BAPI function module, you may get some idea.
    Regards,
    Swarna Munukoti

  • Custom field in PO header tab and its editable status

    Hi All,
    I have added an input field in the PO header (Customer Data) tab.
    The same field has been appended in the EKKO table.
    The update as per user's entry in PO is getting done in database table.
    The field will get grayed out for ME23N tcode and will be editable for ME21N and ME22N.
    The logic has been written in the PBO section.
    Now, within the tcode ME23N, user has option to get into change mode by pressing F7.
    Once user clicks F7, the PO gets into change mode, but the custom field will be still in uneditable mode itself.
    There are couple of other custom fields are in the same tab. They get into change mode with F7, but this alone remains un editable.
    How to make it editable in this scenario???
    Regards
    Pavan
    Edited by: Pavan Sanganal on Dec 26, 2011 6:56 PM

    HI Pavan,
    so only one custom field will not update in update mode after clicking f7 , so what happend exactally when user clciks on f7 the field properties are changed in to editable mode, in module pool program we can change field properties using internal table SCREEN , so loop the screen check this input field properties , like
    loop at screen .
    if screen-name = 'custom_field'.
    input = 'x'.
    endif.
    endloop.
    Regards
    Siva

Maybe you are looking for

  • Apple TV 2 Stops Playing after 2 Songs

    My apple TV 2 plays 2 songs and stops since I downloaded the iTunes and Apple TV updates. Is Apple jamming our home libraries so that we pay $24.99 per year for iTunes Match? I'm ready to drop Apple products.

  • Authorization problems with oranetb user

    We have set up Apex in an oracle database, that are installed on unix operative. We have problem with the authorization for the oranetb user. On the unix system we have one user that can call scripts with for example unix command like ls, cp, etc. No

  • Which group should GI_HOME and ORACLE_HOME belong to after installation?

    Hi, I finished installation and creation of database. However now I think all the group for GI_HOME belong to grid:oinstall and ORACLE_HOME belong to oracle:oinstall. Do I have to change them to dba as group? Thanks

  • Provisioning, security classes etc.

    Hi there, I have several questions about setting up security in HFM application. 1. Provisioning We have sevaral users that can be divided into two general groups - end users and consolidation users. General users should use only project view with ta

  • USING TRIGGER ON VIEW

    Hi, Can I use a trigger on a view, which insert/ update/ delete on a table(not base table) whenever a data change in the view. Thanks