‎2006 Sep 21 4:12 AM
I have custom screen, where in i key a RFQ Number of lenght 10, but i shud check it with AUFNR of VIAUFKST which is of lenght 12. Please correct me in the code i wrote
data : T_RFQNO type VIAUFKST-AUFNR.
PAI Module.....
select single * from ZES_RFQ
into IS_RFQ
where BUKRS = ZES_RFQ-BUKRS
and RFQ_NO = ZES_RFQ-RFQ_NO
and SER_NO = ZES_RFQ-SER_NO.
if SY-SUBRC = 0.
message E138(ZSM) with 'RFQ Number already exists'.
else.
T_RFQNO = ZES_RFQ-RFQ_NO.
select single * from VIAUFKST
into VIAUFKST
where AUFNR = T_RFQNO.
if SY-SUBRC = 0.
else.
message E138(ZSM) with 'RFQ Number not possible'.
endif.
while in debugging if i change the value of T_RFQNO with preceeding zero's i get the required. if this is correct plz tell me how to add ZERO's to the number.
Thanks
Pratyusha
‎2006 Sep 21 4:20 AM
use FM CONVERSION_EXIT_ALPHA_INPUT.
You need to pass your T_RFQNO to the FM and add zero in front.
‎2006 Sep 21 4:20 AM
use FM CONVERSION_EXIT_ALPHA_INPUT.
You need to pass your T_RFQNO to the FM and add zero in front.
‎2006 Sep 21 4:23 AM
Hi ONG, Thanks for the reply
use FM CONVERSION_EXIT_ALPHA_INPUT.
You need to pass your T_RFQNO to the FM THIS PART IS VERY CLEAR
and add zero in front. NOT CLEAR.
Is the FM going to return the T_RFQNO with prceeding ZERO's or HOW?
‎2006 Sep 21 4:27 AM
Just pass your T_RFQNO into the FM, and the FM will auto add zero in front for u.
‎2006 Sep 21 4:29 AM
Thank You ONG, it solved the problem, but strange that i tried the same thing before some time and tht did not work.
Anyways thanks for the help
‎2006 Sep 21 4:32 AM
Maybe I got the god of solution...lol
Just kidding.
Glad to solve your problem.