Triggering ME_GUI_PO_CUST based on certain condition

Hi,
I have implemented ME_GUI_PO_CUST and ME_PROCESS_PO_CUST BAdis to display a custom tab in ME21n/22n/23n at item level. The custom tab is getting displayed but the problem is that I need to display the custom tab only for certain PO types and material types.How do handle this?
Any ideas??

Hi,
  to trigger certain badi   provide filters using  whatever the  po u want, i.e provide filters  using po at defination level,
may be its usefull.

Similar Messages

  • VT02N - do PGI and Invoice for certain deliveries either based on certain conditions

    Hi Friends ,
    We are using VT04 for creating shipments . While shipment completion stage in VT02N   an activity profile has been maintained  which does both the Goods issue and Invoice.
    We have a business requirement , PGI and Invoice should be created only for specific set of deliveries based on certain conditions.
    Is there any standard way to do this or by using user exits.
    Please guide.
    Thanks,
    Nileshsa.

    what about adding a check in userexit RV60AFZZ, when the condition is not met during invoice creation, error out and disable the creation of the invoice document?

  • How to Override Cost Center in IT 1 based on certain conditions

    Hi,
    I have a pretty good understanding on how Cost Center gets defaulted based on Org Structure.  The standard SAP solution for Cost Center will not work for my client and I need to determine the cost center based on certain conditions. I understand that I have to write custom code in some user exit or badi. I tried user exit EXIT_SAPFP50M_001, but it did not work.
    Here is my code:
    DATA: I0001 LIKE P0001.
    CASE INNNN-INFTY.
        WHEN '0001'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING
              PRELP = INNNN
            IMPORTING
              PNNNN = I0001.
    This is just an example to test the concept
    I0001-kostl = 'COST_CENTER'.
         CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
            EXPORTING
              pnnnn = i0001
            IMPORTING
              prelp = innnn.
    endcase.
    When I change IT 1 record and hit enter, I can see that my code is being executed. I can see cost center being updated on the screen, but when I save it, its not able to retain that new cost center value. This might be because cost center is not an open field.
    How can I change my code so it retains its value after saving?.
    Thanks!

    Contd to manoj
    Cost Center will be a Open feild when the value of   the  switch PLOGI ORGA  should be balnk if it is haveing 1 than it will not default the value kindly check

  • OIM11gR2 show items in catalog based on certain condition

    Hi All,
    Is there a way to show the catalog items based on some condition?
    Eg: Users having only "Role A" can see some entitlements or other roles.
    Any pointers are appreciated.
    Thanks
    Vicky

    You can take guidance from this: http://www.ateam-oracle.com/oim-11g-r2-ui-customization-tips-and-tricks/
    -Bikash

  • Setting a field as Mandatory dynamically based on certain condition

    Hi All -
    I am working on ADOBE Interactive forms. I am not able to find out, How to set a particular field as a 'Mandatory field' based on some condition. I am using FormCalc as scripting language.
    i.e: I have a field "RATING". I want to make the next field "COMMENT" as mandatory when "RATING" is less than 3.

    Hi Vishal,
       You need to set the mandatory attribute of the specific field according to your condition. In FormCalc this will be similar to this,
    if (Rating < 3) then
              $.mandatory = "error"
              $.mandatoryMessage = "The corresponding Comment field is mandatory. Please fill"
    else
              $.mandatory = "disabled"
    endif
    The mandatory property can be set as:
    "error" : Makes the field compulsory to be filled before submission
    "disabled" : Makes the field optional
    "warning" : Gives a warning to the user that the field should be filled, but doesn't cause an error on submission
    The property "mandatoryMessage" specifies the message to be displayed to the user when the mandatory field isn't filled before submission.
    Regards,
    Rose

  • FM to get purchasing price based on certain condition

    Hi,
    Is there any function module to get Price in purchasing document like PO after certain price condition like freight, discount etc.
    For example I have a material no, price per unit 50 USD and we'd like to buy 10 pieces of it, we have price condition with condition type and amount  freight and discount for this, I want to know what is net value after condition calculation.
    On other case I also need a gross value if I enter net value and some condition types and amounts, any FM for this case also?
    So that would be to two FM, or a FM that works vice versa.
    Thanks a bunch.
    Bernard

    Hi,
    Actually PO has not been created yet, because I want to create PO using BAPI_PO_CREATE, but we a  requirement to create a PO, and user upload a net value of a material and condition type with it.
    In BAPI_PO_CREATE we have to upload gross value of a material along with its conditions, then let BAPI compute net value and post to create a PO.
    In this case I have to get a gross value, when user upload a net value along with its conditions.
    Any idea?

  • How to enable or disable report parameter based on certain conditions

    Hello ALl,
    I have 3 parameters in my report. Fst parameter is having a LOV which is having all status value like 'Received,Refunded, Exempted etc).
    second parameter is From date and third parameter is To Date which is having value set as "FND_STANDARD_DATE'
    Now my requirement is If Status is selected as "Exempted" then From and To Date should be disabled.
    if other than that then both should be enabled.....
    Please help me out.
    How it cna be done.
    Thanks in advance
    sheetal

    Hi,
    You can use a condition
    <?xdoxslt:ifelse(Condition,'Paragraph','')?>
    Condition is the condition that needs to be satisfied
    Paragraph is the paragraph that needs to be displayed if the condition is satisfied
    '' is what needs to get displayed if the condition is not satisfied.
    Thanks,
    Swarna

  • How to select few columns based on certain conditions

    i have a table with n columns, of which in 2 columns each may have similar values for certain number of rows
    i want to find if one of the entries in a column has same value in the next few rows
    For example the two columns are
    supplier_name supplier_code
    hll 013
    hll 013
    hll 013
    hll 013
    if i first encounter hll with 013 i have to check whether hll with 013 record is further available
    if it is so i have to display the columns for which multiple entries is available
    can anyone send the query

    Duplicate thread?
    selecting certain columns in oracle

  • Generate Absence Quota based on certain condition

    Hi Experts,
    I'm new in Time Management. I have requirement in generation quota where new employee would have their quota after december in hiring year.
    For example
    A join in 01/06/2010. In 01.01.2011 we generate absence quota and A would have 6 days in year 2011, and normal 12 days in year 2012 and 12 days in the following years.
    B Join in 01/11/2010. In 01.01.2011 we generate absence quota and B would have 2 days in year 2011 and normal 12 days in year 2012 and 12 days in the following years.
    in other word the employee must earn the absence quota first and use it in the following years.
    Can this be achieved without using PCR because i dont have any experience in PCR? Many Thanks
    Regards

    Hi,
    Thanks for the table, I've found temporary solution with this setting:
    Validity/Deduction Interval
    Deduction from End of validity Interval   - 1 days
    Deduction to end of validity interval  + 12 months
    Enter previous year period for generating quota this year.
    Best REgards
    Edited by: Hendri Salim on Nov 5, 2010 1:58 PM

  • Inserting paragraphs into a report based on a certain condition

    Hi, I need some advice on the best method to insert paragraphs of text into a report.
    I have +/- 100 paragraphs which are in text format, I need to insert these into the report based on certain conditions.
    I have tried entering them into the trailer section one after the other and using conditional formatting to display them if the the condition is met. This works well but I ran out of space in the trailer section.
    I then thought of saving the paragraphs somewhere on the server as seperate txt files and inserting them into the report using file links,
    or I could put these paragraphs into a table and then insert them from there, some of these paragraphs are longer than 4000 characters,
    Please advise on the best method
    Thank you
    Michael

    Hi,
    If the button and the textfield are on in the same subform then this code should work in the click event of the button
    (This is JavaScript code so make sure the code is set to JavaScript and Client on the drop downs in the script window)
    (assuming the name of the textfield is TextField1)
    TextField1.rawValue = "some value";
    If they are in different subforms then you have 2 options
    Please note in both these options it is easier if the subforms have names ( I am assuming this to keep samples simple)
    option 1 -
    use the parent object to move up the tree till you are at the same level as that of the subform that contains the textfield
    e.g. 
    (Click Event of the button)
    this.parent.subformname.TextField1.rawValue = "some value";
    option 2 -
    Use the resolve node to make your way down from the top level of the form
    xfa.resolveNode ("form1.subformname.TextField1").rawValue = "some value";
    Hope this helps
    Malcolm
    p.s. I am making assumptions as the image/file you attached did not appear for me.

  • Dynamic insertion of elements based on dynamic condition

    I need to achieve the following:
    Input:
    <Customer>
         <name>Name1</name>
         <email>Email1</email>
         <phone>Phone1</phone>
         <Number>Num1</Number>
    <Customer>     
    Output:
    <Customer>
         <name>Name1</name>
         <email>Email1</email>
         <phone>Phone1</phone>
         <Number>Num1</Number>
         <Addresses>
              <Address>add1</Address>
              <Address>add1</Address>
              <Address>add1</Address>
         </Addresses>
    <Customer>
    Based on the number of Addresses that exist for the customer, multiple <Address> elements should be added.
    I can't determine number of Addresses at the beginning. It is deterrmined dynamically based on certain condition.
    So each time when the condition is met, I need to get the count of <Address> elements that exist and insert the new one last.
    My logic:
         Switch (case)     ==> Add <Address> only if condition is met
              count ==> count(bpws:getVariableData('outputVariable','payload','/ns1:Customer/ns1:Addresses')) ==> 0 first time
              <Addresses>
                   <Address>add1</Address> ===> Now I need to insert this.
              </Addresses>
    I have the following in my bpel:
    <assign name="AssignInsertAfterExisting">
    <copy>
    <from expression="count(bpws:getVariableData('outputVariable','payload','/ns1:Customer/ns1:Addresses'))"/>
    <to variable="NumberOfAds"/>
    </copy>
    <copy>
    <from expression="'123 street'"/>
    <to variable="nextAddress"/>
    </copy>
    <bpelx:insertAfter>
    <bpelx:from variable="nextAddress"/>
    <bpelx:to variable="outputVariable" part="payload"
    query="/ns1:Customer/ns1:Addresses/ns1:Address squareBrakets NumberOfAds squareBrakets"/>
    </bpelx:insertAfter>
    </assign>
    But with the above I am receiving the folllowing error:
         Assign Operation Misuse.
         The to-spec does not yield any data; insertAfter operation cannot be performed.
    Please check the BPEL source at line number ..
    I can I insert dynamically insert elements into array. I have seen the example provided in samples, but my problem is little different than that.
    Edited by: user10367892 on Aug 4, 2009 3:16 AM

    append is appending value of variable to existing element, instead of creating a new element in the array:
    For Eg:
    Input:
    <bpelx:append>
    <bpelx:from variable="nextAddress"/>
    <bpelx:to variable="outputVariable" part="payload" query="/ns1:Customer/ns1:Addresses/ns1:Address"/>
    </bpelx:append>
    Output if nextAddress = Address2 and if <Address>Address1</Address> already exists
    <Customer>
         <Addresses>
              <Address>Address1Address2</Address>
         </Addresses>
    </Customer>

  • Pricing Condition type triggering based on other condition type

    Hello sir,
    There are some pricing condition types in our system.
    Based on condition records you can trigger one condition type based on other    condition type.
    For eg: PR00 condition type is there and amount is  suppose 1000rs and other condition type is JBED and we made a condition record and put it some percentage so as soon as we some value in PR00 ,JBED condition type is automatically manipulating the value on the base condition record.
    Now i want other than condition record can we trigger one condition type based on other condition type through defining user routine under requirement.
    Suppose we have condition type ABC and some amount i have given and other condition type DEF , i want that amount of DEF condition type should automatically come from the Condition type and it should manipulate according to my routine .
    eg  Condition type    Amount
           ABC                  1000
           DEF                    40
      The value 40 should come as 4% of 1000.
    I am not maintaing any condition record and i want that this should trigger through some requirement created by me.
    i created my routine no 905 and i putted the code inside it.
      if komtl-kschl = 'DEF'.
      komv-kbetr  =   ( komv-kbetr * 4) / 100.
    endif.
    Now problem is that this code is getting trigger when i m giving value in DEF condition type then it is showing 4 % of it.
    But i want as soon as i give value for the condition type ABC and some value 1000
    then after pressing enter , one condition type DEF should automatically come with value 40 that too in display mode ,not in change mode.
    Please suggestions and solutions regarding this matter , I will be grateful to you.
    Manish

    hi
    In V/06 in the calculation type you can see the entries for "D-gross weight" & "E-net weight"
    For the required condition type select the calculation type as gross weight or net weight. Save it.
    In MM01 - create material master, here in BASIC DATA 1 SCREEN you have fields for gross weight & net weight.
    Maintain the condition record in VK11 for the required condition type.
    You can also maintain the scales as required like u said
    1 to 10 kgs -  100 rupees,
    11 to 25 kgs - 1000 rupees.
    Another way could be
    The BEST practice to do it is, use of VOFM routine for price calculation (VOFM-->Formulae).
    Take help from ABAPer and write a routine such that
    if weight = 1 - 10
    price = 100.
    else if weight > 8.
    price = 1000.
    else
    price = 100.
    end if
    but the maintainnance of routine is big problem as u might be having many records
    Hope this will help you
    Vishal

  • Skip product allocation under certain conditions

    Hi everyone. We are trying to use EXIT_SAPLQUOT_001 which is supposed to be running prior to product allocation, so we can set up parameter E_AFLAG so that this functionality is skipped under certain conditions.
    Exit documentation says:
    User Exit: SD Product Allocation, Enhanced Checks
    Functionality
    The user exit is called up before reviewing the confirmed quantities against discrete allocations (from 3.0F).
    Before this happens, the availibilty check is carried out if this is switched on in Customizing (ATP or against pre-planning). The results of this are transferred to product allocation.
    You can carry out the following tasks with this function module:
    1. You can switch off or miss out product allocation (E_AFLAG). This can be general or depending on characteristic values. Other values to help make this decision can be imported from the order coding memory.
    However, the exit doesn't seem to be triggered during sales order processing. It takes us straight into the product allocation screen, ignoring the breakpoint and the skipping instruction.
    Any ideas? Anybody is using this exit for this purpose? We run product allocation without running ATP. Could this be the problem?
    Thanks!

    sounds like this the problem.
    as I understand,
    if running ATP, EXIT_SAPLQUOT_001 is hit, based on your logic, prod alloc is skipped.
    elseif ATP is turned off, EXIT_SAPLQUOT_001 is skipped, by default prd alloc is executed.
    try setup break points on prod. alloc to see if you could have alternative flag to control...
    go to debug mode and check call stacks to find another place to set break point.

  • Displaying record based on the condition in Crystal report

    Hi All,
    I want to display certain records in crystal based on some condition.
    For example,
    If I am having 5 student records like,
    Name  Mark1 Mark2 Mark3 Total
    aaa      40       50       60      150
    abc      30       60       40       130
    tcr        25      25        25       75
    Now in table i have only 4 fields (STUNAME, MARK1, MARK2, MARK3).
    I have to calculate the total at runtime and if total is greater than 150, then actual record should display in report.
    For example, I can use formula to calculate total but I can calculate total only after each record prints. But i want to calculate total internally only it should display in report if condition satisfies. I dont want to keep one more field for total in crystal report.
    Please help me on this.

    If the filter is not "pushed" down to the database, then Crystal will pull all of the data into memory and then filter it there.  This is not a big deal if you only have a couple of records, but it can significantly slow down a report that is pulling in more than a few records.
    An alternative, if your report is just linking tables in the Database Expert, would be to create a SQL Expression that adds the three fields together.  Using this in the Select Expert WILL push the condition down to the database.
    If you're using a command instead of linking table, they you would add this to the Where clause of the comment.  If you're using a stored proc instead of tables or a command, you would want to do this filter in the code for the stored proc.
    -Dell
    Message was edited by: Dell Stinnett-Christy

  • Suppressing rows based on a condition

    I have report, where I have to remove certain rows out of the report, based on the certain condition.
    Note that, there are two characteristics in the rows, and one key figure in the columns. If the first characteristic value equals that of the second characteristic in the rows, I want to remove that row from display.
    Row1              R1    R2      K1
    Row2              R3    R3      K1
    Row3              R2    R3      K1
    Row4              R3    R2      K1
    In the above example, I need to remove Row2, because both characteristics have same value, which is R3. I want to suppress those records, and just show Row1, Row3 and Row4.
    Row1              R1    R2      K1
    Row2              R3    R3      K1  ->  remove this row
    Row3              R2    R3      K1
    Row4              R3    R2      K1
    My problem is conditions only work on the key figures, not characteristics. I tried the replacement variables, but it is not working.
    Any ideas?

    Hi,
    You can achieve the solution if your 2 characteristic's data type is NUMC.
    If it is NUMC, then try the below steps:
    1. Create a formula in the Key Figures structure.
    2. In the formula, create a formula variable, and on the formula variable select the processing type as Replacement Path. After that choose the first characteristic on the Characteristics selection.
    3. Repeat step 2 again for second characteristic.
    4. Now the two formula variables contains two characteristic. Select both of them and subtract it.
    5. You will get the values 0 and not equel to 0.
    6. Create a condition and suppress zero values of the formula key figure.
    If it is not NUMC, then i guess you have to stage the data to another location. At the time of transformation you have to supress the records.
    Vivek

Maybe you are looking for

  • Cannot print from mac OSX 10.5.8 to my HP B210 - I already reset the printer - HP utility won't open

    When I try to open the HP Utility - it just sits there and does nothing - I have to force quit. And my printer is not printing from my mac. My wife can print from her PC laptop. We use Netgear.

  • How to Uninstall Internet Explorer

    How to Uninstall Internet Explorer from Windows 7 ? I have tried it from WIndows udpates, but it still installed in my system

  • Generation of multiple reportfilename.vb  Files  Problem

    Post Author: jberkes CA Forum: General I have vb.net 2003 report that has mutiple crystal reports.    crystal reports generates .vb files for each of the reports.   Except sometimes it will generate multiple files for the same report and then I get a

  • Flip book animation effect

    Hey all, I'm working on a project where we want to incorporate animated "doodles" on top of live action video footage. By doodles I mean very simple line drawings similar to this (especially the drawings over the man in jeans: I want the viewer to se

  • Send layout(sapscript) to fax

    Hi all, I need to send layout to fax. i used in my program with 3 functions: open_form,write_form,close_form. open_form - the device is "telefax". when i ran this program, it give me a message: "Fax request created successfully" when i go to trans.so