Application Development 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: 

Opening t code in background and automatically filling the details to get record

0 Kudos
690

when user gives check id -> fchn T_code should be opened in the background and that check number should be placed inside the check number box of that t_code and it should execute to fetch the record . Is this possible please help me?

1 ACCEPTED SOLUTION

Clemenss
Active Contributor
603

Hi Nanditha,

in SAP/ABAP you have a couple of ways to execute tasks in background, some of them returning results directly to the calling program. I will not discuss them here in detail.

Transaction FCHN just starts Report RFCHKN10 with default selection screen 1000.

In your case I'd suggest to write a small program just with one

PARAMETERS: p_checkf type payr-checkf.

START-OF-SELECTION.

SET PARAMETER ID 'CHK' FIELD p_checkf.

CALL TRANSACTION 'FCHN' AND SKIP FIRST SCREEN.

Let me know, if this does not do what you need and/or why not.

Regards Clemens

6 REPLIES 6

Clemenss
Active Contributor
603

Can you tell the story? (including an example)

Thanky You, Clemens

0 Kudos
603

In my selection screen user will enter check ID and press execute .

In background a transaction code (fchn) should open and the check id which user has provided should enter in the check field of the transaction code and it should get executed automatically, so user should not see this happening he should only get the output report.

The thing is instead to entering the details in transaction code and getting the output , I want user to enter details in my screen and get the output. so I want to bypass the transaction code's initial page.

603

nanditha_n Better edit your question (menu Actions > Edit) so that the whole community can see the details, instead of just answering to one person.

NB: probably it's possible, but what did you try and what is your issue?

0 Kudos
603

My Issue got resolved.

Clemenss
Active Contributor
604

Hi Nanditha,

in SAP/ABAP you have a couple of ways to execute tasks in background, some of them returning results directly to the calling program. I will not discuss them here in detail.

Transaction FCHN just starts Report RFCHKN10 with default selection screen 1000.

In your case I'd suggest to write a small program just with one

PARAMETERS: p_checkf type payr-checkf.

START-OF-SELECTION.

SET PARAMETER ID 'CHK' FIELD p_checkf.

CALL TRANSACTION 'FCHN' AND SKIP FIRST SCREEN.

Let me know, if this does not do what you need and/or why not.

Regards Clemens

0 Kudos
603

Thank you Clemens.

This is Exactly what I was looking for.

SET PARAMETER ID 'CHK' FIELD p_checkf.

CALL TRANSACTION 'FCHN' AND SKIP FIRST SCREEN.