How to default value on bet01 based on ansal

Dear Freinds
            i would like to know how to default the value for bet01 based on the
calculated on ansal
i want is
q0008-bet01 = p0008-ansal /100.
Can i default the value using the user exit ZXPADU01 or ZXPADU02. . As my ueser exit is not triggering  without me entering to bet01 .
how can i do defaulting the value on bet01 ,
regards
shanti

Dear  Chritisn
             in my code i have done same thing what you have said as follows
i have written the coding in ZXPADU02 as below
data : wa_p0008 like p0008,
        i0008 like p0008,
       l_v_ANSAL type ANSAL_15,
       l_v_amount type PAD_AMT7S.
CASE innnn-infty.
when '0008'.
MOVE-CORRESPONDING  innnn to wa_p0008.
if wa_p0008-lga01 = 'MFPY'.
l_v_ansal =  wa_p0008-ansal.
l_v_amount = l_v_ansal / 100.
if l_v_amount ne wa_p0008-bet01.
move l_v_amount to wa_p0008-bet01.
MOVE-CORRESPONDING wa_p0008  to innnn.------ at this point
endif.
when others.
endcase.
I have used move corresponding because i am getting the error as the strucutr eof INNNN to that WA_P0008 is different (unicode compatability error) ...
now i can see the data in wa_p0008 and when i have move into innnn ..... i can see all the data in debuggin except  the bet01 value as below
in wa_p0008 the data in debugin is as follows
PERNR     N     8      00000004
INFTY     C     4      0008
SUBTY     C     4      0
OBJPS     C     2                                                                               
SPRPS     C     1                                                                               
ENDDA     D     8      99991231
BEGDA     D     8      20070716
SEQNR     N     3      000
AEDTM     D     8      00000000
UNAME     C     12                                                                               
HISTO     C     1                                                                               
ITXEX     C     1                                                                               
REFEX     C     1                                                                               
ORDEX     C     1                                                                               
ITBLD     C     2
PREAS     C     2                                                                               
FLAG1     C     1                                                                               
FLAG2     C     1                                                                               
FLAG3     C     1                                                                               
FLAG4     C     1                                                                               
RESE1     C     2                                                                               
RESE2     C     2                                                                               
GRPVL     C     4                                                                               
TRFAR     C     2      01
TRFGB     C     2      01
TRFGR     C     8      E1
TRFST     C     2      08
STVOR     D     8      00000000
ORZST     C     2                                                                               
PARTN     C     2                                                                                WAERS     C     5      HKD
VGLTA     C     2                                                                               
VGLGB     C     2                                                                               
VGLGR     C     8                                                                               
VGLST     C     2                                                                               
VGLSV     D     8      00000000
BSGRD     P     3      100.00
DIVGV     P     3      165.00
ANSAL     P     8           1000.00  -
value  entered on the screen
FALGK     C     10                                                                               
FALGR     C     6                                                                               
LGA01     C     4      MFPY
BET01     P     7              10.00  ---after calculation the value(1000/10)
ANZ01     P     4          0.00
EIN01     C     3                                                                               
innn structure in debuggin  as follows:
PERNR     N     8      00000004
INFTY     C     4      0008
SUBTY     C     4      0
OBJPS     C     2                                                                               
SPRPS     C     1                                                                               
ENDDA     D     8      99991231
BEGDA     D     8      20070716
SEQNR     N     3      000
AEDTM     D     8      00000000
UNAME     C     12                                                                               
HISTO     C     1                                                                               
ITXEX     C     1                                                                               
REFEX     C     1                                                                               
ORDEX     C     1
PREAS     C     2                                                                               
FLAG1     C     1                                                                               
FLAG2     C     1                                                                               
FLAG3     C     1                                                                               
FLAG4     C     1                                                                               
RESE1     C     2                                                                               
RESE2     C     2                                                                               
GRPVL     C     4                                                                               
DATA1     C     250     0101E1      0800000000    HKD                00000000#ᘌ౐###ఀ                MFPY######        ######        ######        ######
DATA2     C     250
we can see in the debuggin for the DATA1 it is having the MFPY value  but i dont find the value for bet01 ..........
and iam not getting the value on the screen in PA30 for the bet01.
please let me know what i have to do , and let me know where i went  wrong.
regards
shanti

