One parameters should pass two Infotypes at different times

I have two Infotype 0014 & 0015 which needs to be passed to the Class Z_CUSTOM_CLASS method CHECK_EGLIBILITY, Can any body help me in passing these Infotypes at different times but only through One Parameter ( IMPORTING or changing ) .
I need to know the TYPE or LIKE or Type Ref to for that Par1 ?
I dont want to specify two parameters each defined based on the structure of P0014 or P0015.
Z_CUSTOM_CLASS => CHeck_ELIGIBILITY
importing
par 1  = 0014
or 
Z_CUSTOM_CLASS => CHeck_ELIGIBILITY
importing
par 1  = 0015
the class should be able to process both infotypes, the developer who uses this method would be given Privilege whether to pass 14 infotype or infotype 15 depending on situation.
it would be of great help if you can show some sample code.

You can use PRELP structure to type this parameter. This would work similary to customer exits ZXPADU01/02
data p0014 type p0014.
data innnn type prelp.
"before passing to method cast it to PRELP structure
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
EXPORTING
PNNNN = p0014
IMPORTING
PRELP = INNNN.
"then pass it to method
Z_CUSTOM_CLASS => CHeck_ELIGIBILITY
importing
par 1 = innnn.  "type PRELP
"in method cast it back to either p0014 or p0015
data: p0015 type p0015,
         p0014 type p0014.
case innnn-infty.
when '0014'.
   CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
     EXPORTING
       PRELP = INNNN
    IMPORTING
      PNNNN = p0014.
   "your coding here
  when '0015'.
   CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
     EXPORTING
       PRELP = INNNN
    IMPORTING
      PNNNN = p0015.
   "your coding here
endcase.
Regards
Marcin

