on 04-07-2007 12:52 PM
Hi Friends,
I am working on PO sapscript. I got value ekkn-ps_psp_pnr(Internal Number) by using ekko,ekpo into my subroutine. But now I need to print cobl-ps_posid (WBS element) value.
I heard that the both fields have inter-related. Please anybody give me the Function Module name which will use to get ps_posid value by using ps_psp_pnr.
Hi,
You have two options here.
<b>1.</b> See this code. PRPS is master data table for WBS element. Here you get all wbs related information.
DATA: l_posid LIKE prps-posid.
SELECT SINGLE
posid FROM prps
INTO l_posid
WHERE pspnr = ekkn-ps_psp_pnr.
<b>2.</b> Call this FM
CALL FUNCTION 'CONVERSION_EXIT_KONPR_OUTPUT'
EXPORTING
input = ekkn-ps_psp_pnr
IMPORTING
output = l_posid.
Let me know if you need any other information.
Regards,
RS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This has been resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just use WRITE
WRITE ekkn-ps_psp_pnr TO cobl-ps_posid.
The table is PRPS where internal PSPNR and external POSID code are defined.
There is a conversion exit between PSPNR and POSID, so WRITE will convert PSPNR into POSID.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.