Set Default Value in Standard Transaction

Hi all,
Does anyone know how to set a input value into a SAP Standard Transaction ?
That means when calling that transaction, it automatically set a value into it's input box.
Thank you all.

hi,
  get the parameter id of the field that has to be populated  in the transaction.
write these lines in the program from where you call the transaction.
set parameter id 'KUN' field '30'.
call transaction 'FD01'.
When you call the transaction you get the value that is set.
Regards,
Sailaja.
Message was edited by: Sailaja N.L.

Similar Messages

  • Badi for setting default values in the transaction in APO.

    BADI NAME: SMOD_APOCF005 which is used for setting default values in the transaction.
    I have implemented the BADI using the below code but that BADI is not triggering. Please can you provide any solution for resolving this.
    As per my requirement I am trying to set default values for these three fields RRP_TYPE, WHATBOM, CONVH.
    DATA: LS_MATLOC LIKE LINE OF IT_MATLOC.
    LOOP AT IT_MATLOC INTO LS_MATLOC.
    LS_MATLOC-RRP_TYPE = '4'.
    LS_MATLOC-WHATBOM = '5'.
    LS_MATLOC-CONVH = '999'.
    MODIFY TABLE IT_MATLOC FROM LS_MATLOC TRANSPORTING RRP_TYPE WHATBOM CONVH.
    ENDLOOP.
    DATA: LS_MATLOCX LIKE LINE OF IT_MATLOCX.
    LOOP AT IT_MATLOCX INTO LS_MATLOCX.
    LS_MATLOCX-RRP_TYPE = 'X'.
    LS_MATLOCX-WHATBOM = 'X'.
    LS_MATLOCX-CONVH = 'X'.
    MODIFY TABLE IT_MATLOCX FROM LS_MATLOCX TRANSPORTING RRP_TYPE WHATBOM CONVH.
    ENDLOOP.

    The  BADI name: SMOD_APOCF005 .
    T.code at APO : /sapapo/mat1
    Once we enter in that T.Code with some Product and Location data.
    There under PP/DS tab.
    Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4
    And under Order Creation there is Plan Explosion which needs to be set as 5
    And Under Horizons there is PP/DS Horizon which needs to be set as 999.
    BADi is implemented and active.
    And once the data is CIF from ECC to APO
    These default values are not set in the T code in APO and the BADi is not triggering.

  • How to populate default values in standard transactions

    Hi abapers,
                    what r the different ways to populate fields with default values while entering into standard transactions
    thanks in advance.

    Hi,
    You can either create trasaction variants with Default values and then create transaction suing these Variant transaction and use this transaction instead of irignal transaction.
    SHDS-> to create Variant transaction
    SE93-> to create transaction of this Variant Transaction.
    or you can also use SAP memory statements like GET and SET PARAMETERS to set one value in one internal session and get that in another session in an External session.
    Regards,
    Sesh

  • How to set default values in MIGO transaction

    Hi,
            I am using ZXMBCU02 Userexit to change the storage location as some default value 'SDW2'.
    code is as follows
       select single werks
                    into v_werks
                    from ekpo
                    where ebeln = i_mseg-EBELN.
        if sy-subrc = 0.
          if v_werks = '2204'.
              i_mseg-LGORT = 'SDW2'.
              SET PARAMETER ID 'LAG' FIELD i_mseg-LGORT.
          endif.
        endif.
    Actually while debugging, control is going to the above program but amd unable to change the values.
    Am i using the correct userexit, or is there any problem with my code.
    Thanks,
    Ravi.

    Hi,
    Instead of using user exit, I may advice you to use the MB_MIGO_BADI, In this badi you can check the value of storage location,
    and you can restrict user to change the storage location other than desired storage location,
    May this will help you.
    Regards
    Rani

  • Set default value in standard application's dropdown box

    Dear Experts
    In a standard Component im having a dropdown box with two values Materials and Services, Initially the dropdown has a empty value when i click on the dropdown im able to see materials and services my requirement is to show only materials as default value. i checked that the dropdown box is Dropdown by key.
    HI Experts
    i am able to achieve this im able to make the value as defaulted but now i want to make the field disabled even im able to achieve that too..
    the issue im getting now is the label is also in disabled mode
    eg: Product type - Label: Material - Dropdown box
    Please advise me to achieve this.........
    Regards
    Arun
    Edited by: Arun Padmanaban on Sep 24, 2011 9:06 AM

    Hi Saraa ,
    As u said we(arun and me ) added that read only property then it is going to dump like read only not possible .Do we have any alternative for this ..But we are getting the label from FPM ..Even I tried to change the properties which is not showing any change
    Thanks ,
    Sandeep

  • Set Default value for transaction code F-36

    Hi
    I need to set default value to feild special G/L indicator in transaction code F-36 How can I do that. Please advice.
    Regards
    Kesharika

    Just in case anyone would need to know. You can change the default values for transactions by using SE93.
    Regards,

  • How to set default value to input field

    Hi Experts,
    I need to set default value to one input field for the transaction crmd_order as a screen variant. Guide me in doing that.
    Regards,
    Harish

    Using the transaction SHD0, you can define the screen variant. While defining the sceen variant, you are allowed to define the default values.
    Using screen variant, for the main transactoin, you can also define the transaction variant and you can use this as an independent transaction.

  • 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...

  • How to set default value in OAMessageLovInputBean?

    Hi,
    How to set default value in OAMessageLovInputBean while loading the page?
    I have tried the following code but its not working.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String delToLoc = (String)pageContext.getSessionValue("deliverTOLoc");
    Number delToLocId = (Number)pageContext.getSessionValue("deliverToLocId");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject poHeadervo =
    (OAViewObject)am.findViewObject("PoHeaderMergeVO");
    PoHeaderMergeVORowImpl poHeaderVoRow =
    (PoHeaderMergeVORowImpl)poHeadervo.getCurrentRow();
    if (delToLoc != null && !"".equals(delToLoc)) {   
    // poHeaderVoRow.setShipToLocation(delToLoc);
    OAMessageLovInputBean msb = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("DefaultShipToLocation");
    msb.setValue(pageContext,delToLoc );
    Please suggest me how to resolve this issue.
    Thanks & Regards,
    Sunita

    Hi Cristoph,
                      We tried all the way but could not able assign characteristics value before saving the document. it means we can only see the assigned value using transaction CV02N. but our requirement is to check if the user fills any value into characteristics it should check with default value which we would like to assign whenever we create a new part of the document which we are not able to achieve.we tried a lot but could not succeed.
    Nay idea if we can achieve this....
    Regards
    Bhuwan Tiwari

  • How to set default value to relationship filed(ess~my~fam)new child

    Hi Experts,
    i have a standard ESS Application for Family members/dependents for Malaysia(essmyfam)-->New child
    When i click on new child a view gets opened withcontains relationship field with dropdown.Kdsvh is the field that is binded to dropdown.By default downdown is empty,when i click on dropdown it contains some values(Legitimate,adopted,others).
    my problem is node binded to dropdown(selectedinfotype) contains many attributes.so how can i set default value as others from values that dropdown contains.
    Code i tried
    In wdinit of Vcperfamilymydetail component
    wdContext.currentSelectedInfotypeElement().setKdsvh(wdContext.nodeSelectedInfotype().getSelectedInfotypeElementAt(3).getKdsvh());
    Error: Indexoutofbond exception
    Reply is Highly appreciated..
    Thanks
    Shikore
    Edited by: kishore shikore on Aug 18, 2009 6:09 PM

    Hi Kishore,
                    you can set the lead selected value while adding the vales to drop down. let say u are getting the data from model node say "Test".
    use the below code in doinit method:
    int size = wdContext.nodeTest().size();
    for (int i-0;i<size;i++){
    ITestElement test = wdCOntext.nodeTest().getTestElement(i);
    ISelectedInfotypeElement element = wdContext.nodeSelectedInfotype().createSelectedInfotype();
    element.setKdsvh(test.getKcsvh());
    wdContext.nodeSelectedInfotype().addElement(element);
    if("Others".equals(test.getKdsvh())){
    wdContext.nodeSelectedInfotype().setleadSelection(element.index());
    Hope it helps
    Thanks and Regards

  • Dump in user exist CC01 to set default value to valid from date

    Dear friends,
    Task is to set default value to valid from date field in Transaction "CC01".
    In INCLUDE ZXCCAU01 of Function 'EXIT_SAPMC29C_001' in Enhancement 'PCCD0001' I written the code like this
    DATA var LIKE sy-datum.
    var = var + 1.
    which is not related to program by creating project and activated the project.
    When I run cc01 it is giving dump.
    Error is :
    Program "SAPLXCCA" tried to use screen 1000.
    The screen does not exist.
    Can some one guide me What is the problem and How to resolve this.
    If not, Is there any other method this can be done.
    Regards,
    Venkat

    Hi venkat,
    DATA var LIKE sy-datum.
    var = var + 1.
    the code u written i guess not ok.The code used by kishan is correct. i.e
    DATA var LIKE sy-datum.
    sy-datum = sy-datum + 1.
    var =  sy-datum.
    write var.
    use the above code.
    SAPLXCCA is a functionpool not a program.please check the same.
    regards,
    Nagaraj

  • CRMD_ORDER: how to set default values for Requester and Change Manager

    Hello Folks,
    how do I set default values in TA crmd_order?
    I drew my organizational hierarchy using TAs bp and ppoma_crm.
    When a new Change Request (e. g. SDHF) is created, I want the four roles (Requester, Change Manager, IT Operator and Developer) to be set automatically, not manually.
    Both Requester (= Key User) and Change Manager are derivable. I did not find anything in SPRO neither in the OSS neither here.
    Points will be rewarded as a matter of course!
    Thanx in advance!

    Hi Dirk,
    look for Define Access Sequence & Define Partner Determination Procedure in SPRO and read the IMG Activity Documentation. You can find it in the Service Desk config, but it works for the other transaction types too.
    Basically, you create Access Sequences where you tell the Partner Determination Procedure where to look for the values for the Partner Function fields.
    The Access Sequence can use lots of sources for the information, including your org structure.
    regards,
    Jason

  • Setting default values for item in opportunity mgmt(crmd_bus2000111)

    Hi All,
    I need to set default values for the field Fiscal Quarter in item level using BADI CRM_CUSTOMER_I_BADI .This Field is created using EEW. The default value is like if the date is nov-2007 the value for this fiscal period is FQ4-2007 .
    Any clue would be great help..

    Why don't you try setting the default value in the List next to the Matrix - item 107
    Item 107 is a matrix (a transposed one), I have no idea what list you mean...  I am using item 107, not 112. Item 112 is used only to detect a click on the "Add Record" button, which is the last row of the matrix 112.
    I don't see the gender column in the grid and I'm also unsure of the id you have for it "12" - are you sure it's correct ( i usually use Item("columnName") )?
    Sorry for the confusion. "12" is the name of the standard column "Password" which we have renamed to store the gender.
    Anton

  • Need to set default value in table EABL.

    Hi Experts,
    How to set default value of field ATIM form 00:00 to 23:59 ion field selection screen for table EABL in transaction SE16?

    hi jazz try this way.
    forget about every thing and come from beginning.
    by now i think your are familiar with shd0.
    firstly create a variant using shd0 for your table eabl with default value and save it and activate it.
    next check whether it is working or not by opening se11 or 14 and enter table name and click display, the you can you see your default vale in your required field.
    after it is done the come to second part i.e your se16.
    now create another variant for this and save it and activate it.
    (by this i mean to say you are creating two variants )
    hope this will solve your problem.
    if your purpose is not solved yet then please write to my mbox.
    regards,
    kool.

  • Set Default Value of Multi-select list item

    I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
    :P507_ITEM := '%null%'; How do you get the default value set and selected?

    Hi
    Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
    Company A returns 1
    Company B return 2
    % returns 0
    Then your query would be...
    SELECT ...
    FROM ...
    WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
    Hope this makes sense.
    Cheers
    Ben

Maybe you are looking for

  • Really Frustrated with Lack of Customer Service

    I have landline, DSL Internet and then a separate mobile and data plan with you. I cam home yesterday and it seemed Fios was being installed or serviced next door or two doors down. I can not connect to the Internet via my DSL. My data plan is 75% us

  • Installing photoshop cs4 on an iMac and getting the error code licensing for this product has stopped working.  what do i do?

    have cs4 on a disk and installing on a new computer with no disk drive.  dragged application file onto a stick and transferred to the new computer.  but am getting this error code when i try to open.  any ideas?  thanks for the help

  • 8330 SD Card Problem

    I just purchased a Kingston 8GB SDHC card and put it into my 8330 with OS v4.3.0.127 . When I go to format the card, I get an error message "Media Card Format Failed". According the compatability chart, v4.3.0 supports the 8GB card. Anyone have any s

  • Merging Records with same or NULL values

    Hi, create table AS_ITM (id_itm NUMBER, diff_1 VARCHAR2(20), diff_2 VARCHAR2(20)); insert into as_itm values (22188212, 'J068', 'C001'); select id_itm, diff_1, diff_2 from as_itm; output: 22188212     J068     C001 create table RK_DIFF_DESC (diff_id

  • Adding a Sort Button in SM30

    Hello Everyone,         I have a Z table which I am maintaining it through SM30 which has got 5 fields (ZREFERENCE, Profit Center, GL Account, Posting date and amount), currently the data is getting sorted on the basis of ZREFERENCE field. The requir