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

Need a Function module/BAPI to update a Variant used in tcode KKAJ or CJ8G

Former Member
0 Likes
1,888

Hi Experts,

Is there Function module or BAPI which I can use in my Z-prog to update one existing variant that is been used in tcode KKAJ or CJ8G for adjustment in projects/WBS.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,453

Hello Experts,

Thanks a ton for your help.

I am able to export the list of projects from my Z-table to the Select-option of Tcode KKAJ but facing below error while executing, Any idea how solve the error??

Please find below error description......

Select "from database" or "from archive" indicator

Message no. OK024

Diagnosis

You have not set an indicator on the selection screen for the physical location of the data.

System Response

No data will be selected from the logical database.

Procedure

Set one of the following indicators:

From the DB

From the archive

If you want to select data from the archive, you must also enter one or more archives from which the system should retrieve the data.

Hi Experts,

Is there Function module or BAPI which I can use in my Z-prog to update one existing variant that is been used in tcode KKAJ or CJ8G for adjustment in projects/WBS.

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
1,453

Hi,

SUBST_WRITE_UPGRADE_VARIANT- FM

Regards,

Himanshu

Read only

former_member194669
Active Contributor
0 Likes
1,453

KKAJ is report you can use following fm to update the variant

'RS_CHANGE_CREATED_VARIANT' - update existing variant

'RS_CREATE_VARIANT' - create variant.

Read only

Former Member
0 Likes
1,454

Hello Experts,

Thanks a ton for your help.

I am able to export the list of projects from my Z-table to the Select-option of Tcode KKAJ but facing below error while executing, Any idea how solve the error??

Please find below error description......

Select "from database" or "from archive" indicator

Message no. OK024

Diagnosis

You have not set an indicator on the selection screen for the physical location of the data.

System Response

No data will be selected from the logical database.

Procedure

Set one of the following indicators:

From the DB

From the archive

If you want to select data from the archive, you must also enter one or more archives from which the system should retrieve the data.

Read only

0 Likes
1,453

Hi,

This is happening because when you are chaning the variant you are not setting the check boxes for either from database or archieve. Check if you have 'cn_dbdat' or 'cn_arcdt' in your variant one of them needs to be filled.

Regards,

Himanshu

Read only

0 Likes
1,453

Thanks a ton.