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

FM to for VK13 tcode

Former Member
0 Likes
1,743

Hi,

when the user clicks on ALV record, he should be taken to Tcode VK13, and for that condition type and the access seq number, the selection criteria seen should be entered and the recoed should be displayed.

Can any one please suggest as FM to take to that particular record directly.I have all the required data in my final internal table

I do not want to write a BDC.

Regards,

Himanshu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,243

Hi,

Try this BAPI

BAPI_PRICES_CONDITIONS

Regards

Hi,

when the user clicks on ALV record, he should be taken to Tcode VK13, and for that condition type and the access seq number, the selection criteria seen should be entered and the recoed should be displayed.

Can any one please suggest as FM to take to that particular record directly.I have all the required data in my final internal table

I do not want to write a BDC.

Regards,

Himanshu

4 REPLIES 4
Read only

Former Member
0 Likes
1,243

Hi

If you the condition and sequence, u should know the name of the table A*** generated for that sequence, the name of report should be RV13A***, so u can submit the report directly:

DATA: V_PROGRAM(30).

CONCATENATE 'RV13' <table name> INTO V_PROGRAM.

SUBMIT (V_PROGRAM).....

U can use the fm RV_T681_SELECT_AND_GENERATE in order to get the program name

Max

Read only

Former Member
0 Likes
1,244

Hi,

Try this BAPI

BAPI_PRICES_CONDITIONS

Regards

Read only

0 Likes
1,243

Hi Max,

Thanks for that!

But now, how can I relate that say:

program RV13A719 has sales order and personal number on selection screen

RV13A745 has some others.

From my internal table how do i relate and transfer values say prg RV13A719 has sales order and personal number on selection screen so transfer these valuse from internal table which is linked to ALV grid? Can you please suggest?

Best Regards,

Himanshu

Read only

0 Likes
1,243

Hi

U can use the fm RS_SELSCREEN_INFO in order to get the selection-screen and use the option WITH SELECTION-TABLE in order to transfer the data for selection-screen dynamically.

Max