cancel
Showing results for 
Search instead for 
Did you mean: 

how to trap approve and reject option through BBP_DOC_CHECK_BADI

Former Member
0 Kudos

Hi,

I want to capture whether approve or reject button was checked in badi BBP_DOC_CHECK_BADI . I know that i have to do someting like this

DATA: LV_MEMORY TYPE STRING VALUE '(SAPLBBP_CF)gv_approve_reject'.

FIELD-SYMBOLS <LV_APPROVE_REJECT> TYPE C.

ASSIGN (LV_MEMORY) to <LV_APPROVE_REJECT> .

A = Approve, R = Reject

but i guess something is missing here because i am not able to fetch the value using this piece of code.

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I remember I implemented it in customer project. It was SRM 5.0 and Confirmation approval.

What is your SRM version and Business Object?

Regards,

Masa

Former Member
0 Kudos

Actually i was waiting for your reply on this i have seen your post but the code that you gave there is not working for me we are on SRM 4. My requirement is exactly same as yours. I need to differentiate between the approve and reject radio button in the doc chek badi.

This is the code i am trying to put.

constants: lv_memory(40) value '(SAPLBBP_CF)GV_APPROVE_REJECT'.

field-symbols <lv_approve_reject> type c.

assign (lv_memory) to <lv_approve_reject> .

Edited by: RAHUL SINGH on Mar 23, 2010 11:08 AM

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please look at source code in SRM 4.0 and find the global memory parameter like '(SAPLBBP_CF)gv_approve_reject'.

Regards,

Masa

Former Member
0 Kudos

In the source code the function pool SAPLBBP_CF has a field called gv_approve_reject. But when i am trying to access its value via field symbol i guess somthing is going wrong there.

Former Member
0 Kudos

I even tried a small sample program to access the fields vila field symbol and its not working

REPORT ztest1.

DATA test(25) VALUE 'ggg'.

submit ztest.

report ztest.

constants: lv_memory(25) type c value '(ZTEST1)TEST'.

field-symbols: <fs2> type char25 .

assign (lv_memory) to <fs2>.

write : <fs2>.

I am getting same field symbol assignment dump

Edited by: RAHUL SINGH on Mar 23, 2010 11:25 AM

Former Member
0 Kudos

Masa,

Any help on this?

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'm not ABAP expert. Can someone help?

Answers (0)