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

BAPI for creating variant table

Former Member
0 Kudos
1,558

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
Read only

Former Member
0 Kudos
1,083

Hi Shikha,

Try the func mod.:

CUD3_TABLE_CLUSTER_GENERATE

Regards,

Reema

Read only

0 Kudos
1,083

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.

Read only

0 Kudos
1,083

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?

Read only

Former Member
0 Kudos
1,083

hello friends..

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

-Shweta

Read only

0 Kudos
1,083

You may like to try CAMA_TABLE_MAINTAIN_ENTRIES or CAMA_TABLE_MAINTAIN_STRUCTURE

Read only

0 Kudos
1,083

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