2016 Jan 06 3:18 AM
Dear All,
I have a query on getting partners at the time of saving notification.
i have tried in BADI- NOTIF_EVENT_POST with IHPA table by passing OBJNR and here it has no entries.
is there any other way to get partners with OBJNR if IHPA is not filled?
Regards
Surendra
2016 Jan 06 5:04 AM
Hi Surendra,
It is not available in the BADI as import parameter, but you can read it from the SAP memory .
Use the below code to read the values in the method of the Implementation class.
FIELD-SYMBOLS: <ft_ihpa> TYPE ANY TABLE
DATA: tl_ihpa TYPE STANDARD TABLE OF ihpa .
ASSIGN ('(SAPLIPAR)XIHPA[]') TO <ft_ihpa>.
IF <ft_ihpa> IS ASSIGNED.
tl_ihpa = <ft_ihpa>[].
ENDIF .
Anjan
Hi Surendra,
It is not available in the BADI as import parameter, but you can read it from the SAP memory .
Use the below code to read the values in the method of the Implementation class.
FIELD-SYMBOLS: <ft_ihpa> TYPE ANY TABLE
DATA: tl_ihpa TYPE STANDARD TABLE OF ihpa .
ASSIGN ('(SAPLIPAR)XIHPA[]') TO <ft_ihpa>.
IF <ft_ihpa> IS ASSIGNED.
tl_ihpa = <ft_ihpa>[].
ENDIF .
Anjan
2016 Jan 06 3:56 AM
Hello Surendra,
When you make this Partner field mandatory in tcode VOP2 (by tick in Partner mandatory check-box), you will be taken to Partner screen while saving, where you'll get the required drop-downs.
KJogeswaraRao
2016 Jan 06 4:06 AM
Dear Rao, Thanks for reply, Above settings are in Place, but in the BADI i mentioned above will have Notification number and OBJNR and other details ,but if i pass OBJNR into IHPA table to get partner it is not giving results as it has no data. as still Notification is not save completely hence data is not updated in IHPA. is there any other way to get partners at the time of saving? Regards Surendra
2016 Jan 06 5:04 AM
Hi Surendra,
It is not available in the BADI as import parameter, but you can read it from the SAP memory .
Use the below code to read the values in the method of the Implementation class.
FIELD-SYMBOLS: <ft_ihpa> TYPE ANY TABLE
DATA: tl_ihpa TYPE STANDARD TABLE OF ihpa .
ASSIGN ('(SAPLIPAR)XIHPA[]') TO <ft_ihpa>.
IF <ft_ihpa> IS ASSIGNED.
tl_ihpa = <ft_ihpa>[].
ENDIF .
Anjan
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |