Using BBP_CUF_BADI to display custom screens

I am using BBP_CUF_BADI to display my customer screen on the Shopping Cart Item Screen. How do I pass data to my custom screen? I would like to display my CUF fields, I would like the data from the standard fields on the Shopping Cart line item. Any help would be appreciated.

Hi Jagathi,
You'll name the FM as you want.
The pupose of these 2 FM is to exchange data between the BADIs methods and the Function Group (with global data of the FG).
The 1st FM is to be called from the PUT_DATA method of the BADI, to send data to the Function Group (FG global data): for example items and/or header and iv_mode, ...
The 2nd FM is to be called from the GET_DATA method of the BADI to get the result of the subscreen (CUF changes).
Hope you'll get it all.
Vadim

Similar Messages

  • Using BBP_CUF_BADI to display custom screen in bid Invitation

    Hello Everyone,
    I have a requirement of enhancing Process Bid Invitation,  adding customer fields.
    I hv added the fields but I want to change the layout of added customer screen.
    I tried to implement BBP_CUF_BADI, but it doesnt seem to work.It still shows the field one below the other.
    I hv also read notes 458591 and 672960.
    I would like to hv step by step instructions of steps to be followed.
    Thanks in advance for the help. Please revert ASAP.
    Regards,
    Kunal

    Hello, BBP_CUF_BADI is used to handle the vizualization of the customer fields, i.e. with BBP_CUF_BADI you can decide if you want a field to be displayed and if it has the read-only attribute, customer fields are displayed using a table control, the layout of the customer fields is rendered using a template that expands the line of the control table and map those fields with a name-value logic.
    If you want to customize the layout of the screen you will have to rewrite the templates contained in the internet service BBPCUF.
    Regards, Luciano.

  • Workflow: call transaction CJ20N not displaying customized screen

    Experts,
    My workflow needs to call transaction CJ20N. so that the user can accept a customized field on the project display. When I called the transaction, I did not see the customized fields on the display. I need to call transaction CJ20N that will display all the fields that have been customized on the screen display. I am not using SET PARAMETER before I make the call as it was unclear to me what the SET PARAMETER is used for.
    Any clue would be appreciated.
    thank you
    david Dittmer

    Hello Modak,
    I agrree that a parameter ID will not solve this issue. To test I built a stand alone ABAP program with the following code:
    data: bdcdata_wa typr bdcdata,
    bdcdata_tab type table of bdcdata.
    clear bdcdata_wa,
    bdcdata_wa-program = 'SAPLCNPB_M'.
    bdcdata_wa-dynpro = '1000'.
    bdcdata_wa-dynbegin = 'X'.
    append bdcdata_wa to bdcdata_tab.
    bdcdata_wa-fnam = 'PSP'.
    bdcdata_wa-fval = 'P.2009.00002'.
    append bdcdata_wa to bdcdata_tab.
    Call transaction 'CJ20N' using bdcdata_tab.
    This call works  just fine in a stand alone ABAP but will not work in a workflow method....any suggestions or clues
    Thank you

  • Custom screen in BBP_CUF_BADI

    Hi,
    I know that this topic was discuss a million time on the forum, but I still didn't get how to put my customer fields in customer screen.
    I append the structures as it's describe oss note 458591 and 672960 and use badi bbp_cuf_badi.
    Everything is fine.
    Now i want those fields to be display in a cutomer screen with its own template. So I create a function group where i add 2 function module: one for the put_data method and the second for the get_data method. I also create 2 screens in the Function group.
    Now how I call thoses screens? simply by a "call screen" command?
    thanks for the help,
    joseph fryda
    Message was edited by:
            joseph fryda

    hola -
    did you figure this out?  here is some other posts around this, but also the SAP documentation in SPRO for that BADI (depending on the release) is pretty good as well. 
    Other Posts:
    Custom screen
    Using BBP_CUF_BADI to display custom screens
    thanks for the other points earlier.
    stirfry...today is 'chicken'

  • How can i force my mac book pro to use an external display

    how can i force my mac book pro to use an external display
    my screen is black

    What sort of adapter are you using?
    Clinton

  • Custom screen area for notification

    Dear Gurus ,
      As per customer requirement I need to create a screen area called Z10 , how can I create the same .I can not use existing 090 / 091 custom screen areas , since I have devoloped the custom screen in screen area 090 as well as 091 but this screen areas are calling in another transactions also (like in IW21)which I must not modify.Please suggest me asap.
    Thanks in advance
    Anil

    Not answered but closing due to lack of inputs

  • Custom screen using BBP_CUF_BADI

    Hi,
    I am trying to call a custom screen using implementation of BADI, BBP_CUF_BADI.
    I have written the following code in the implementation of the PUT_DATA method.
    EV_REPID = 'Z_SCREEN'.
    EV_DYNNR = '8888'.
    The screen is not displayed. Also if you could tell me if the displayed screen will have the look and feel of GUI screen or the look and feel will be similar to the SRM screen in the web?
    Thanks,
    Mick

    Hi Yann,
    John is doing a call screen in code. But when you do that you start a different memory process. Also with the code that I have written in the badi
    EV_REPID = 'SAPLZCUST_SCREEN'.
    EV_DYNNR = '8888'
    the PBO of the screen gets executed but the screen is not displayed.
    Please help!!!!!
    Thanks,
    Mick

  • Custom Screen using BADI seen in ME23N, ME22N Display, but not in ME21N

    Hi,
    I have developed a custom screen for purchase order using badi ME_PROCESS_PO_CUST and ME_GUI_PO_CUST.
    But, its not visible in ME21N, whereas its dipalyed in ME23N, ME22N .
    Please advise.
    Thanks,
    Shivaa....

    In TC CMOD you can create a new proyect and use the component MEREQ001 with this component you can see adicional tab in those TC.

  • Added custom screen in PO using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

    Hi All,
    I have added custom screen with two z fields at item level using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST i can see my screen in tcodes ME21N , ME22N , ME23N but I am not able to save data.
    and also screen is coming in change mode even in ME23N .
    thanks.

    Hi,
    I have added two xfields at item level.
    This is the code i have added in zimplementation ZME_GUI_PO_CUST .
    IN Zimplementation ME_PROCESS_PO_CUST I have added code only in method FIELDSELECTION_ITEM . after doing this I can see only screens in ME21N, ME22N, ME23N but when enter data in zfields and trying to save it is giving me message no data has changed.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = subscreen1.
    the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    the program where the dynpro can be found
      ls_subscriber-program = 'SAPLYMEPOBADIEX'.
    each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    a label can be defined
      ls_subscriber-label = text-001.
    the position within the tabstrib can be defined
      ls_subscriber-position = 4.
    the height of the screen can be defined here. Currently we suport two screen sizes:
    value <= 7 a sevel line subscreen
    value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
      ENDIF.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_MODEL.
      DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    system asks to transport data from the business logic into the view
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
    transport standard fields
          ls_mepoitem = l_item->get_data( ).
    transport customer fields
          CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
            EXPORTING
              im_ebeln = ls_mepoitem-ebeln
              im_ebelp = ls_mepoitem-ebelp
            IMPORTING
              ex_data  = ls_customer.
    store info for later use
          MOVE-CORRESPONDING ls_mepoitem TO dynp_data_pbo.
          MOVE ls_customer-badi_bsgru TO dynp_data_pbo-badi_bsgru.
          MOVE ls_customer-badi_afnam TO dynp_data_pbo-badi_afnam.
        WHEN OTHERS.
      ENDCASE.
    endif.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_PUSH'
            EXPORTING
              im_dynp_data = dynp_data_pbo.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_POP'
            IMPORTING
              ex_dynp_data = dynp_data_pai.
          IF dynp_data_pai NE dynp_data_pbo.
    something has changed therefor we have to notify the framework
    to transport data to the model
            re_changed = mmpur_yes.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_MODEL.
    DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    data have to be transported to business logic
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
          ls_mepoitem = l_item->get_data( ).
    standard fields changed?
         IF dynp_data_pbo-matkl NE dynp_data_pai-matkl OR
            dynp_data_pbo-plifz NE dynp_data_pai-plifz OR
            dynp_data_pbo-webaz NE dynp_data_pai-webaz.
    update standard fields
           ls_mepoitem-matkl = dynp_data_pai-matkl.
           ls_mepoitem-plifz = dynp_data_pai-plifz.
           ls_mepoitem-webaz = dynp_data_pai-webaz.
            CALL METHOD l_item->set_data( ls_mepoitem ).
         ENDIF.
            CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
              EXPORTING
                im_ebeln = ls_mepoitem-ebeln
                im_ebelp = ls_mepoitem-ebelp
              IMPORTING
                ex_data  = ls_customer.
            ls_customer-badi_bsgru = dynp_data_pai-badi_bsgru.
            ls_customer-badi_afnam = dynp_data_pai-badi_afnam.
            CALL FUNCTION 'YMEPOBADIEX_SET_DATA'
              EXPORTING
                im_data = ls_customer.
         ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM.
    DATA: l_persistent TYPE mmpur_bool.
    CONSTANTS:
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    l_persistent = im_item->is_persistent( ).
    *IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_NUM."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_DES."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    *ENDIF.
    ENDIF.
    endmethod.

  • Customer screen using BADI :  ME_GUI_PO_CUST

    Hi
    I am implementing BADI : ME_GUI_PO_CUST to create custom screen at item level.
    Pls tell me the steps to be followed to get custom screen using BADI
    Thanks
    Vinay.

    Hi Vinay,
    go to transaction SE18, then enter your BADI.The in menu go to Goto -> Sample Code -> Display. You will see example of implementation of this BADI. All these examples are very well commented. Basically you will have to create your own function group with your new screen and call this screen from methods of BADI.
    Cheers

  • Custom Screen doesn't display properly

    I am on SRM 5.5 and I have created a custom screen with a custom field in all the proper structures it's supposed to be in.  The screen has been generated into HTML and it has a service.  I am calling the screen in the BADI BBP_CUF_BADI.  The field is showing properly, but my problem is that my custom screen is not displaying where I expect.  If I generate the HTML template as a type classic, it doubles my fields when it displays and it shows them at the top of the header above all the other standard fields.
    If I create my HTML template as WEBGUI, it covers the entire Header section and displays partly at the top over the standard buttons on the screen and partly at the bottom after the last header field.  I presume the custom screen should display after the last header field.  Does anyone know why the screens behave differently when I generate the templates as Classic (shows twice) versus WEBGUI and does anyone know what I might be doing wrong?
    Points will be rewarded.
    Thanks,
    Marty

    Hi
    There seems like a bug in the SRM system...
    Have you created a bespoke service in this case ? Please give some more insights in next reply ?
    Meanwhile, go through the links which might help ->
    Contract Custom fields are not showing
    Re: New Tab in Bid Process Screen
    Re: New screen with table control information in Process Bid Invitation
    BBP_CUF_BADI_2
    Regards
    - Atul

  • How to make a field in custom screen as display field in screen exit

    Hi ,
    I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .
    Code which i have used .
    in PBO
    if sy-tcode = 'CO03'.
    loop at screen .
    if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.
    ( subscreen - screen name given in screen editor and   resb-potx1 field name given in screen editor )
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    and even i tried in PAI too .....
    if sy-tcode = 'CO01' or sy-tcode = 'CO02'.
    update resb set POTX1 = RESB-POTX1
    where aufnr = i_aufnr.
    elseif sy-tcode = 'CO03'.
    *oop at screen .
    *f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    but itshows as input field only ........how to make that custom field as display field in CO03

    HI Andy,
    Try this out.
    FIrst check the sy-dynnr, if it is same as your custom screen number
    in PBO of your custom screen
    if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.
    loop at screen
    if screen-name = 'YOUR_SCREEN_NAME'
    screen-input = 0.
    modify screen
    endif
    endloop.
    endif.
    if it wont work they try using Tcode SHD0
    Hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • How to open a Excel file and display on the custom screen

    Guys, I am new to screen programming. In my first screen (SCREEN #9000) I want to put a field, where I must be able to select a file from my desktop and when I click the DISPLAY button, it should suck all the data from the spread sheet in to an internal table, and should display the next screen  (SCREEN #9001), displaying the data from the internal table along with a button called LOAD. Now when I click the LOAD button after reviewing the data, it must load the data to my custom table in R/3. I know how to load an Excel spreadsheet to R/3 without the custom screens. But my requirement now is to do from custom screens like I mentioned above. Any ideas how to do this? Thanks.
    Dan

    Hi Dan,
    In my first screen (SCREEN #9000) I want to put a field, where I must be able to select a file from my desktop and when I click the DISPLAY button, it should suck all the data from the spread sheet in to an internal table, and should display the next screen (SCREEN #9001)
    For  this create a MPP program and create a Push button. Write the code for this to open a file like use f4_filename.From here you are able to select a file.
    + displaying the data from the internal table along with a button called LOAD. Now when I click the LOAD button after reviewing the data, it must load the data to my custom table in R/3.+
    With the above you are able to open a file and now you have to load that data into internal table. Select the file from the desktop.
    Totally you have to create 1) Screen 2) Push button( Open File) 3) Load data ( From file) .
    [Create Push Buttons|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba9a635c111d1829f0000e829fbfe/content.htm]
    Check this if there is any please post.
    Regards,
    Madhu.

  • In Executable program displaying results in custom screen.

    Hi,
    I have a executable program,  when the program display's the out put of this program I need to display output in custom screen (like screen 100) instead of displaying in default List screen.
    Can any one tell me how to create and display output in that screen.
    Thanks.
    Chris.

    Hi,
      Check the pseudo code....
    <b>Start-of-selection.</b>
    Retrieve data
    <b>End-of-seleciton</b>
    call screen 0100.
    <b>*PBO</b>
    form PBO_200 output.
    endform.
    <b>*PAI</b>
    FORM PAI_200 input.
    endform.
    To call Screens use any of the following commands
    <u><b>1. CALL SCREEN scr.</b></u>
    Addition:
    ... STARTING AT x1 y1 ... ENDING AT x2 y2
    <b>Effect</b>
    Calls the screen scr; scr is thenumber of a screen of the main program. You use SET SCREEN 0. orLEAVE SCREEN. to define thereturn from the CALL screen.
    <b>Addition</b>
    ... STARTING AT x1 y1  ENDING AT x2 y2
    <b>Effect</b>
    The coordinates x1, y1 (start column andstart line in the window) and x2, y2 (end column and endline in the window) define the size and position of the CALLscreen ("top left - bottom right"). Besides these coordinates,you can also see the contents of the primary window, but cannot performany action there.
    <b>Note</b>
    If "ENDING AT ..." is not specified, suitablevalues are substituted for x2 and y2, taking into accountthe size of the called screen.
    <b>Note</b>
    <b>Runtime errors:</b>
    DYNP_TOO_MANY_CALL_SCREENS: No further screen level (callscreen); the maximum number of nested screen levels is restricted to 50at present.
    2. <u><b>SET SCREEN scr.</b></u>
    <b>Effect</b>
    In ABAP dialogs: Sets the number of the nextscreen.
    Screen number scr is then processed when the current screen has finished.
    <b>Example</b>
    SET SCREEN 200.
    <b>Notes</b>
    To leave a CALL SCREEN chain or return to the application menu, use one of the followingstatements:
    SET SCREEN 0. or LEAVE TO SCREEN 0.
    I hope this solves your problem.
    Regards,
    Vara

  • Add customer fields using BBP_CUF_BADI

    Hi,
    I am trying to add my own subscreen to PO Item screen.
    In order to do that I created a Function Group and assigned my screen to it. the screen contains a push button.
    In order to display my screen at the PO item I used the
    PUT_DATA method of badi BBP_CUF_BADI to export to the standard program the name of my function group and the number of the screen via the EV_REPID and EV_DYNNR export parameters of the method.
    What I need to do next in order to display my screen;
    Do I need to create an HTML template or set some other parameters?
    The system is working on the Extended Classical Scenario.
    Thanks for your help,
    Eyal.

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

