Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Infotype - autocomplete

Former Member
0 Likes
1,141

I have created an Infotype, on the development server, and now the client wants some of the fields to come already completed.

Thus, it means, I have to take the employee number, and use it ina select. Unfortunately, no matter what I do I can't figure out where that particular pernr is hiding. Could you help me with a piece of code, on getting that.

Kind regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,058

>

> I have created an Infotype, on the development server, and now the client wants some of the fields to come already completed.

>

> Thus, it means, I have to take the employee number, and use it ina select. Unfortunately, no matter what I do I can't figure out where that particular pernr is hiding. Could you help me with a piece of code, on getting that.

>

> Kind regards,

Hey Ahmed What exactly your requirement ?

I didnt understood single piece even......

u created one infotype thats fine...

then what client is expecting?

Regards

Sas

I have created an Infotype, on the development server, and now the client wants some of the fields to come already completed.

Thus, it means, I have to take the employee number, and use it ina select. Unfortunately, no matter what I do I can't figure out where that particular pernr is hiding. Could you help me with a piece of code, on getting that.

Kind regards,

7 REPLIES 7
Read only

Former Member
0 Likes
1,058

Hello Ahmed,

PERNR field is already populated while you create entry for a employee for that particular Infotype field is PERNR-PERNR. You can select the information that you want to display by default in the PAI event of the Module pool screen.

Thanks,

Jayant

Read only

0 Likes
1,058

Hello,

I have the following code, in PBO, screen 2000:

select single nachn into it_tab from pa0002

inner join pa0000 on pa0002pernr = pa0000pernr.

Evidently, it brings only the first value in p0000. I'd actually need for that pernr, to be the number inputet by the user. I'm quite positive it must be stored somewhere, but I have no idea where.

Read only

Former Member
0 Likes
1,059

>

> I have created an Infotype, on the development server, and now the client wants some of the fields to come already completed.

>

> Thus, it means, I have to take the employee number, and use it ina select. Unfortunately, no matter what I do I can't figure out where that particular pernr is hiding. Could you help me with a piece of code, on getting that.

>

> Kind regards,

Hey Ahmed What exactly your requirement ?

I didnt understood single piece even......

u created one infotype thats fine...

then what client is expecting?

Regards

Sas

Read only

0 Likes
1,058

Client is expecting, me, to take data from the tables, and bring the infotype, completed, so that he can look at the data.

Let's say the client, introduces a employee number, my infotype, and clicks create in pa30.

The client wants the fields name, vorname...etc to come completed already with that particular employees data. if let's say employee numer 01 is ahmed mumbasa, when he clicks create the client wants to see:

Name Ahmed

Vorname Mumbasa

Sex Male

Problems with employee None.

Terefore i need the employee number from somewhere, so I can do my select, I think.

Read only

0 Likes
1,058

So i understood By clicking the infotype created by you say ex:9002 u created...

AND emp number 120 doesnt exists so in PA30 when u give emp 120 and give infotype 9002 and click create u expecting the employee to be created?

RegarDS

Sas

Read only

0 Likes
1,058

No no, if employee number exists, I want to complete my fields with the values. IF employee number, doesn't exist, then leave the fields blank.

Read only

0 Likes
1,058

Ok So u want the default values then chech parameter id of the field and pass the values in PBO.

Hope that will solve the problem...But populate the data based on the Check tables not on the tables...

Regards

Sas