Similar Messages

  • How to make default value for region based on city?

    Dear Experts,
    When city is selected in TRIP or PR05, how to make the default value of city based on region?
    The standard search help givenfot citydoesnt contain any enhancement point?
    Pls suggest how to resolve this!!!
    Thanks In Advance
    Rgrds,
    Sravan

    Hello Sahil
    Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
    For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
    Follow same process for PC.
    GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
    Kiran

  • Default value of prompt based on another request

    Hello:
    I have a requirement where I need to set default values of prompts based on another request.
    The prompt is a Date Prompt.
    I tried it using presentation variable, and writing sql query, where is says " WHERE promo_id= @{variable}"
    but it is still not working.
    Please let me know the workaround for this issue.
    Thank you.
    - Vinay

    How is the End Date determined for your BETWEEN operator? I would assume that is variable. Also, is the second report on another dashboard page or on the same page? Assuming both reports are on the same page, do the below. If not, you can use the same prompts on the second dashboard page. Set the scope to "dashboard" and the selection the user makes carries to the second page.
    The easiest way is to have 3 Dashboard prompts: Promo_ID, Start_Dt, and End_Date. Set these prompts to PVs: pvPromoID, pvStartDate, and pvEndDate, respectively.
    Filter report one on pvPromoID and pvStartDate.
    Filter the second report on pvPromoID and use pvStartDate in the filter of the Date column of report two. Assuming the BETWEEN values are variable, then you can write the following on the Date column of your second report:
    "Table Name"."Date ColumnName" <= '@{pvStartDate}' AND Table name"."Date Column Name" <='{EndDate}'
    And on your Promo column, use the filter "Table Name".Promo = '@{pvPromoID}'
    When the user selects the Promo ID, Start Date and End Date from the prompts, both the first and second reports will be filtered accordingly.

  • How to default values in LOV

    Hi,
    I have created a page in which I have two different LOVs. My requirement is to default some value in the First LOV i.e. "ALL"
    and the second LOV which is dependent on the first LOV will gets populated with the values based on the first one on the page load itself.
    Both the LOVs have "autoSubmit" and "partialTriggers"realtion between them.
    The problem I am facing is that I am able to set some default value to the first LOV with value as "ALL" by using "setSubmiitedValue" on LOV from backing bean on the page load but the second LOV popup (dependent LOV) is coming blank on page load.
    But if i select same value "ALL" form the first LOV popup after page load then second LOV popup gets populated with values based on first LOV
    Please provide some urgent help that how to default any LOV with some value and based on that second LOV gets populated on the page load itself.
    Thanks in Advance
    Kanika Dhamija

    Hi,
    Can you please explain a bit more the ' ... is to default some value.. ' part?
    When exactly do you want to set a default Value?
    Depending on your case, there is always the declarative way to consider through BC
    some approaches on different cases:
    How to set a default value in an ADF table when adding a new row
    http://www.youtube.com/watch?v=9WQ0SDVVWtE
    http://adfcodebits.blogspot.co.uk/2010/04/bit-13-overriding-create-to-set-default.html
    cascading LOVs
    http://andrejusb.blogspot.co.uk/2012/11/cascading-lovs-in-jdeveloper-111230.html
    hope this helps
    Regards,
    Dimitrios.

  • How to default value in collection after intial collection field entered

    Hi there,
    Am working on gettting to know collections but not really had much to do with them so far.
    I have a multi row data entry screen that works great using a collection. Now the boss has decided that the new records require a default value that the users can overwrite if required.
    The value i need to default is the second field in the collection but i only want to populate the value after the first field in the collection has been entered.
    Could anyone talk me through how i do this please or point me to any relevant documents.
    Cheers
    Lisa

    Hi Lisa,
    If you want to default value only after user enters data in another row column, you ll have to write a javascript code that executes after the column is entered
    If you have jQuery(already included in apex 4.0) it would make the task of accessing that other column easy.
    Otherwise its much more harder work to get I can think of setting the ID's using the pitem_id_* while rendering the editable fields(set it for both the columns..say as COL1_ROWNUM , COL2_ROWNUM ) using APEX_ITEM. Then add an onblur event(using the html attributes parameter of APEX_ITEM api) call a JS function with the rownumber(to identify the row). You can then write the logic for default value inside the function and set the corresponding column with the value.
    If you can update about your version and/or if you use any JS libraries, it would be easier to help you any further.

  • Map default values in Header based on multiple values in the line item

    Hi
    I have a scenario in which the Header field of an IDOC should be populated with some default values based on some mixed mvt types in the line items.
    eg:
    Header -
    > Delivery type -
    > needs to be mapped to A (for X of line item 1)or B (for Y of line item 2) or C (for Z of line item 3 )
    based on line items field
    line item1---> mvt type---> X
    line item 2-->mvt type----->Y
    line item 3 -
    > mvt type -
    > Z
    mvt types doesnt necessarily have to come in that order and even the same mvt type can repeat in multiple line items.
    Can we achieve this logic in XI ?

    I think if you include removeContext, Sort, SplitByValue (on Value Change), CollapseContext to mvt type in all line items and then use ifelse condition to achieve your result.
    I will give an example of line Item1
    mvt type --->RemoveContext ->Sort>SplitByValue(on value change) --> CollapseContext
    Use the above mapping to IF function and check if it is having X, Y or Z then map the appropriate value to target field.
    Do the same for rest of the line items.

  • How set default value in field of new infotype

    Hi experts!!
    We have created a new infotype 9002. This infotype has two mandatories fields, one with the amount and another with the currency.
    The currency always will be 'EUR', for this reason we would like to assign the default value for this field and the user only should fill the amount field.
    How we should assing the default value to the field we have created in a new infotype 9002?
    Kind regards,
    Julian

    Hawk,
    Another option here will be to enhance infotype 9002 screen 2000 PBO logic. Add a PBO module with the following logic:
    Begda hat sich vielleicht geändert.
            PERFORM re500c(sapfp50m) USING psyst-land p9002-begda. "K35729
            IF p9002-waers IS INITIAL.                          "QNUK110803
            IF t500c-waers IS INITIAL.                        "QNOK034099
              MOVE t001-waers TO p0015-waers.                 "QNOK034099
            ELSE.                                             "QNOK034099
              MOVE t500c-waers TO p9002-waers.                  "QNOK129756
            ENDIF.                                            "QNOK034099
            ENDIF.
    This is standard code extracted from infotype 0015 PBO logic. It default currency according to your country.

  • How to default inv mtl accnt based on the item categories for all trxns

    Hi all,
    There is a requirement for defaulting inventory material account based on the item categories accounts defined in the category accounts window. instead of defaulting from the inventory organization parameters.
    I researched on that and found that we need to do product line accounting setups and modify the accounting client extension code ( Cost Management PDF)
    Am i correct in the approach? will i succeed if we go ahead and do these?
    Need your kind comments....
    Regards,
    Prasad

    Hi,
    I can think of one of the probable solution for your requirement.
    Your need to create new condition table with item Category as one of the key combination.  I think you need to update the item category in field catalog as well as in Doc Structures. Then maintain free goods condition record all the item categories except for the Return item category. This way you can exclude free goods activation for return items.
    Note : If the number of active item categories are more then it may be difficult to maintain condition records for the item categories.
    Hope this will help
    Regards,
    Sanjay

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

  • Setting a default value for SQL based LOV

    Hi There,
    Is there a way to set the default value in an LOV. Like lets say the LOV gets distinct to_Char(date_field,'YYYY') from a table. I want that the highest year is the default value. Currently, since I have the null option also, when the page loads, the lov is always null. I need to change it manually.
    Thanks,
    Sun

    You can easily set the dynamic item defaults
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB28287
    for example select the default type as PL/SQL Function Body and enter the following code
    declare
    v_return date;
    begin
    select max(date_field) into v_return from your_table;
    return to_Char(v_return,'YYYY');
    exception when others then
    return null;
    end;

  • Preset default value of DropDown based on Content Type selection in the SharePoint 2010 library

    Hi,
    I have three site content types (Admin, Technical & Well) derived from base content type "Base" and added this content types to "Documents" library. I also have one site column "Category"(Dropdown) with values (Admin, Technical
    & Well) which is available in all the content types.
    Now, when i try to create a document based on "Admin" content type then "Category" value should be preset to "Admin", similarly when i select "Technical" content type then "Category" should be preset to "Technical"
    and same with "well".
    Can some one provide me how i can achieve this?
    I am working in the SharePoint 2010 environment.
    Regards,                                                                      
                                          Chakradhar

    My understanding is that , you have to display the category in all the content types.
    So in that case create a content type like
    Create a base content type -- with column category.
    Create a Admin content type based on base content type as parent. By default ,the category column is available in admin content.
    Create a Technical content type based on base content type as parent. By default ,the category column is available in Technical content type.
    Create a Well content type based on base content type as parent. By default ,the category column is available in Well content type.
    Do you want to create using sharepoint ui or code(visual studio)?

  • How to default value from popup page to main page.

    Hi,
    Requirement:
    I have a create page with table region of 10 lines.I have an icon for every line and on click of this icon, a popup window will be opened.
    In the popup window i have quantity field with a table region. User is allowed to select the quantity. Also i have a ADD button on the popup page.
    Now On selecting the quantity and click on add button, the quantity should be added and the sum quantity should be defaulted to quantity field in the main page.
    For this requirement what i have done is
    I have added the quantity on click of the Add button.and the total quantity i set to the quantity attribute that has been attached to main page.
    But the quantity didnt get reflect to the main page. i think the focus is not retured o main page.
    Please suggest me how can i do this requirement.
    Thanks in Advance,
    Thanks,
    Mallika
    Edited by: user12216727 on Nov 21, 2009 4:29 AM

    Hi,
    As per my analysis for the issue, the control is returning to processRequest of the controller and when i set the attribute value, the value is being set and I am able to get the value and print it.
    But the value is not displayed on the page.Here I am using Advanced Table Region, and I am not able to shoe the value.
    I also created one view attribute and tried to set the readonly property to TRUE for the same field. I did in the same way, the value is being set and the field is made readonly.
    The problem is I am not able to show value to the user, even the value is present in the view attribute.
    Any pointers to this are really helpful.
    Thanks,
    --Mallika                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to default value in hr report category

    Hi all,
    I have create a hr report category in my abap report.
    However, i need to default the Reporting Period  field to value 'Today'.
    Please find the below screen.
    How can i do that?
    Thanks & Regards,
    Sujatha sahu.

    Hi Sujaha,
    I guess u used logic database PNPCE,
    so use below source code FYA.
    You can add the other values in the list. Now I added two only. (“D” and "Y")
    NODES peras.
    TABLES: pernr. " Standard Selections for HR Master Data Reporting FOR THE DEFAULT SCREEN.
    AT SELECTION-SCREEN OUTPUT.
       PERFORM set_date.
    START-OF-SELECTION.
    GET peras.
    *&      Form  set_date
    *       set_date
    FORM set_date .
       DATA: lv_vrm_id TYPE vrm_id,
             lt_vrm_values TYPE STANDARD TABLE OF vrm_value,
             lwa_vrm_values TYPE vrm_value.
       lwa_vrm_values-key = 'D'.
       lwa_vrm_values-text = 'Today.Good day'.
       APPEND lwa_vrm_values TO lt_vrm_values.
       lwa_vrm_values-key = 'Y'.
       lwa_vrm_values-text = 'Current Year. Horse Year'.
       APPEND lwa_vrm_values TO lt_vrm_values.
       lv_vrm_id =  'PNPTIMED'.
       CALL FUNCTION 'VRM_SET_VALUES'
         EXPORTING
           id              = lv_vrm_id
           values          = lt_vrm_values
         EXCEPTIONS
           id_illegal_name = 1
           OTHERS          = 2.
    ENDFORM.                    "set_date

  • How make default values in the selection criteria of BEx query????

    Hi all
    I have to create a brand new query, in the selection criteria(Prompts) I have two prompts. one prompt should show current budget year and second prompt should show next budget year, both prompts are mandatory and default.
    Can any one please let me know how to obtain current and next budget year??? do I need to write any customer exit or do i need to create a offset???
    Two prompts are using same infoobject 0fiscper which is mapped to ECC Table MBEW and field is LFGJA.
    Thanks

    HI sathiyaa,
    so you want to show user with two prompts one will show current year and the other next year value by default.
    //tell me that if you user change the current year value for ex: it will show 2011 by default.. and user changed it to 2009.
    you want to show 2009 year results or 2011 even though he changed the prompt.
    Here i'm considering that even though user changed current year to some other year still you want to show the current year results.
    Create a customer exit variable for calyear with ready for input (checked).
    customer exit code in CMOD :
    when ' customer exit var for cal year'
    IF I_step = 1.
    clear l_S_range.
    l_S_range-low = sy-datum+0(4).
    l_s_range-sign = 'I'.
    L_s_RANGE-opt = 'EQ'.
    ENDIF.
    if i_step = 2.
    data: zyear(4) type c.
    zyear = sy-datum+0(4).
    ex: l_s_range-sign = 'I',
    l_s_range-opt = 'EQ'.
    L_s_range-low = zyear.
    appen l_s_range to e_t_range.
    after this create a variable offset
    create a new selection in the structure, drag the KF and calyear restricted by current year variable . Copy the same selection and insert it as a new selection, go back to the calyear restriction, right clik on the variable. specify variable offset and enter + 1.
    or search in sdn how to create variable offset it will help you
    Regards,
    Ranganath.

  • How to bind value to lov based on the output from other lov

    HI all, i have 2 message choice Lov, i am selected a value from the 1st lov based on this value i am a executing a query, i want to display one of the attribute value from the query result in the second LOV. i am getting the attribute value correctly but i dont know how to bind that(display) in the 2nd LOV(at runtime).

    Read the dev guide LOV section, it should give you details about this implementation.

