2007 Mar 16 4:50 PM
We are using EXIT_SAPLEBND_001 for customized changes to the release strategy. All that is imported to this exit is ceban. How do I get the purchase requisition number (banfn) and line item number (bnfpo) from this include (ZXM06U13)?
2007 Mar 16 5:53 PM
Hi Karen,
Please try this in user exits EXIT_SAPLEBND_001.
DATA: WA_AREA(20) TYPE C,
WA_EBAN TYPE EBAN.
FIELD-SYMBOLS: <FS_EBAN>.
WA_AREA = '(SAPLEBND)E_EBAN'.
ASSIGN (WA_AREA) TO <FS_EBAN>.
WA_EBAN = <FS_EBAN>.
IF WA_EBAN-BANFN = <condition>.
...
ELSE.
...
ENDIF.
IF WA_EBAN-BNFPO= <condition>.
...
ELSE.
...
ENDIF.
Regards,
Ferry Lianto
2007 Mar 16 10:17 PM
I would have thought this would work. I have coded a popup box to display the eban-banfn and nothing shows. so it is not working. I have tried this at the top of ZXM06U13 and at the top of the subroutine that this include calls.
Any other suggestion?
2007 Mar 20 10:22 AM
Hi,
U can get the value of pr no like this:
DATA:W_BANFN TYPE EBAN-BANFN.
get parameter id 'BAN' FIELD W_BANFN.
U wil get pr no in field w_banfn.
Hope it solves ur query.
**Reward if useful**
2007 Mar 20 1:28 PM
Hi Karen,
check the following code
CALL CUSTOMER-FUNCTION '001'(EXIT_SAPLEBND_001)
EXPORTING
i_ceban = ceban
IMPORTING
e_ceban = ceban.
Here CEBAN structure have all the information about purchase req no.
Regards
Sreeni
2007 Mar 20 7:33 PM
Yes ceban returns everything about the preq except for the requisiton number and item number.
2007 Mar 20 7:55 PM
Hi Karen,
Any standard transaction involved to execute this user exits?
Regards,
Ferry Lianto
2007 Mar 20 8:11 PM