Filed and conditional Lost of value

Hello,
Is it possible to choose the LOV for a field dynamilcally ?
I've got LOV 1 based on RECORD GROUP 1 and LOV 2 based on RECORD GROUP 2 and a database field, for condition 1 I want the field to be validated with LOV 1, for condition 2 same but LOV 2.
Thanks.
Romeo

yes you can do so
write code on key-listval on the field.
DECLARE
l_lret BOOEAN;
BEGIN
IF ( condition1 ) THEN
l_lret := SHOW_LOV('LOV1');
ELSE
l_lret := SHOW_LOV('LOV2');
END IF;
END;
set the validate from lov property for the field to true.

Similar Messages

  • And condition for a value within same column

    Hi,
    I would like to select the rows from table which matches key='DKJ' and key='BK5'
    Is it possible to use exists condition here...to get the result only when it contains both the keys. Please could you suggest me alternative query for the below..
    SELECT a.or_no,b.key
    FROM v_sp a,
    v_off b
    WHERE a.or_no = '27422739'
    AND a.key_code = b.key_code
    AND(b.mod = '00K'
    AND(b.key = 'DKJ' OR b.keystroke = 'BK5'))
    Many Thanks,
    Hari

    Hi,
    I would like to select the rows from table which
    matches key='DKJ' and key='BK5'
    Is it possible to use exists condition here...to get
    the result only when it contains both the keys.
    Please could you suggest me alternative query for the
    below..
    SELECT a.or_no,b.key
    FROM v_sp a,
    v_off b
    a.or_no = '27422739'
    AND a.key_code = b.key_code
    AND(b.mod = '00K'
    AND(b.key = 'DKJ' OR b.keystroke = 'BK5'))
    What you say and what you do aren't the same. Please clarify.

  • Pricing amount and condition value in sales order

    Hi all,
    I have noticed for a sales order we are not able to see condition type amount, condition value in sales order even though it shows net price finaly ofr a sales order. Not even able to select the condition lines.
    To be specific not able to find value in field KBETR  - amount column and KWERT - condition value column
    When we go to sales order line item and select condition tab, do see value displayed in Amount and Condition column. Is there are specific reason it is doing visa vis in our production we see both values.
    Advise what could be the reason value not getting displayed in Amount and Condition value column.
    thanks

    It is due to auth for specific columns we have solved the problem.

  • How to find the Conditions and Condition values in table entries

    Dear Experts -
    the issue is about getting the table entries of Pricing procedure Condition type and condition values - Application Component - MS external service management.
    In case of service order Condition document number (EKKO - KNUMV) is not updated.
    KNUMV we can use for Pricing procedure - Application componant - M Purchasing.
    How to get table entries of pricing procedure - Application Componant - MS External services management.
    Thanks in Advance

    Hi
    SES releated table:
    ESKL - Account assignment specification for service line
    ESKN - Account assignment in service package
    ESLH - Service package header data
    ESLL - Lines in service package
    ESSR - Service entry sheet header data
    ESUC - External services management: Unplanned limits for contract item
    ESUH - External services management: unplanned service limits header data
    ESUP - External services management: unplanned limits for service packages
    ESUS - External services management: Unplanned limits for service types
    Regards
    Prasanna R

  • Getting Reason Code, Condition Type, and Condition Value in one report

    Hello there,
    I have got a Question for you all BW Gurus. I need the answer for this as soon as possible. I will assign points to all helpful answers.
    I am having a Sales cube, Delivery Cube, and a Conditions Cube which I built. Each cube is populated from different ODS. Means there are 3 ODS for 3 cubes. I am joining these 3 cubes under a Multiprovider.
    My Question is:
    We are using Reason Codes at Delivery level. We have identified an empty field in the delivery tables and populating this field with the reason codes. We have condition type and condition value only in the Condition cube. One of the reporting requirements is that we need to see Reason code, Condition Type, and Condition value in one report. I am planning to report on the Multiprovider. Since Reason code, Condition Type, and Condition value are not present in all the 3 cubes (means they are not common characteristics in the Multiprovider), I don’t think I can get those values in one report if I report on the Multiprovider. Please correct me if I am wrong. If what I say is correct, please tell me how to solve my problem. Once again, helpful answers will be greatly appreciated and rewarded with points.
    Thank you in advance.
    Kind Regards,
    Swathi

    Hello Swathi,
    Please do not post the same question on multiple forums.
    Thanks,

  • Enabling and disabling input filed based on the Dropdown values selection

    HI,
    I have a requirement with Adobe Interactive forms being called from HCM Forms & Processes. We have a drop-down list and a inputbox.
    based on the values selected from the drop-downlist, the input box should be visible and hidden.
    If the input value is visible, I got to send  some part of the value selected from the drop down to the input field.
    i tried to write the following script in the click event of dropdown  but the input field is not appearing with any value selection.
    if data.Layout.CH1.CHContent.ISR_DDL_1stSelected.rawValue = "00000000" then
    data.Layout.CH1.CHContent.ISR_NEW_COST.presence = 'Visible' else
    data.Layout.CH1.CHContent.ISR_NEW_COST.presence = "Hidden"
    endif
    Thanks in Advance,
    VR.

    Hi Mukesh,
    THanks alot.
    Yes,  The Split functionality is working.  I have added the code in 'Change' event and  for selecting the value from the Drop down, am  writing the code in the 'exit'.
    In addition to this, I am populating the values to the drop down from the Generic service.  The problem is, while running  the  Process from Portal and check and send button,  the fields fetched from the generic service & the dropdown values are getting refreshed. i hope, this is because of the java script.
    pls. suggest me if this can be handled .
    Thanks &Regards,
    Venkatesh.

  • Using multiple 'and' conditions in a SQL query

    Is it possible to reduce the SQL required to query using multiple 'and' conditions, e.g. I have a query like the following:
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and stat.personal_details = 'C'
    and stat.further_details = 'C'
    and stat.education = 'C'
    and stat.employment = 'C'
    and stat.personal_statement = 'C'
    and stat.choices = 'C'
    and stat.reference = 'C'
    and stat.student_finance = 'C'
    Is there a way, to reduce all the multiple 'and' queries, to be read from say one line? If you know what I mean.......

    Ah, Ok this looks nice, thanks very much. It doesn't quite run as is because the stat.amount_paid query value is 'is null', while the others are 'C'. I tried amending the relevant line to various versions of the following:-
    in (select 'is null' 'C','C','C','C','C','C','C','C' from dual)
    which doesn't work.
    I can get the following to work so I am assuming that the it is not possible to use different query values within the brackets of the 'in (select....' statement?
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and (stat.personal_details, stat.further_details, stat.education,
    stat.employment, stat.personal_statement, stat.choices, stat.reference, stat.student_finance)
    in (select 'C','C','C','C','C','C','C','C' from dual)
    Thanks for everybodys help - the suggested alternatives seem so much more elegant

  • Comparing and picking the right value form one of the line item in a doc.

    Hi Gurus,
    I have requirement such that I have to show the tax jurisdiction code of only one item. That is if there are 5 line items with in a document and each one has diffeerent tax jurisdiction code, then we should be showing only one tax jurisdiction code for a document. Line items are not displayed in report. The condition to pick up tax jurisdiction code is the one which has least ending zeros.
    Supppose
    Doc1          Item          Tax Jurisdiction code
    1800000002       1          CNQC00000000000
    1800000002       2          CNQC00000000000
    1800000002       3          CN0000000000000
    1800000002       4          CNQC00000000000
    1800000002       5          TXJOHNCLEBUR000
    I have to display  the value of tax jurisdiction code corresponding to item 5  as its has least  zeros in it.
    So what I am trying to do is add another custom z object tax jurisdiction code and the value for this is populated using a routine in the update rules, such that comparing all the tax jurisdiction code for all the corresponding items in a document.
    Now the question is if I am reading all values of document no. line item and tax jurisdiction code into an internal table form communication structure for a data package. And in the update rule I will be writing a routine comparing the values of tax jurisdiction code from internal table and populating the desired value. Now the big question for me is if there are two line items of a document in one data package and another 3 line items of the corresponding same document in data package 2 then how can we compare the values of Tax jurisdiction code of all the 5 line items of a document.
    If this can be achieved using customer exit on the front end let me know and just inputs how the abap code would be or if not do I have to write abap in updates rules. I just want to know how to compare different values of Tax Jurisdiction code and select the one with has least ending zeros. For information the tax jurisdiction code is of type character and length 15.
    Any help is really appreciated.
    Thanks,
    Raj

    Yes, it's possible. Just use a regular text item. Create an LOV using the LOV wizard. When you define the query for the LOV's record group, enter a statement that selects from the other database table. Set the return value of the appropriate LOV column to be the text item on the form. Finally, assign the LOV to that text item, so that the LOV pops up when the user presses the LOV key with the cursor in that text item. You can also set the LOV so that it automatically displays when the cursor enters the text item.
    Just look up LOV in online help if you need more info.

  • Standard Report with Condition Type and Condition Records

    Hello to all,
    Is there any standard report available in which Condition Type and Condition values are displayed in either column or row format? The selection criteria can be either Quotation, Contract, Sales Order, Delivery, Invoice or Billing. Thanks anyways...

    Hi Huzefa,
      Pls check the relevant table where the condition records are stored. then do a query with  that condition table and KONP. say for eg: condn type ZINV,ZMRP gets stored in condition table A821, then combine A821 and KONP, u can input condition type and get the values........................
    go to vk13, display and click on layout, u will able to see the condition table.
    Rgds,
    Anitha J

  • Problem with Delivery, Sales and Conditions cubes

    Hello everybody,
    I will be thankful to you all if you can send a reply ASAP as I need the solution immediately . I have 2 Questions:
    No.1:
    I am developing Delivery, Sales and Conditions cubes. I am using 2LIS_11_VAITM data source for Sales, 2LIS_12_VCITM for Delivery, and 2LIS_11_VAKON for Conditions. Here I have a problem. I am putting the 3 Cubes in a Multiprovider. I am planning to use 0DOC_NUMBER (Sales Document number) to combine these 3 cubes in a Multiprovider. 0DOC_NUMBER is mapped to VBELN field for Sales and Conditions cubes. But I have mapped VBELN to 0DELIV_NUMB in Delivery Cube. But I need a 0DOC_NUMBER in the Delivery cube as well inorder to join the 3 cubes in a Multiprovider. Can I use field VBELV(Originating document) from the Delivery Data source, 2LIS_12_VCITM, and map it to 0DOC_NUMBER? Will VBELV give me the same data as VBELN? Or should I map VBELN from Delivery datasource to 0DOC_NUMBER in the Delivery cube and not include 0DELIV_NUMB in the cube? Or Is there any other way to do this? We are using BW 3.5.    
    No.2:
    My second Question is that in the Conditions cube, should I need to create different Key figures to store the Condition values for different Condition types or is one Key figure is sufficient to store the condition values for different condition types? We have 4 condition types.
    Your suggestions will be greatly appreciated.
    Thanks a lot in advance.
    Kind Regards,
    Swathi.

    Hi Swathi
    IF you are developing your own cubes and using the standard infosources you can include sales order number in 2lis_12_vcitm. Just check if sales order number is preosent in 2lis_12_vcitm. if present you can map that to 0doc_number and then load it the cube.
    2. As there are no condition type present in sales and delivery, you will not get the data in the report based on multiprovider. If you want only condition types data then you can directly write a report on condition cube.
    it completely depends on how you design your multiprovider.
    REgards
    Rak

  • Payment in CJIA and document in FB03, Value not matching

    ********Reposting from FI group***********
    Dear Gurus,
    In a scenario where user has made a payment to vendor, a clearing document has been posted. The values are not martching in payment transaction, CJIA and the document disaplay FB03. Please find the screen shot as below:
    The amount paid in FB03 TC is 11,550,730.20- and  7,945,096.92.
    Whereas in CJIA report it displays 61,363,254.58- and 55,591,175.59
    Kindly Note, I have already deleted and regenerated Project cash management document via programs RFFMDL16 and RFFMRP15P, but the values displays same.
    I am not able to understand the values which are shown in TC CJIA.
    Kindly provide your input.
    Thanks and regards,
    Narender.

    HI Gokul,
    Thanks for your reply. There are no entries in table RPSCO.
    But the entries are in table COFP with BTran as KAFM and value type 57.
    Regarding your questions: Another thing that i wanted to know is whether you ran CJFN for the accounting document after doing the actual payment?
    Initially these values were displaying once the payment was done (VType 57). I tried to execute the correction programs considering there will be inconsistencies in table. But the values did not changed. After this values were displaying in VType 54 and hence I execute CJFN to display Vtype as 57 such as to bring the system display as initial condition.
    Let me know if this helps. Further inputs awaited.
    Thanks and regards,
    Narender.

  • Condition type fix value

    hi all
    i want to make one condition type in which i want to feed  one fix amount.....
    suppose PO is of 100 quanity
    and that condition is having value 100 Rs.
    and if i am doin GR of 10 then i want that condition value 100 instead of 10....
    means for every partial GR i need this value as 100....
    how to maintain condition type in this case???
    Anin

    Hi Jazz
    Firstly in GR u'll not get a value field..
    Can you be more specific
    Regards
    Jagadish

  • Material exchane ,copy pricing and conditions from main item to sub item.

    Hi All,
    We are using parts exchange/interchangeability in the transaction ME22N,
    While using ME22N we are exchanging  main item with interchangeable part and while doing so we want to copy pricing and conditions from main item to sub item.
    But its not happening.
    As per sap help its possible, details describe below.
    http://help.sap.com/erp2005_ehp_04/helpdata/en/c2/0a5288b77d11d3bcce00105ab03aee/content.htm
    Price Determination by Copying from Main Item
    In the case of price determination by copying from the main item, the net price of the originally ordered part is still used for the superseding part in a part exchange.
    The system copies all conditions from the main item to all sub-items and takes into account the order quantity for the main item when calculating scale prices. It does not take into account the conditions and scale prices that exist for the interchangeable part.
    You cannot change the conditions, which have been copied from the main item, at sub-item level. It is possible, however, to define additional conditions for each sub-item.
    Prerequisites
    A calculation schema, which can be altered on an individual basis in Customizing, has been supplied for the price determination.
    In the vendor master record, you have set the schema group 09 (interchangeable material).
    But in customizing I didnu2019t find value 09 for schema group .
    Can any buddy through some light on missing pieces which need to be set?
    Thanks
    Regards
    Ritesh

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Restrict referance of pricing and condition type from latest PO.

    Hi Experts,
    I am creating Purchase order and at the time of creation of purchase order system is copying prices and condition types from latest PO.
    Which is not desirable to our business process, when I dig out I found out that in standard SAP system
    The system looks at pricing in the hierarchy order as below:
    u2022     Contracts/scheduling agreement
    u2022     Condition records
    u2022     Info Records
    u2022     Last purchase document
    So can some one help me with information how to restrict system to follow this referance of pricing.
    I want to enter price as well as condition type manualy every time user create a purchasing document.
    Also i want to know can it be restricted specificaly for few document type.
    Thanks
    Best Regards
    Ritesh

    Hi sir
    can we try this
    Use the user parameter EVO to indicate that no price adoption from last Purchase Order must take place:
    IMG: MM -> Purchasing -> Environment data -> Default values for Buyers
    -> Setting for Default values.
    Select or setup a default value and on the "price adoption" tab you may choose how copying of conditions from last purchase order must behave. Select "Do not copy".
    Then assign this default value to the user, using the EVO parameter.
    [http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/price-to-flow-from-info-record-at-plant-level-813066]
    [Re: new info record with same details as archive one.;
    check following notes it may helfull
    569885 About Info Record Update indicator (EKPO-SPINF)
    13127 Update in info record from PO, quotation, contract
    430543 FAQ: Purchasing info record
    675523
    456691
    Regards
    Kailas ugale

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

Maybe you are looking for

  • Iphone 4 speaker won't work after ios 4.3.2 upgrade

    I upgraded to 4.3.2 yesterday and since then the speaker on my iphone 4 has stopped working completely. Phone will not ring, ipod won't play, no sound on the speaker at all. Can use the phone but no speakerphone or any other sound on the speaker. Ple

  • N81 problem with installing Ovi

    I am using a N81 8G. After I downloaded Ovi on my mobile phone, I could not install it. It said that I had system error. Would anybody hefl my solve this problem?

  • Problems saving bookmarks in Safari 6.1.3

    My MBP just updated Safari.  In the previous version the plus sign next to the address bar saved a bookmark for me, now it adds a site to the reading list.  I want the old way back but can't find where to change it in the prefs. Anyone know?  Seems b

  • How to set custom access denied pages in SharePoint 2013?

    Hi everybody, in SharePoint 2010 custom access denied or other error pages could be easily set by setting the new path to the webapp-properties by using webApp.UpdateMappedPage. In SharePoint 2013 this seems to be ignored. The MSDN-entry seems to be

  • Can I Limit Genius Mix to Use Just A Portion of Library?

    Hi - I love the Genius Mixes feature but I would like to use it to organize a large playlist that I have instead of my entire library.  Is there any way of limiting Genius to pull from a subset of my library?