Similar Messages

  • How do I use iTunes on one computer to manage two iPads with different contents?

    I just bought an iPad Air 2 and want to use it with iTunes on my MacBook Pro.  No problem so far!  However, I want to continue to use my "old" iPad 2 for my wife and want to keep managing it as I always have using iTunes on my MacBook Pro.  The thing is that I want to make it possible for the two iPads to have quite different content to allow for the different needs and tastes of my wife and me.  How should I go about this?
    Thanks for any help.

    Hi Brett,
    Thanks very much for the information.
    I took a look at it but it seems to be aimed solely at "media" on an iPad, i.e. movies, music, TV shows etc.  This is fine, but I also want to be able to deal with all the apps on each iPad too, so that when I connect each iPad to my MacBook through iTunes, the synching process works just like it always has for my first iPad (an IPad 2).  I don't mean that I want all the apps on both iPads to be the same (my wife doesn't need all the apps that are on the iPad 2 at present), but I do want to be able to add/remove/update media and apps on each iPad, and update the iOS on each iPad. 
    Basically, I guess, I want a situation whereby when I plug in either of the iPads, iTunes recognizes each as a separate device and has a totally separate "library" (backup?) of music, movies, TV shows, etc. and — most importantly — apps.  Is that possible?
    Regards,
    Chris

  • One Controlling Area for Two CoCds with different Fiscal Year variant

    Hi,
    I have a Company code with FYV "A1" with 12 Periods (Apr - Mar) - Fiscal year start at Apr-01 and ends Mar-31 of the next year.
    I have another company code with FYV "B1" with 12 Periods (Jan-Dec). - Fiscal year start at Jan-01 and ends Dec-31.
    Chart of Accounts for both the company code is same.
    Can I assign these two company codes to one Controlling Area?
    When I try to assign the company codes, I got the following warning message.
    Differing fiscal year variants: A1 - B1
    Message no. KT297
    Diagnosis
    Fiscal year variant A1, controlling area 1000, does not agree with fiscal year variant B1, company code 5001.
    The following entries must agree:
    - Same number of posting periods (the number of special periods may vary)
    - Same period limits
    Procedure
    Ensure that the fiscal year variants of the controlling area and the assigned company codes agree. If necessary, maintain the fiscal year variants.
    1. What is the meaning of "Same period limits"?
    2. Does it mean the fiscal year start and end date must be same?
    3. What is the impact of the warning message?
    Thanks
    Palani

    Having same fiscal year variant is one of the requirements for different company codes to be under one controlling area.
    The FYV for the company codes and the controlling area can have a different number of special periods. The number of posting periods must be the same.
    Impact of warning message: You cannot create one controlling area for both company codes (1:n assignment).
    If you like, you can create one controlling area for one compnay code with FYV A1 and another controlling area for another company code with FYV B1.
    PS: Please reward the points if you find the answer as useful and rewarding points is a way of saying thanks.

  • CER 9.0 One Line number on two phones at different locations

    I'm putting some phones statically into CER and I have a line number that is on two different phones, the phones are at two different building locations. Is there a way to put both phones into CER with the same number but have the correct information be pulled up when dailing 911?

    Got it, you can only have unique manual phone extensions defined, so you cannot have the same extension assigned to 2 different ERLs.  If one it to be build manually and another one is tracked then CER uses the following order to figure out which one to use:
    Call Routing Order
    Emergency Responder directs emergency calls based on the location of the phone from which the call is placed. The location of the phone is determined by the following methods, in order of precedence:
     Synthetic phones—The MAC address of the phone matches that of a synthetic phone and is assigned to a test Emergency Response Location (ERL). See Synthetic Phones and Set Up Test ERLs. 
     IP Phones tracked behind a switch port—The MAC address of the IP phone is tracked behind a switch port assigned to an ERL. See Switch Port Configuration. 
     IP Phones tracked using IP subnet—The IP address of an IP phone belongs to an IP subnet assigned to an ERL. See Set Up IP Subnet-based ERLs. 
     IP Phones tracked by another (remote) Emergency Responder server group in the same Emergency Responder cluster—The remote server group tracks an IP phone behind a switch port or by IP subnet. When an emergency call is received, it is forwarded to the Cisco Unified Communications Manager cluster served by the remote Emergency Responder server group. See Phone Moves between Clusters. 
     Manually configured phones—The line number of the phone is manually assigned to an ERL. See Manually Define Phones. 
     Unlocated Phones—The MAC address of an IP phone is assigned to an ERL. See Identify Unlocated Phones. 
     Default ERL—None of the preceding criteria is used to determine the phone location. The call is routed to the default ERL. See Set Up Default ERL.

  • How to Link two Facts with Different Time Granularity (Year, Quarter) to a Single Time Dimension

    Hello All,
    I have the below scenario where i have Two Facts Fact Quarterly and Fact Yearly but one Time Dimension which has Quarter grain.
    So my question is how do i Establish relationship from Fact Yearly to Time Dimension??
    Ex: 

    Hi naveej,
    According to your description, you want to know how to build the relationship with time dimension and fact tables. Right?
    Based on your screenshot, it's better to have only one fact table for sales and build the relationship with time dimension. To determine quarterly or yearly data only depends on how you slice the time dimension. However, I notice that the Revenue for year
    is different from the aggregated Profit for quarters. If the Revenue and Profit are different measure, you need to have two fact tables. And you should build the relationship (Regular) between TimeDim and FactYearly on YYYY attribute.
    Reference:
    Defining a Fact Relationship
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Synchroniz​e two waveforms with different time

    Hi All,
         Thank you again in advance for you help on this. I am trying to create a setup where a spectrum is generated over time (millisecond time range, this function works properly), and a maximum for a peak that I select (this also works correctly) plots over time (minute time scale). However, when I try to run this, the fast plot is operating at about 40 Hz, and I have a calculation to allow a resolution feature for the minute time graph (the fast experiment is averaged a given number of times to produce a spectrum which is then analyzed for the maximum peak, so for example, at 40 Hz, and a resolution of 0.5 seconds, it should need to average 20 spectra for each point), but in operation, the time does not work correctly. At 20 spectra averaged per point, I only get about one point per second, not 2. So, in an attempt to correct this, I cut the averages in half, and was able to get it to work at very nearly 2 spectra per second. However, the time is not exact when compared to an external clock, and I need to know then exact time. Thus, is there any way to have the minute time frame graph count time on its own, and just plot a Y value whenever it recieves one? I need to have it plot in real time, as is currently achieved in the attached vi. In th attached VI, I am working with the "chromatography mode" tab, the other tabs already work correctly. However, I am somewhat new at this, and my code is a bit messy, so I apologize for that in advance. Thank you,
    <>< Eric
    Attachments:
    IMS Software v5.4.vi ‏158 KB

    Hello Eric,
    I see that you are creating a waveform using the Build Waveform VI and then wiring it to the outputs in the Chromatography Mode tab - namely 'Waveform Graph' and 'Waveform Graph 3'. Is the 'dt' value constant for every iteration of the while loop? If so, your output should have constant time spacing between plotted values in the waveform graph.
    So, again I am not completely sure what you mean by the IMS not operating at the frequency you input :-(. Are you seeing the problem in 'Waveform Graph' or 'Waveform Graph 3' or both? An simple example VI would be great to describe your issue.
    Vivek Nath
    National Instruments
    Applications Engineer
    Machine Vision

  • Repaint problem. Paint two components at different times.

    I have two labels on a panel. I want to paint them one by one after some action. However, I found that even I call the repaint method of the first label and after some time call the repaint method of the second label, stilll they change at the same time. The first label will wait until the second label repaints.
    Below is my code:
    import java.awt.event.*;
    import javax.swing.*;
    public class PaintTest extends JPanel {
         JButton paintButton = new JButton("paint");
         JLabel labelOne = new JLabel("Paint first");
         JLabel labelTwo = new JLabel("Paint second");
         public PaintTest() {
              add (paintButton);
              add (labelOne);
              add (labelTwo);
              paintButton.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent evt) {
                        paintButton_actionPerformed (evt);               
         void paintButton_actionPerformed(ActionEvent evt) {
              labelOne.setText("first");
              labelOne.repaint();
              labelOne.revalidate();
              this.repaint();
              this.revalidate();          
              // wait for some time.
              for (long i = 0; i < 99999999; i++) {
              labelTwo.setText("second");
              labelTwo.repaint();
         public static void main(String[] args) {
              JFrame f = new JFrame();
              f.setContentPane(new PaintTest());
              f.pack();
              f.show();
    }

    The reason its not being updated is because ur not realeasing ur current thread, ur making it work - the time it waits is actually working, so ur not allowing the painting thread to cut in and do the painting. Try this instead:
    Implement runnable with:
    public void run() {
    for (long i = 0; i < 99999999; i++) {}
         labelTwo.setText("second");
         labelTwo.repaint();
         repaint();
         revalidate();
    }and in ur actionPerformed:
    labelOne.setText("first");
    labelOne.repaint();
    labelOne.revalidate();
    repaint();
    revalidate();
    SwingUtilities.invokeLater(this);This will give the paiting thread time to repaint before u do u waiting-work....
    Stig.

  • How to pass two parameters in one url?

    the tutorial teaches me to use
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}
    to pass one parameter.
    How can i pass two parameters in one url?
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}&personName=#{currentRow.value['PERSON.PERSONNAME']}
    is not right.

    The '&' character needs to be escaped, lest it be interpreted by the application server as a separator character in the HTTP query string. Instead of '&', try '%26'.
    // Gregory

  • Hyperlink Bag : Passing two Parameters to Hyperlink bag

    Hi,
    Pls let me know if any one has worked on how to Pass two parameters to Hyperlink Bag in MSA 5.0.My code is working fine with single Parameter but when I pass two parameter it is throwing an error.
    Appreciate if some one can share a code for the same.
    Thanks in Advanace.
    Thanks and Regds
    Harish

    Hi Ramakrishna,
    Thanks for your prompt reply. I have gone through this document. My requirement is different than what's stated in the document. The users filter their records in the VC application by using more than one filter and press the button called 'Open Query' button. The system then takes them to WAD. The WAD should be able to set the same filter value/s that they select in VC application. But at the moment, it passes only one parameter to WAD regardless of how many filter values that users select in VC. Please suggest on this matter.
    Thanks.

  • I have two Apple accounts the one on my phone and computer are the same the one on my mini i pad is different I have credit on my mini i pad however, when I purchase an App or movie I am charged on my credit card and the $40:00 worth of I Tune cards is by

    I have two Apple accounts the one on my I phone and computer are the same the one on my mini i pad is different I have credit on my mini i pad however, when I purchase an App or movie I am charged on my credit card and the $40:00 worth of I Tune cards is by passed I have tried to change the mini i pad account details to be the same as my computer and original apple i.d.account however, it will not allow me to do I have tried to reset the mini  i pad but not all the way to factory otherwise I would loose all my data. I have visited a genuis bench at Fountain gate however, they tell me I need to ring apple support which I will do on the next working day.

    You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
    My Apple ID

  • Automatic Deployment Rule - One ADR for Two Different Collection for Two Different time Intervals

    I have a scenario where two collection of Windows 8.1 is made based on geographical location. One collection is for all the windows 8.1 machines in India and one collection is for all windows 8.1 machines in US. Now I have created one ADR to be deployed
    to the Collection for Machines in India with a schedule.
    My requirement is that can i use the same ADR for those two collection with different schedule. Say I want ADR to be deployed in India at say 10:PM IST and for US collection at say 10:00 PM PST.
    Can I use one ADR with two different schedule and can be deployed to two different collection. Any help will be greatly appreciated.
      

    Couple of "bits" to help you one your patch automation quest:
    A ADR is very much a 1:1:1 rule.  It creates (or updates) ONE update group, deploys it to ONE collection, and you can provide ONE schedule.  While you are more than capable of flipping said deployment time to use local time instead of UTC, in general
    it's a very simple set of rules that are dogmatically run.
    That said because of the "include" feature of collections it's not that hard to setup a good/robust patching pattern.  What I recommend doing is building an ADR for each variance of deployment of patches or enforcement time.  for example,
    my ADRs look something like this:
    Software Updates - Zero day enforced
    Software Updates - Critical and Security 1 month enforced
    Software Updates - Critical and Security 1 month no reboots
    Exact terminology is up to you of course, but I find a good descriptive ADR name saves a lot of confusion.  For each ADR I create an identical collection.  From there I can use existing collections and a simple "include collection" rule
    to bundle things up and make them part of the patching schedule of my choice.  Anyone can now go into my "software update" folder, look at my collections, and know exactly what gets patched by what deadline.
    Finally, don't be afraid to look into maintenance windows to trim down ADR count.  Making a deployment available for a month before it goes enforced, then setting up groups of maintenance windows (one for each Friday of the week for example) can also
    accomplish a similar goal by having machines auto-patch during their week but you only using one ADR.
    So by having two "types" of collections to manage your patching (one to assign a ADR built by deployment deadlines, the other for exact update windows) you should be able to group most your workstations into a decent patch scheudle without being
    too excessive about creating a billion ADRs.

  • Passing two values in two different views using view criteria in adf bc

    I have two tables. Message and MessageProperties. Message table is connected with itself as same as Employee table of HR. Means a Message can have various child message. MessageProperties contains the message properties. A message can have various properties. I want to show the message only if it has a particular value in MessageProperties,then its properties,its child message. If its child message have the same value in MessageProperties,then it shows that. Likewise it should give me a tree structure with its all properties.
    When I am hardcode the value then its shows fine.
    SELECT Message.MESSAGE_ID,
    Message.MSG_CONTENT_ID,
    FROM MESSAGE Message, MESSAGE_PROP MessageProp
    WHERE (MessageProp.Message_Id=Message.Message_Id) AND ((MessageProp.Key='From' OR MessageProp.Key='To') AND (MessageProp.value='B'))
    But when I use the Bind variable in view criteria then I am not able to achieve this.
    1. How to do that in adf bc and how to link message and messageprop with this condition?
    2. How to pass two parameters in serviceinterface FIndViewCriteria method i.e. messageId and value so that it will show only that message having that value?

    Thanks Timo,
    It helps me a little bit.
    It only shows me the parent message id and its properties. But it is not showing its child message id and its properties.
    Let me explain you step by step what I have done.
    1> I have created a view MessageView with two entities i.e Message and MessageProp and include the value attribute of MessageProp in it.
    2> I have created the default MessagePropView from MessageProp Entity.
    3> In MessageView I have modified the query which you have given.
    4> I have created the Bind variables.
    5> I have created a view criteria and in that view criteria I have included Message_Id=:Bind_MessageId and Value=:Bind_Value.
    6> I have created an association connecting Message.Message_Id and Message.Parent_Id(1 to * cardinality) because a message can be a parent of many messages.
    7> I have created a viewlink between Message and MessageProp using Message_Id.
    8> I have created a view link between Message and Message using the association which I have created in step 6.
    9> I have created the Application Module. In that,my Data Model looks like
    ---MessagePropView2
    ---MessageView1
    ---------MessagePropView1
    ---------MessageView2
    10> Then I have created the service interface. In service interface view instances,I include these two view and select the GetByKey operation from basic operations.
    11> From View Criteria find operations I have included the view criteria which I have created in message view in step 5.
    12> Then I run the AppModuleServiceImpl.java and select the view criteria operation which I have created in step 11.
    13> There I find two bind variables i.e. Bind_MessageId and Bind_Value. I give the values there.
    But it checks whether that message Id(Bind_MessageId) which I have given have that value(Bind_Value) or not. If it has then it shows only that message along with its properties but it is not showing me its childs and their properties.
    I want to show only those child message who have the MessageProp.value as (Bind_Value).
    I hope you understand with the scenario.
    I'll be very thankfull to you if you help me to do this.
    Rohit.

  • Input in one formfield go to two different fields in a MySQL tablerow?

    Hi, I hope you can help me with this.
    How can I have input in one formfield go to two different fields in a MySQL tablerow without having the visitor to type out his input out twice?
    With the second one I would like to use md5.
    Any help is greatly appreciated.

    How can I have input in one formfield go to two different fields in a
    MySQL tablerow without having the visitor to type out his input out
    twice?
    You would need to write your query with the WHERE clause when you update to say "WHERE user=$userid".  That's the most basic way.  The $userid variable would need to come from either a session or a cookie if the user is logged in and you don't want them to enter the information again.  Or if this is from a previous page, the $userid could just be equal to the $_POST variable after sanitization.
    With the second one I would like to use md5.
    That's even simpler.  Before submitting the form, just do $md5_pass = md5($pass);
    http://us.php.net/manual/en/function.md5.php

  • How to pass two parameters to sql query

    I try to create a sql script to update two columns in one table. I want to set it as parameter. When people execute this sql script, they need to pass parameter into sql query, then query will be executed successfully. The problem is I am only able to pass one parameter. If set two parameters in one line code, it will get ORA-00933 errors. Please advice me where I was wrong. The code is simple and like this:
    update MY_TABLE set year = &year AND month = &month where application_type = 'xxxx';
    If I only have: update MY_TABLE set year = &year where application_type = 'xxxx'; It works. If I set two parameters to pass value. It will get error.

    Hi,
    When you UPDATE two or more columns in the same statement, use ',' instead of 'AND' to separate them:
    update  MY_TABLE
    set     year = &year
    ,       month = &month
    where   application_type = 'xxxx';The correct syntax for all SQL statements, including UPDATE, can be found in the [SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10008.htm#sthref9598].

  • One MIRO document with two different vendors for two different line items

    Can it possible to make MIRO for a PO which is having two conditions(Basic price+Freight) with two different vendors.
    MIRO document needs:
    GR/IR Clearing    Dr.
    Freight Clearing  Dr.
    Vendor RM(X)         Cr.
    Vendor Freight(Y)   Cr.
    Is it possible to post the above document at a time not individually for each condition.

    Hi,
    Yes, It is possible to post Material and delivery cost in one document.where in material supplier is different than the Frieght vendor.
    Itm PK  BusA Acct no.   Description                    Tx     Amount in   USD   
    001 89       130001     Stock-Ingredients               244 0            880.00 
    002 96       320001     GR/IR Account - Ing.            244 0          1,200.00-
    003 86       520002     Ingredients - PPV               244 0          3,297.87 
    004 50       320008     GR/IR Account - Duty            244 0            797.87-
    005 50       320009     GR/IR Account - Fre.            244 0          2,180.00-
    Thanks
    Dinabandhu

Maybe you are looking for