Maybe you are looking for

  • Performance tuning for ABAP Query (created from t-cd SQ01)

    Hello all, We created ABAP Query report from transaction SQ01. But the generated report has an appropriate SQL statement which causes performance problem. To solve this issue, I guess the easiest way is; 0. Give up to use it. 1. Copy it to another ob

  • What datatype should i use to store imaq image in sql database?

    Hi there i am thinking of saving the imaq image into database for retrieval in my website so that it's like a stream but i don't like what datatype does labview store the image as.

  • ITunes library - MP3 and WMA

    Hey! I tried to find solution to my problem, but no success. I have about 30GB audio library with many WMAs. I would like to transfer everything to MP3 or other iTunes format. Is it possible that iTunes automatically copy evrything to new folder and

  • Failed to edit context value via OAM

    I was modifying a new value to PERL5LIB variable through OAM as below: /d001/app/oracle1/product/10.2/perl/lib/5.8.3::/d001/app/oracle1/product/10.2/perl/lib/site_perl/5.8.3::/d001/app/oracle1/product/10.2/perl/lib::/d001/app/oracle1/product/10.2/app

  • Importing development class into SAP from out site

    Hi Guys, I am integrating SAP-GIS Using Smallworld business integrator 4 for SAP. In the doumentaion they asked to import K900363.DEV D900363.DEV R900363.DEV into SAP from SBI4 with TR All development classes are located in one single transport reque