Application Development 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: 

Hi sanjay Sinha ....! !!! Help plz

Former Member
0 Kudos

hi sanjay ,

Plz refer the thread .."Module Pool-POV" .

This is Continuation of that thread .

I hv changed the filed Type in my module screen from "P0002-natio" to "t005t-natio" .

It's work fine now ...but if i try to save ,It's not updating in the relevant infotype

Any help will be much Appreciated .

Rgds,\

J

6 REPLIES 6

Former Member
0 Kudos

Hi P07923.

If you have changed screen field to T0005T-NATIO then if you want to update P0002-NATIO you need to pass the screen field value to P0002-NATIO.

P0002-NATIO = T005T-NATIO.

But mind it both the fields are not compatible .

I am not sure what your are selecting on screen and what you want to update . How are you doimg update . Is it your own update command or a function.

P0002-NATIO - 3 character Field.

T0005T-NATIO - 40 Character field ( See values in Se16)

Now you need to decide whether you want to update the country key ( 3 chars ) oe the nationality ( 40 chars)

as P0002-NATIO will only accept 3 chars.

Cheers

0 Kudos

Yes ,i hav to update the Country key ( 3 chars )

and i hav to update this using ,

CALL FUNCTION 'BAPI_PERSDATA_CHANGE'

EXPORTING

EMPLOYEENUMBER = P0002-PERNR

SUBTYPE = P0002-SUBTY

OBJECTID = P0002-OBJPS

LOCKINDICATOR = P0002-SPRPS

VALIDITYBEGIN = P0002-BEGDA

VALIDITYEND = P0002-ENDDA

RECORDNUMBER = P0002-SEQNR

FORMOFADDRESS = P0002-ANRED

FIRSTNAME = P0002-VORNA

LASTNAME = P0002-NACHN

NAMEATBIRTH = P0002-NAME2

SECONDNAME = P0002-NACH2

MIDDLENAME = P0002-MIDNM

nationality = P0002-NATIO

---b4 THAT i hav to Convert my Natio text to key and that to the nationality ..

FIELD-SET 'NATIONALITY' READ_INDEX I005T_LONG-LAND1.

But this doen't work .

How to acieve this conversion & update .

Rgds,

J

0 Kudos

So on screen you are selecting T005T-NATIO ( 40 Char ), why do you want this . Why dont you select T005T-LAND1 .

Then

P0002-NATIO = T005T-LAND1 .

Else in the program you can read the T005t-LAND1.

Read TABLE GT_LAND1 with key NATIO = T005T-NATIO.

MOVE GT_LAND1-LAND1 To P0002-NATIO.

( Gt_LAND1 is an internal table fo Type T005 in which you already have selcted the data.

Check on debugging what value is in P0002-NATIO just before calling the BAPI .

Else paste your full code of screen abd ABAP program.

Cheers

0 Kudos

HI sanjay ,

Now ,T005T-natio values are updated properly in P0002-NATIO , as i did the conversion from LAND1 to NATIO .

But while displaying the fetched values from the infotype to Screen field ....It's not highlighted ..

It's appear in the Bottom of the List box .

I hav used VRM_VAlues Fn module

....

J

0 Kudos

I didnot get you here -

<i>But while displaying the fetched values from the infotype to Screen field ....It's not highlighted ..

It's appear in the Bottom of the List box .</i>

Can you be more specific on problem.

If its a display issue just increase the visible length of the field in SE51 .

Cheers.

( Dont forget to rewrad if answers helped )

0 Kudos

k .

for example ...

If i run mod pool pgm ...of my personal data ..

It showed the data for all the fields expect P0002-natio.

Remember, i hav updated that screen field P0002-natio ..( coz to restrict the numer of selection entries in the List box).

If i select any value from the list box and save, it's updating in the Infotype correctly .

My problem is it's not displaying at the top of the Listbox .....

I hope u understood .

Surley pts will be awarded .

Message was edited by: P079223