2010 Jun 15 7:39 AM
Hi all,
I have a BSEG-PROJK type NUMC(8) variable and one xyz type CHAR(50) variable.
I have to pass value from xyz to BSEG-PROJK
my e.g is that while I am passing
xyz= 'M-000064'
BSEG-PROJK = xyz
then the value of BSEG-PROJK is 00000064 but i need M-000064
2010 Jun 15 8:01 AM
First check the field definition in the dictionnary, BSEG-PROJK. the data element is PS_PSP_PNR, and the domain is PS_POSNR. This domain uses a conversion exit ABPSP, so from domain definition we can see that
- the internal value has a 8 numeric length format
- the external value has a 24 character length format
You can use the FM CONVERSION_EXIT_ABPSP_INPUT and CONVERSION_EXIT_ABPSP_OUTPUT to convert between the two formats.
Regards,
Raymond
Hi all,
I have a BSEG-PROJK type NUMC(8) variable and one xyz type CHAR(50) variable.
I have to pass value from xyz to BSEG-PROJK
my e.g is that while I am passing
xyz= 'M-000064'
BSEG-PROJK = xyz
then the value of BSEG-PROJK is 00000064 but i need M-000064
2010 Jun 15 7:53 AM
Common sense tells me the 'M' in 'M-000064' is not numeric. Why do you expect this to be copied to a numeric field ?
2010 Jun 15 8:01 AM
First check the field definition in the dictionnary, BSEG-PROJK. the data element is PS_PSP_PNR, and the domain is PS_POSNR. This domain uses a conversion exit ABPSP, so from domain definition we can see that
- the internal value has a 8 numeric length format
- the external value has a 24 character length format
You can use the FM CONVERSION_EXIT_ABPSP_INPUT and CONVERSION_EXIT_ABPSP_OUTPUT to convert between the two formats.
Regards,
Raymond
2010 Jun 15 8:55 AM
BUT BSEG table has PROJK field with value M-000064.
and in my requirement i have to put that value to BSEG-PROJK
2010 Jun 15 12:10 PM
Hi,
The value M-000064 is showing in field PROJK of BSEG, due to the conversion routine ABPSP attached in the domain level of this field.
- To check the actual value stored in data base level
- SE16 Give table name=>to see the table contents Press F7=>settings=>user parameters=> uncheck the check box check conversion exit.
- now the value in field PROJK will show in numeric.
Regards
DKS
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |