BDC - avoiding default values in screens

Hi all,
I am writing a BDC for transaction me31k. There are nearly 14 fields in the first screen. I am passing values to only 5 of them in my BDC program. The problem I am facing is that the remaining fields get some default values which I am not passing.
I am not populating space for these fields in my BDC program to avoid the default values. Is this the right way of doing this ? please let me know if there is any other way.
Thanks,
MGS.

if the transaction is a change tcode then the values already existing will be there, if you don't want them the only way is to blank them out in your program. Or else if you are creating and the default values are not set from the functional perspective then check your program once. Or else it should work find with the fields you are populating as long as the other fields are not mandatory.
Run the SHDB and pass only the values you want to and leave the rest. you will know how it behaves and code accordingly.
Hope it helps.

Similar Messages

  • How to default values on screen using FREE_SELECTIONS_INIT

    Hi Experts,
    I have the following requirement :
    We have developed a screen on which there is a button. On click of the button, a dynamic selection screen is generated using the functions FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG.
    I want when the selection screen is generated for the first time, the fields on it contains some default values taken from a table.
    e.g. If Screen has fields MARA-MATNR, MARA-MTART, MARA-MEINS then MARA-MEINS should be defaulted with a value 'EA'.
    I have tried a lot but could not find a solution to it.
    Kindly help me out as this is very urgent.
    Points are guaranteed..
    Thanks in advance.
    Regards,
    Himanshu

    SELCTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK_1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_RADLOC RADIOBUTTON GROUP GRP1 USER-COMMAND USER  .
    SELECTION-SCREEN BEGIN OF BLOCK SUB1_BLOCK WITH FRAME TITLE TEXT-002 NO INTERVALS.
    PARAMETERS : P_LOCNO TYPE /SAPAPO/LOCNO MODIF ID ABC default 'Specify the default value here.
    SELECTION-SCREEN END OF BLOCK SUB1_BLOCK.
    SELECTION-SCREEN SKIP .
    PARAMETERS : P_RADRES RADIOBUTTON GROUP GRP1  DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK SUB2_BLOCK WITH FRAME TITLE TEXT-003 NO INTERVALS.
    PARAMETERS : P_RESNM TYPE /SAPAPO/RES_HEAD-NAME MODIF ID XYZ.
    PARAMETERS : P_NOB   TYPE /SAPAPO/CRES_NOINDIVRES  MODIF ID XYZ.
    SELECTION-SCREEN END OF BLOCK SUB2_BLOCK.
    SELECTION-SCREEN END OF BLOCK BLOCK_1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF P_RADLOC = WL_SPACE .
          IF SCREEN-GROUP1 = WL_ABC.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSEIF P_RADRES = WL_SPACE .
          IF SCREEN-GROUP1 = WL_XYZ.
            CLEAR : P_RESNM, P_NOB.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSE.
          SCREEN-ACTIVE = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • Default values for Screen Fileds

    Hi All
    By default, if a user doesnt give a value for a particular field, it will have the Default Value of the particular type.But i want it to retain a Null Value in such case. Is it possible.
    I have a numeric field in my screen. I need ot trigger a error message if the user doesnt enter any value..
    And to accept if ihe enters 0.
    BUt even if the user doesnt give any value, the screen field gets 0.
    Is there any way to do this

    You might want to check out using the "on request" on some modules in the screen flow to determine if the user has keyed something in... from [Conditional Module Calls|http://help.sap.com/saphelp_46c/helpdata/EN/9f/dbabbd35c111d1829f0000e829fbfe/content.htm] :
    ON REQUEST
    The module <mod> is only called if the user has entered something in the field. This includes cases when the user overwrites an existing value with the same value, or explicitly enters the initial value.
    Jonathan

  • Dislpay Default value on screen

    Hello Experts,
    I am doing Module Programminmg, There i have some issue, I want to display default cale on screen, when user enter tcode, I have written code like this in PBO :
    PROCESS BEFORE OUTPUT.
    module set_value.
    MODULE STATUS_0100.
    MODULE SET_VALUE OUTPUT.
    RM60X-ENTLU = 'D'.
    RM60X-DATVE = sy-datum.
    ENDMODULE.                 " SET_VALUE  OUTPUT
    but it is not showing these value on screen, Please guide me how i can display these values on screen.
    Waiting for a positive response....

    Hi,
    check if the screen fields in screen painter has the same names or not??
    if not create a internal table in top include or directly put the fields from database into the screen fields.
    it will solve your problem.
    Regards,
    Rajesh Kumar

  • How to set default values on the screen painter parameters?

    Hello ABAP Gurus,
    I would just want to ask how to set default values on the screen painter parameters.
    Thank you for your replies.

    Hi,
    To set default values for screen painter parameters initialize the field names with default values in the PBO module....
    say u have the field name as f_field1....
    in the PBO of that screen initialize it....
    f_field1 = '100'  "here 100 is the default value.
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • How to Restrict Master data in value help screen for a user???URGENT

    Hello Gurus,
    I have a requirement.When a authorized user logins to view the report, he should see only list of customers assigned to that user in the value help screen, instead of displaying whole master data.and the data is displayed perfectly fine for the authorized sales rep. By default, Value help screen displaying all the customer numbers.
    How can I restrict in the value help screen?
    Any help appreciated with points.
    Regards,
    PNK

    Hi Chandran,
                I got that Idea too. I created a authorized customer, I created a authorized Object and assigned to a role.But in the role, when I am changing the object to generate profile, it is asking to select list of customers from the customer table.If the customers are always constant then this would work,  but in my scenario, customers for the sales rep changes over time and when I ever reps open the query, they should see updated list of customers assigned to them only, as we update the master data everyday from source system and that shud reflect in the value help.
    I am trying User Exit to achieve this, but I am not getting proper ideas how to do this.
    Any Help on this issue with user exit code???
    Thanks in Advance
    regards,
    PNK

  • Set Default Values on Purchasing Scheduling Agreements

    Good day All.
    I need to ensure that the  Confirmation Control Key(EKPO-BSTAE) , Unlimited Over delivery indicator (EKPO-UEBTK), Creation Profile (EKPO-ABUEB) and Jit indicator (EKPO-FABKZ) is automatically updated with default values when a scheduling agreement is created for a specific purchasing organisation. Please advise if this is possible via config (SPRO). 
    Many thanks, Yumna
    Edited by: Yumna Abrahams on Aug 10, 2011 2:58 PM

    Hi,
    To set default values for screen painter parameters initialize the field names with default values in the PBO module....
    say u have the field name as f_field1....
    in the PBO of that screen initialize it....
    f_field1 = '100'  "here 100 is the default value.
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • Feature to default values on infotype screens

    Hi All,
    Could I use a Feature (txn PE03) to determine the default values on an infotype screen?
    For example, I want the value in field FUNKT on Infotype 34 to default to say 'KLMN' if the Employee Group is '1' and the Emp. sub group is 'Z5'.
    I would like to use the screen modification config (table T588M) to assign the Feature and get the values without coding.
    I know I can achieve this by using a subroutine on dynamic actions or a BADI for infotype processing etc. but I am lazy and don't want to code if I can avoid it.
    Many thanks in advance
    Sanjay

    Thanks Sarika.
    I can create a Feature in PE03 but how do I use that in the config (table T588M)? Because if I am not able to use it in the config, I will be forced to code (using any Fn. Mods of the likes of HRFEATUREBACK*).
    The Feature ABKRS doesn't seem to be specified in table T588M as such there is bound to be coding behind it in the IT0001 processing programs.
    Cheers,
    Sanjay

  • Avoiding Logical Loop Error while defaulting values

    Hi Experts,
    We have a requirement where lets say Attribute A and Attribute B are displayed on the screen, we need to default value for Attribute B to NA if value of Attribute A is set by the user to "XYZ", else whatever value user enters in Attribute B will be set. To achieve this, we are setting the value of the Attribute B in the rule document. If we use the validation rule table like mentioned below, it throws a logical loop error:
    Attribute A
    “NA”
    Attribute B = "XYZ"
    Attribute A
    otherwise
    To avoid this, we are using a dummy attribute for Attribute A (which is not displayed on the screen) to set in the rule document as mentioned below and this attribute will be shown in the decision report:
    Attribute A Dummy
    “NA”
    Attribute B = "XYZ"
    Attribute A
    otherwise
    The issue is, we are sending the Session data to Siebel through OPA connectors. Now these dummy attributes as mentioned above (which are not displayed on UI) are not sent as part of the Session data as these are inferred attributes.
    Is there any way to:
    1. Solve the logical loop error issue so that we dont have to use the dummy attribute
    2. If we have to use dummy attributes, then how to send them to Siebel as part of session data.

    From:http://www.oracle.com/technetwork/apps-tech/policy-automation/documentation/index.html
    Oracle Policy Automation Connector for Siebel 10.4.4 Developer Help (HTML - Please be patient while the help index loads.)
    Full developer help for OPA Connector for Siebel 10.4.4, from getting started with mapping, to configuring and deploying rule projects, and handling session data being passed to and from Web Determinations. Includes information on the new Siebel integration object approach available since the 10.3 version of this connector. Note that only rulebases developed with Oracle Policy Modeling 10.4.0, 10.4.1, 10.4.2, 10.4.3 or 10.4.4 can be deployed to OPA Connector for Siebel 10.4.4.
    Specifically,  see the Topics under "Data Mapping" in the table of contents.

  • How to pass a default value in selection screen of logical database pnpce

    Dear All,
    Can any one tell me how to pass a default value in selection screen of logical database pnpce .
    Regards
    Rakesh Singh

    Hi Rakesh,
    Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
    Regards,
    Rahul

  • How to add default value to the Exclude single value in selection screen..

    Hi Experts,
    i have searched in sdn, but not able to get proper results,
    in my report i have a selection screen, in that there is a Select-option like status, for this status i need to exclude '02'
    for this i need to add the default value under exclude singale values option, not in lower and upper limit.
    can anyone help me...
    Regards,
    Sudha.
    Moderator message: please search for available information/documentation before asking, don't just claim you did.
    Edited by: Thomas Zloch on Oct 27, 2010 2:50 PM

    Hi,
    you can use the function module SELECT_OPTIONS_RESTRICT .
    This function module simplifies the handling of SELECT-OPTIONS on the selection screen by restricting possible selection options and signs.
    By calling this function module, you can restrict the number of selectio options available for the chosen selection field. You can also disable the function allowing users to enter values to be excluded from the selection (SIGN = 'E').
    Regards,
    S.Velsankar

  • Setting default values for field on screen.

    Hello,
    I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
    I am doing that in PBO as follows. But the default value is not set for Date field.
    PROCESS BEFORE OUTPUT.
    MODULE PBO_OUT.
    MODULE STATUS_5000.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE STATUS_5000 OUTPUT.
      SET PF-STATUS 'NON_SAP_DOCUMENT'.
      SET TITLEBAR '001'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  PBO_OUT  OUTPUT
          text
    MODULE PBO_OUT OUTPUT.
      ERDAT = SY-DATUM.
    ENDMODULE.                 " PBO_OUT  OUTPUT
    Please help.
    Thanks.
    Regards,
    Rajesh.

    Works Now...

  • Default value in custom field in webdynpro screen

    Hi.
    We have added a custom field in the Item level for Shopping Cart (SRM 7.1).
    I however want a default value to show up or get populated in that custom field all the time. What is the best way to achieve this?
    Thanks.
    Anuradha.

    depends upon how you have added it.
    if its just though the structures and not added in the WD then you need to do it with doc-change badi.. and this is a preferred option.
    if you have done it though WD then you can default the values using the post exits in the INIT method.
    you can check if the value is blank then populate this default value (so that it does not overwrite the edited values).
    moreover, do you want it as a non editable field or just a default value which user can change on the screen as well?

  • How to pass the default value to search help selection screen

    Hi
    I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
    Could you please let me know how can we do this?
    When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this  default value based on condition.
    Regards
    Anil

    Hi Arun
    I'm using SE11 search help.I'm giving you my code for your reference here.
    DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lr_qs           TYPE REF TO cl_crm_bol_dquery_service,
        lr_current     TYPE REF TO if_bol_bo_property_access,
        lv_category    TYPE STRING.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'ATTRIBUTE'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CLEAR ls_map.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'SERVICE_LINE'.
      APPEND ls_map TO: lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZATTR1'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_trigger_submit           = abap_true
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
    Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
    1.'ATTRIBUTE'
    2.'SERVICE_LINE'
    3.Description of 'SERVICE_LINE'  and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
       a condition.
    However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
    ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field  and the same value is being copied to
    'SERVICE_LINE' field in the popup.
    Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
    Best Regards
    Anil

  • Set default value to selection screen for report

    Hi All,
       I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
       How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
       Hope someone can help me on this.
    Thanks.

    Hi All,
       Thanks for reply. But I think I should declare my question clearer.
       Actually it's not a parameter.
      My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
       I need to set the default value '3' to field PNPSTAT1.
    Thanks.

Maybe you are looking for