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.

Similar Messages

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

  • Setting default values at the start of a process

    Hello
    I need to set some constant values to the attributes in data object as soon as start event of a process is triggered.
    How can I do that?
    Regards
    Vidyadhar

    Vidyadhar,
    Follow the below procedure to set Default Values
    1.Right Click on Start Event select Properties
    ->Goto Output Mapping Tab
    ->Double Click on Element on which you want to give Static Value
       and enter the value with double codes for eg: "Name"
    Make sure that this element value should be  has a Input to the next level.
    Thanks
    Srikanth

  • OAF : LOV mappings do not execute for specified default value in the LOV

    Dear All,
    I know the topic of default value in an LOV has been discussed a million times.
    Please bear with me -
    I set the "Initial Value" property for an LOV to populate a default value in the LOV field when the page loads. This works fine
    My LOV has about 4 lov mappings that populate 4 "formValue" items on my page.
    However, for the default value, these mappings are not executed and the formValue items remain empty. (Though the default value shows up fine on the screen)
    Do I have to explicitly default these formValue items as well ? Is there anyway to get the mappings to execute ?
    Thanks,
    Gagan

    Anyone ?

  • Setting Default Value to the Quantity Field in ML81n

    Hi Gurus,
    I have an assignment to set a default value of 1 to the quantity value when creating entry sheet. This is the process we go through before the point of setting the 1:
    1. Go ML81n and click on "Other Purchase Order" input some PO number and click enter.
    2. On the Menu --> Entry Sheet --> Create --> Empty Page
    3. At the bottom of the screen Click on "Service Sel", and click enter if a pop-up shows
    4. Now on the line item, select any row (1 or 2 or many). and Click on Services on top.
    So at this point when the new screen shows with the new Entry Sheet number, the line Items that comes up should all have a quantity of 1, and should be editable by the user before saving.
    How can i go about this. Which UserExit will do this or Enhancement Point. The screen field for this quantity is ESLL-MENGE.
    Thanks guys.
    Rewards, will be greatly reward.
    Edited by: Basil Balogun on Jul 7, 2008 11:03 PM

    Hi,
    Pls check out this Exit-
    package name ML-
    SRVESSR->EXIT_SAPLMLSR_010->Set Entry Sheet Header Data.
    For this in importing paramertes
    I _EKPO type EKPO in this we have MENGE field try to asign value 1 to this.
    First check the screen number of the popup screen for which you need to enter the MENGE valuein GUI status. Chck if this screen exit can be used by puting a break-point.
    And also try this screen exit for SRVEUSCR-
    EXIT_SAPLMLSR_020-Transfer of Data to Entry Sheet User Screen
    EXIT_SAPLMLSR_021-Adoption of Data from Entry Sheet User Screen
    SAPLMLSR-Screen exit at 0400 subscreen.
    Reward if helpful.
    Best Wishes,
    Chandralekha
    Edited by: Chandralekha on Jul 8, 2008 6:41 AM
    Edited by: Chandralekha on Jul 8, 2008 6:43 AM

  • URM How to set default value in the "New Check-in" - "Folder" field

    Hello everyone,
    I'm trying to find out how to set the default value for the "folder" field in a check-in profile created using the Configuration Manager. If I browse to the folder in the "Browse Content -> Folders" menu and check-in a file inside the folder, it will fill this field automatically. I need to replicate this behavior using the "New Check-in" drop-down menu and selecting a profile, in other words, associate a Folder with a check-in profile.
    I know it was possible to do so in previous versions using the folders_g component, but I'm unable to figure out how to accomplish it with the new FrameworkFolders component.
    Any help is greatly appreciated.
    Thank you.

    Hello,
    It is working fine try this.
    PARAMETERS :
    y_p_list TYPE char32  AS LISTBOX VISIBLE LENGTH 22
                                  MODIF ID rsg. .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR y_p_list.
      MOVE: text-200 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-203 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-210 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-211 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-204 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-205 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-206 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-207 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-208 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'FIELD'
          dynpprog        = sy-repid
          stepl           = 1
          value           = ' '
          value_org       = 'S'
          display         = ' '
        TABLES
          value_tab       = y_i_listbox[]
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
      REFRESH y_i_listbox.

  • 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

  • How to set default values in the PO feilds

    Hello,
    Can please somone let me know how can I default a particular tax code "X" on a Purchase Order at the item level in the invoice tab..
    Any help would be greatly appreciated....
    Thanks

    Dear ,
    You can set it in the info record > Purchasing Organization data 1. In standard customizing,the default value for tax exist for LIV module in SPRO-Materials ManagementLogistics Invoice VerificationIncoming InvoiceMaintain Default Values for Tax Codes
    Regards,
    w1n

  • BAdI for Personal Default values

    Hi,
    Does anyone know the BAdI for Default Values/Checks for Personnel Administration and Recritment?
    Thanks in advance.
    Anand.

    Hi anandaraja,
    1. I don't think there is a badi,
    2. but there is a customer exit
      PBAS0001 - in smode tcode.
    3. The fm name inside it is
       EXIT_SAPFP50M_001 for defaulting values
       EXIT_SAPFP50M_002 for validations at time of saving.
    regards,
    amit m.

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

  • How to set default value to the variable !!!

    Experts,
    I have created a variable ZDATE, which is in variable entry screen of the query. and this variable is mendatory .
    Now, i want to put default value of this variable ( Which can be done from the Variable Properties screen , on the Default Values Tab )
    But , thru there i can only put selected value. my requirement is to show system date - 1 ( Previous date )
    how do i get that ?
    Thanks

    Hi,
    You would need to write a variable exit under I_STEP = 1 to get the previous day populated on your variable screen.
    Regards,
    Murali.

  • Setting  Default values in the Field

    Hi all,
    In Purchase order document i want to display 99999 number in the quantity field as soon as i purchase order document is opened.
    can you please guide me how to do this through stored procedures...?
    Regards,
    Chetan

    Hi Chetan,
    You can create Formatted Search. Simply use this query,
    SELECT 99999 as Quantity
    and assign the query to the Formatted Search.
    Hope it helps.
    Cheers,
    Marini

  • Setting Default Values in Search Criteria for COSTCENTER

    Hi ALL,
    I need Help for setting default values in search criteria for COST CENTER.
    Basically the issue is when creating a Shopping Cart, i need to assign a COST CENTER at Item level under COST ASSIGNMENT Tab.
    While searching the cost center i need to default the following fields in my search criteria based on the Login User :
    1. Controlling Area,
    2. Language Key.
    Please suggest some solution.
    Thanks & Best Regards,
    Surya

    Hi Vani,
    Sorry for the delay reply and Thanks a Lot for your timely support......I would like confirm once again is the name of the BADI is <b>bbp_f4_read_on_exit</b> or <b>bbp_f4_read_on_entry</b>. In this BADI i've not found a method to default Controlling Area. Can you please suggest me which method i can use.
    Thanks & Regards,
    Surya

  • Set Default Value  In list box

    Dear All,
                   I am using the F4IF_INT_TABLE_VALUE_REQUEST this FM for filling the list box .Now i want to set  default value in the list box
    Example-
    Supose i have 2 List box  A & B and in list box i have to set default value in A list box X value and in B list box Y value .
    X and Y value is coming in the list box from the master table .
    Thanks & Regards

    Code Snippet for your referance:
    *F4 Help for Output Type
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KSCHL
    DATA: l_repid TYPE syrepid,
            l_dynnr TYPE sydynnr.
      MOVE: sy-repid TO l_repid,
            sy-dynnr TO l_dynnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'KSCHL'
          dynpprog        = l_repid
          dynpnr          = l_dynnr
          dynprofield     = 'P_KSCHL'
          window_title    = text-001
          value_org       = 'S'
        TABLES
          value_tab       = it_value_tab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3

  • How to Set default value to dropdown list in oracle ADF

    hi,
    I need to set default value in the drop down list in oracle ADF.
    If you take in HTML :
    <select>
    <option value="">Select Value </option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    </select>
    Like this i need to set default value in drop down llist in oracle ADF.
    Thanks and Regards,
    M. Ramu.

    Hi Ramu,
    Please be more clear on ur post whts ur Jdev version and wht type of dropdown u r using model driven or static list..?????
    Its hard to help u without proper info..
    Just have a look into this before u post a thread...
    https://forums.oracle.com/forums/ann.jspa?annID=56
    Regards,
    Suganth.G

Maybe you are looking for

  • Can't Install Solution Manager on Suse Linux Enterprise Server 10 - JAVA

    Hello everyone! I've been trying to complete the pre-requisites in order to install Solution Manager SR2 on Suse Linux Enterprise Server 10 x64 - SP1. There's only one last condition that I haven't met, and it's the Java Runtime Environment version..

  • How do I speak with customer support if I don't know my serial number?

    Customer support won't let me chat or call until I list my serial number for my computer. I don't have it with me right now but would still like to speak with them.  Any thoughts?

  • How can  i sort pictures with AppleTV?

    I dont speak verry good English, but i t tray to ask my question here. Is ther somebody can tell me how you sort pictures with Apple TV? I name my pictures by filename, with a name and numer like this : Belgium_0001, Belguim_0002, Belgium_0003 end...

  • TIME EVENT  ISSUE

    HI FRIENDS TO DAY unexpected error i received when i check the attendance , i could not c any employee attendance from yesterday. the below is the error i am receiving.plz advice me the trouble shoot steps. No data stored for Time Events in the selec

  • Firefox keeps reloading on every mouse click

    Firefox constantly reloads and it's getting worse with ever button click. I tried IE and it works fine. I'm using version 3.6.13 and it's been doing this for about a week.