cancel
Showing results for 
Search instead for 
Did you mean: 

New project --> pspnr conversion

Former Member
0 Kudos

Hello all,

I have maked a development in module PS ( project builder T-code CJ20N ).

I maked a table Zsap ( with PSPNR like key ) linked with module PS, so the user can entry some data in my table from cj20n transaction. The link between my table and module SAP is pspnr.

The problem is: When I make a new project, sap use a provisory number PSPNR = 9999999999, and when I save the project, sap make a conversion 9999999999 --> 000008785, so if I send the data in my table before the save, I send it with pspnr = 9999999999 ( and not 000008785) !!!

When I retry in the project the pspnr is changed.

Any idea to manage it ???

tks a lot,

bye

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

for me is not possib^le

virendra_pal
Active Contributor
0 Kudos

try these function modules

conversion_exit_abpsn_input

conversion_exit_abpsn_output

also try

conversion_exit_abpsp_input

conversion_exit_abpsp_output

these are for conversion to internal numbers

Edited by: Virendra Pal on Oct 22, 2008 6:21 PM

Former Member
0 Kudos

Tks but this is not the problem,

the problem is: I don't know the pspnr before save, so between my table and module PS, there a link (=pspnr) before save, and another link (=pspnr) after save.

virendra_pal
Active Contributor
0 Kudos

when you create the project (wbs) you should know the PSPNR

e.g if I create a project E-0001 then the PSPNR number is E-0001 - this is internally stored as 00000xxx in the internal tables using the conversion routines on save

so before save = E-0001 (internal number 9999999999)

after save = E-0001 (internal number 000000xxx)

if this does not help then you should look at changing you table key to something else as I cannot see anyway of converting 99999999 to internal number

Former Member
0 Kudos

before save = E-0001 (internal number 9999999999)

after save = E-0001 (internal number 000000xxx)

this is correct, but when I save my project and than my table, I have to pass in the user exit, and at this moment my pspnr is E-0001 (internal number 9999999999), so my table kex is E-0001 (internal number 9999999999). After, when the process save is completed the pspnr become E-0001 (internal number 000000xxx), so I have a kex different.

The problem is solved if I can Know internal number 000000xxx after the save's process.

Do you know how ?

tks

virendra_pal
Active Contributor
0 Kudos

why don't you save the value E-0001 in the table rather than the before or after save numbers??

Otherwise you have no option.

Former Member
0 Kudos

becouse E-0001 is prps-posid, and it's not key... so the user can change the value, and if he change it I lose the link with my table ...

virendra_pal
Active Contributor
0 Kudos

go to se16 enter table prps

enter E-0001 in PSPNR

what do you get??

I do not have access to system at the moment

Former Member
0 Kudos

I have 1 row with data:

MANDT (key)

PSPNR (key)

.INCLUDE

POSID

POST1

OBJNR

PSPHI

.INCLUDE

POSKI

ERNAM

ERDAT

AENAM

AEDAT

VERNR

VERNA

ASTNR

etc etc