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

exits

former_member190312
Active Participant
0 Likes
774

Hi all,

while GR , material number & serial number is comming to SAP database table EQUI & OBJK.these serial numbers r also present in IQ01.

let i received 10 serial numbers while GR but i want to deliver 5 serial numbers(i.e materials) to my vendor by VT01n.

from those 10 serial numbers, 5 serial numbers should come to the delivery automatically.how can i do this thing?

any help really appreciated

Regards

smita

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
742

Hello Pabitra,

Did you put the break point exactly at line number 25 in the method GET_INSTANCE ?.

Regs,

Venkat

Message was edited by: Venkat Ramanan Natarajan

6 REPLIES 6
Read only

Former Member
0 Likes
742

Hello,

I would suggect you to go for BADI's.

Follow the below steps to find out what all BADI's are called when you press any button in any transaction.

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction.

Regs,

Venkat Ramanan N

Read only

0 Likes
742

hi venkat,

i set break point in get_instance. but while pressing the button 'post goods issue', the control is not going to that program. so where i am doing mistake?

Regards

pabitra

Read only

Former Member
0 Likes
743

Hello Pabitra,

Did you put the break point exactly at line number 25 in the method GET_INSTANCE ?.

Regs,

Venkat

Message was edited by: Venkat Ramanan Natarajan

Read only

0 Likes
742

hi venkat,

i have tried to put break points on line number 25.line number 25 is 'ELSE'.but i can not put break points on line 25.

while doing PGI, i am not getting any BADI.

in se19, i tried to create one badi relating to PGI. but it seems, the method is not present for that badi.

plz suggest me any method to handle this?

any idea will be highly appreaciated.

Thanks very much

Regards

pabitra

Read only

0 Likes
742

Method - GET_INSTANCE does not have any ELSE statement.

I can see CASE sy-subrc statement at line 25 as said by venkat.

regards

Vivek

Read only

Former Member
0 Likes
742

Hello,

The line 25 is this,

CASE sy-subrc. -


>Line 25

WHEN 1.

RAISE no_reference.

WHEN 2.

RAISE no_interface_reference.

WHEN 3.

RAISE no_exit_interface.

WHEN 4.

RAISE data_incons_in_exit_managem.

WHEN 5.

RAISE class_not_implement_interface.

ENDCASE.

Please check again and let me know.

Regs,

Venkat Ramanan N