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

User Exit for customer blocking

Former Member
0 Likes
920

Hi Friends,

I got the requirement in USER EXIT.

In the transaction 'F-02' I need to give some inputs.

After this transaction we have to save the inputs.

Immediately after that goto T.code: ‘XD05’

Here I have to block(Customer Blocking), like it should be ‘01’ in all the inputs

Order Block

All Sales Areas 01

Delivery Block

All Sales Areas 01

Billing Block

All Sales Areas 01

I only know about the program 'RGGBR000'

This program is trigerring when I am in debugging the screen.

I copied this program in Z Program and do modifications according to the requirement but I am unable to find where to assign this program for that transaction.

Thanx in advance,

Parvez.

5 REPLIES 5
Read only

Former Member
0 Likes
726

normaly you can't jump to another tcode from an user exit.

and in SE93 you can assign you're z programm to a new Z transaction

Read only

Former Member
0 Likes
726

Hello,

How Are you calling the tcode?

I would recommend to make a smal batch input and...

put CALL TRANSACTION 'XD05' ... <b>AND RETURN</b>, in that way it will comeback to f-02, and will keep working...

Cheers

Dont forget to reward,

Gabriel

Read only

0 Likes
726

Hi,

This is the BDC I wrote for that

IF SY-MANDT = '710'.

if bseg-KOART = 'D'.

SELECT SINGLE KUNNR INTO KUNNR FROM KNA1.

IF SY-SUBRC <> 0.

MESSAGE E001(ZMSG) WITH 'CUSTOMER DOES NOT EXIST'.

ELSE.

REFRESH BDCTAB.

perform bdc_dynpro using 'SAPMF02D' '0500'.

perform bdc_field using 'BDC_CURSOR'

'RF02D-BUKRS'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RF02D-KUNNR'

BSEG-KUNNR..

perform bdc_field using 'RF02D-BUKRS'

'UTCL'.

perform bdc_dynpro using 'SAPMF02D' '0510'.

perform bdc_field using 'BDC_CURSOR'

'KNA1-FAKSD'.

perform bdc_field using 'BDC_OKCODE'

'=UPDA'.

perform bdc_field using 'KNA1-AUFSD'

'01'.

perform bdc_field using 'KNA1-LIFSD'

'01'.

perform bdc_field using 'KNA1-FAKSD'

'01'.

perform bdc_field using 'KNA1-CASSD'

'X'.

call transaction 'XD05' USING BDCTAB MODE 'N'.

But this is in <b>Z</b> program I need to assign this to the T.code how can I assign this program.

Please help me in this.

Thanx in advance,

Line

Read only

0 Likes
726

you create you're own tcode with SE93 and connect that to you're own z programm. what is the problem ??

you cannot assign you're z programm to a SAP tcode if that is wat you try.

so if you have SAP tcode FE02 you create with SE93 tcode ZFE02

Message was edited by:

A. de Smidt

Read only

0 Likes
726

Go to SE93, enter the z-tcode and select the option report transaction in the next screen. Enter your z-program name and hit save.

Whenever u enter this z-tcode, it will take you to the selection screen of your z-program.

Thanks,