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

Reading variant table

Former Member
0 Likes
3,520

Hi guys,

I need to read a variant table data seems like CU60 transaction. Is there some BAPI or Function module to do it?

<REMOVED BY MODERATOR>

Regards.

Edited by: Alvaro Tejada Galindo on Apr 7, 2008 5:29 PM

7 REPLIES 7
Read only

Former Member
0 Likes
2,291

I had nightmares about this some days ago:

You can use FM RS_VARIANT_CONTENTS to display ONE variant associated to a report

If you want to see the information of ALL VARIANTS associated to a report I think the only way is checking table VARID to get all the variants associated to the report and then do a loop and call RS_VARIANT_CONTENTS for each variant.

Read only

0 Likes
2,291

Thanks Ramiro but this FM reading variants from a report and I need to read a "Variant table" this is a table t with characteristics, just like CU60.

Regards.

Read only

0 Likes
2,291

I need to do the exact same thing. Did you find a BAPI or RFC to read these tables?

Thanks in advance..

Read only

0 Likes
2,291

You can use something by name Object dependencies to read from your variant tables ( CU60 ) and Read data using Vraiant functions ( CU65 , 66 , 67 ) during object assignment ( CL20N or any Transactio n which calls CL20Ndynamically ) . Call the table using an action / procedure which can be used on the dependency . the dependency is further attached to the characteristics / characteristics value or to class itself . Look into this link for more http://help.sap.com/saphelp_erp2004/helpdata/EN/92/58c5f4417011d189ec0000e81ddfac/frameset.htm

Read only

0 Likes
2,291

I think that is a little more than I need. I just need to download (through a BAPI) the complete contents of a variant table (like the output you get when using CU60) . Is this possible?

Read only

Former Member
2,291

I got the function is

CARD_TABLE_READ_ENTRIES

but now I'm looking for updating the same table.

Read only

0 Likes
2,291

I love finding a helpful answer to a question that is 14 years old. Thought I'd comment to give this a bump to others looking for the same.