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

IMPORT DATA

Former Member
0 Likes
900

Hi,

In my program first i am calling the t-code f.27 using the code call transaction 'F.27' and running the program by giving the selection screen vales and execute,after that it will goes to my code to get the f.27 selection screen value and based on that value my code will be running.here i am not able to get the selection screen value from f.27 to run my codeing.so pls help to get the value to run my code.

Thanks,

Rajendra.

8 REPLIES 8
Read only

Former Member
0 Likes
831
please post ur code how u r calling transaction.

have u coded like below

SET PARAMETER ID 'BUK'  field 'E100'.
CALL TRANSACTION 'F.27'.
Read only

0 Likes
831

Hi Chandra,

Below is the code,

DATA : BKORM-KONTO LIKE BKORM-KONTO.

****Calling the transaction F.27

SUBMIT RFKORK00 VIA SELECTION-SCREEN AND RETURN.

( here the code RETURN also not coming back to this place i have to press the back button to come back)

  • SET PARAMETER ID 'BUK' field 'E100'.

  • call transaction 'F.27' .

data : w_adrnr(75) type c.

data : w_smtp_addr(75) type c.

******TO GET THE E-MAIL ID OF CUSTOMER.

select single adrnr into w_adrnr from kna1

where kunnr = BKORM-KONTO.

select single smtp_addr into w_smtp_addr from adr6

where addrnumber = w_adrnr.

p_email1 = w_smtp_addr.

Thanks,

Rajendra.

Read only

Former Member
0 Likes
831

Hi,

Use SUBMIT statement.

Regards

Bhupal Reddy

Read only

Former Member
0 Likes
831

Hi Rajendra,

I dont know the exact solution to your problem but there is a way around this,

you may first call a selectionscreen in the original parent program from where you will be calling F.27 later

Make this selesction screen exactly similar to the one in F.27 and capture all the values in parameters and select option variables of the selection screen and then you can pass the values entered by the user in your defined selectionscreen to the f.27 selection screen usin call transaction F.27 with ......... parameters names,

In this case once you return to your original parent program you will still have the values of the paremeters and select options in the screen fields of your defined selection screen and you may use these ahead.

Regards,

Sunmit.

Read only

Former Member
0 Likes
831

Hi ,

I have one more doubt are you returning to your original code with acall tracnsaction only i think you need to use submit and return statement.

Regards,

Sunmit.

Read only

0 Likes
831

Hi,

I wrote a customised prog in that i am calling a f.27 to run the sap script and after that i will come back to the my customised program to convert that output into pdf and send my email.so to get the email id i need the customer no what i given in the selection screen. but in my customised prog there is no selection screen.so in the very first step itself i am using the code call transaction 'F.27' to rrun the customer statement sap script.

Thanks,

Rajendra.

Read only

0 Likes
831

Hi,

For me the value in s_kunnr is not passing to the KONTO ,below is the code i used.

SUBMIT RFKORK00 VIA SELECTION-SCREEN WITH KONTO EQ S_KUNNR AND RETURN.

so how to get the kunnr value in rfkork00 selection screen konto.

Thanks,

Rajendra.

Read only

Former Member
0 Likes
831

solved