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: 

BAPI for creating variant table

Former Member
0 Kudos
773

Hi,

Cu61 and Cu60 are two transactions in SAP (comes under Variant Configuration) to create a variant table and fill its contents respectively.

Now, I am trying to create a transaction in SAP such that on the screen it takes the name of the variant table to be created and an excel file as input from the user and thus create a variant table and fill its contents in the background. Now, ofcourse I have to do this through ABAP coding. I know how to upload the excel file into the internal table but I am not able to figure out that how should i create the variant table and transfer the contents of that internal table to the variant table? That is, how should i transfer the contents to the variant table?

I have been able to find out the tables involved in the process viz, CUVTAB, CUVTAB_FLD, CUVTAB_VALC.

Does there exist any BAPI for doing the same?

Please Help.

6 REPLIES 6

former_member189058
Active Contributor
0 Kudos
298

Hi Shikha,

Try the func mod.:

CUD3_TABLE_CLUSTER_GENERATE

Regards,

Reema

0 Kudos
298

Hi Reema,

Thanks for replying but this is not what I am looking for. I do not want to create a cluster table rather I want to create a variant table (it is a table used in variant configuration to store the combinations of a material whose characteristics can take varying values at the time of configuration). A table that we create through the transaction Cu61 and populate its contents through the transaction Cu60.

However, I still tried your suggestion but it did not result in what I want.

My problem still exists.

0 Kudos
298

Hi,

I'm stuck in the same scenario as you were.

I need to load "Variant Tables" and maintain the structure and assign characteristics and key field to it(as we do in CU61).

Can you please help me?

Former Member
0 Kudos
298

hello friends..

i am also stuck with the same problem. please anyone can tell us how to find BAPI for creating variant table.

-Shweta

0 Kudos
298

You may like to try CAMA_TABLE_MAINTAIN_ENTRIES or CAMA_TABLE_MAINTAIN_STRUCTURE

0 Kudos
298

CU60E is standard SAP TCODE that can upload variant table from text file. It should be what you looking for.