Application Development 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: 

BADI (WORKORDER_UPDATE) Interface

Former Member
0 Kudos

Dear all

I have a question, in WORKORDER_UPDATE BADI it has a interface called 'NUMBER_SWITCH'.

Description says it swaps Tempory Order Numbers with Final Order Numbers, but it's not doing it because importing parameter is forbidden for changing.

So how can I use this interface to swap parameter?

Regards

Toshi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

u have to Implement this Defination in SE19 , and u have to use METHOD 'NUMBER_SWITCH'.What u are doing is not the right way.

check this link.

http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7d00940e11d295df0000e82de14a/frameset.htm

u have to make use of

I_AUFNR_NEW , I_AUFNR_OLD.

I_AUFNR_NEW = 'PRABHU0001'.

Regards

Prabhu

Message was edited by: Prabhu Peram

4 REPLIES 4

Former Member
0 Kudos

u have to Implement this Defination in SE19 , and u have to use METHOD 'NUMBER_SWITCH'.What u are doing is not the right way.

check this link.

http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7d00940e11d295df0000e82de14a/frameset.htm

u have to make use of

I_AUFNR_NEW , I_AUFNR_OLD.

I_AUFNR_NEW = 'PRABHU0001'.

Regards

Prabhu

Message was edited by: Prabhu Peram

0 Kudos

Hello Prabhu,

Thanks for your reply, I've already done SE19 to define implementation.

The problem is that how I can write a code in the method 'NUMBER_SWITCH' to swap both numbers. It seems impossible to swap numbers because there are only importing parameters...

Do anyone has an idea?

Thanks and regards

Toshi

0 Kudos

Hello again, Prabhu

You mentioned I_AUFNR_NEW = 'PRABHU0001'. however it's not allowed to change I_AUFNR_NEW with a new data.

How can I avoid the error?

Toshi

0 Kudos

Hello again, Prabhu

You mentioned I_AUFNR_NEW = 'PRABHU0001', however it is not allowed to chage the value of I_AUFNR_NEW in your way.

Is there any other way to change the value?

Thanks and regards

Toshi