Maybe you are looking for

  • ICal Help Needed! (cannot delete calendars/events on computer and iPhone)

    Hi Everyone, I need some help with my iCal. Background info: -Currently have an iPhone 3GS -Using Google Calendar -Use separate calendar on iPhone (Pocket Informant) -Wanted to sync all event from Outlook to Google Calendar to iCal to two calendars o

  • Can i use a wwe brawl stick on my macbook pro?

    I recently bought a Mad Catz xbox 360 Brawl Stick and was told it would work with my macbook pro.  The controller shows up in the system profilier in the USB Bus though none of the programs I am using is reading it. It does mention the device is not

  • Part cost   kf values are getting aggregated ......... can any one help me?

    hello gurus.... iam designing a infocube in which there is a keyfigure 'partcost'.when i execute a query on this infocube, the part cost values  for a particular part id are getting summed up. but the part cost ,whether for single or 100's of parts ,

  • Tutorial for Macromedia MX 2004 how to make a UI for a game or movie?

    My email is [email address deleted by host] I'm looking for some tutorials or links to help me start a UI in Director/Mx2004 for a project I know the Halo 2 UI was done in Director was wondering if anyone knew some tutorials or could help me out than

  • Audio on time-line

    Is there a way to decide on which audio time-line the audio is put when dragging a clip from the viewer (or browser). I can't find out the logic how it works... Thank you