2006 Nov 22 1:38 PM
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.
2006 Nov 22 1:44 PM
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
2006 Nov 22 1:59 PM
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
2006 Nov 22 2:20 PM
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
2006 Nov 22 3:34 PM
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
2006 Nov 22 3:40 PM
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,