Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Notification Partners while saving QM01

Former Member
0 Likes
1,747

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

1 ACCEPTED SOLUTION
Read only

AnjaneyaBhardwaj
Contributor
0 Likes
998

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

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

3 REPLIES 3
Read only

jogeswararao_kavala
Active Contributor
0 Likes
998

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

Read only

0 Likes
998

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

Read only

AnjaneyaBhardwaj
Contributor
0 Likes
999

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