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

extract user input from standard tcode field

Former Member
0 Likes
1,198

Hi gurus,

I would like to ask. Would it be possible to treat a standard tcode input field as if it were a normal "selection-screen user input parameter"?. I am automating F-28 via BDC (display all screens), and while inside the bdc transaction state, I would like to extract what the user has inputted on the Posting Date field, and perform some operations on it.

I could add a normal selection-screen (where I will require the user to input the data I need) before proceeding to the BDC, but I'm curious if I could do it right inside the BDC transaction (display all screens), so I could save the use of extra screens.

Thank you in advance!

-Mozart

Edited by: mrpena on Nov 16, 2009 8:16 AM

8 REPLIES 8
Read only

Former Member
0 Likes
1,108

Hi,

I dont think its possible, How will you call a screen in the automated code?

Regards

Abhii...

Read only

0 Likes
1,108

BDC is set to "A" - display all screens. Inside a bdc transaction, I was thinking if it's OK to take a certain user input from one screen, perform some programming logic, then feed the output to another screen still inside the BDC.

Read only

0 Likes
1,108

Hi,

Not possible..Do whatever before transaction.

Regards

Abhii...

Read only

Sm1tje
Active Contributor
0 Likes
1,108

Well, quite confusing this question it is (to me at least).

standard tcode field.

I guess this is just your ordinary input field in a transaction (screen field).

Then my question is: Why does a user enter a date during a 'BDC-transaction'? You are about the automate this transaction, so the date for posting date is provided by for example an input file. So this is known up front. No need for a user to enter a date. right? This is not my idea of automating a transaction via BDC.

Read only

Former Member
0 Likes
1,108

Yes you are quite right. The usual use of a BDC transaction is to extract data from a flat file, then feed it to a given SAP standard tcode.

However the client wants to be able to run F-28, with some power over what's inputted into the tcode. The first screen of F-28 contains fields which are variable, and the next few screens requires the user to manually check BSID for valid post dated checks to input into the transaction.

So I was thinking is it possible to extract data from the user inputted text fields. Or do you suggest the use of a flat file (excel)?

Read only

Sm1tje
Active Contributor
0 Likes
1,108

Well, I don't know whether it is possible or not, since I have never tried it before, but you can. See if function module DYNP_VALUES_READ works for you.

It does sound more logical to fully automate it by providing the data from a flat file for example.Otherwise you could consider using transaction variants.

Read only

Former Member
0 Likes
1,108

Hi all, I will give all of your advices a try, especially the DYNP_VALUES_READ. I will let you know what happens soon.

I am performing this inside a bdc transaction, if anyone has experienced extracting data from bdc screens, any help would be welcome.

Thanks

Read only

Former Member
0 Likes
1,108

Hi all,

DYNP_VALUES_READ, and ASSIGN statements in user exits seem to do the trick in capturing newly entered user input. Thank you!