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

Adding New feild KTEXT in Tcode koc4

Former Member
0 Likes
2,106

Hi,

I have to add a new feild in output of T-code of Koc4.

12 REPLIES 12
Read only

Former Member
0 Likes
1,788

Hi,

Hi,

Check the BADI DATA_EXTENSION_RW and method ADD_FIELDCAT.

1. goto SE19 for the badi implementatiom.

2. enter the badi name DATA_EXTENSION_RW

3. clik create and enter short discription.

4. click on interface tab and double click on th method ADD_FIELDCAT

5.now add your logig to add the field KTEXT to the Field catalog between method and end method

6. Save , check and activate the code.

thanks and regards,

Pavankumar

Read only

0 Likes
1,788

Hi,

I am using 4.6c in that above mentioned badi, I am not able to locate kindly give suggestion.

Read only

0 Likes
1,788

Hi,

have u eneterd the BADI name as "DATA_EXTENSION_RW" in tcode SE18?

Revert back if any issues.

Regards,

Naveen

Read only

0 Likes
1,788

Hi,

I have searched it in se18 it is not existing in that.

Read only

0 Likes
1,788

Hi,

u didnt find the BADI or the METHOD?

Regards,

Naveen

Read only

0 Likes
1,788

when I am entering that badi name and choosing display option it does not eixst in our version i.e 4.6c.

Read only

0 Likes
1,788

I am getting this msg.

Message no. ENHANCEMENT 190

Diagnosis

The BAdI definition you chose does not exist.

Procedure

Try using the name of an existing BAdI definition.

Read only

0 Likes
1,788

Hi,

iam not working on that version 4.6..., as per the messages wat u said is correct, BADI doesnt exist.

if i got 4.6 then i could have tried in finding a BADI...

i think i couldnt help this...

Regards,

Naveen

Read only

0 Likes
1,788

Hi,

I have got another way of adding new feild in this transaction output .

execute koc4 then execute prog (RKKBALV1) in se 38 after that select Include BALV1F01 in this select Form FIELDCAT_GET_AUFK then after look for this section LOOP AT LT_ORSEL.

LS_FIELDCAT-FIELDNAME = LT_ORSEL-FELD.

LS_FIELDCAT-REF_TABNAME = LT_ORSEL-TABELLE.

APPEND LS_FIELDCAT TO RT_FIELDCAT.

ENDLOOP.

*****Do your changes here for adding your feild ktext

  • Chnaged by priya ranjan

LS_FIELDCAT-FIELDNAME = 'KTEXT'.

LS_FIELDCAT-REF_TABNAME = 'AUFK'.

APPEND LS_FIELDCAT TO RT_FIELDCAT.

  • Changed by priya ranjan

Read only

0 Likes
1,788

Hi,

But u shud have Access Key to do the changes in the standard code.

Talk to ur leads to have access key.

Revrt back if any issues.

Regards

Naveen

Read only

Former Member
0 Likes
1,788

I have solved this through help of my freind Sohail Basha.

Read only

0 Likes
1,788

Hi priya,

Can u let me the solution which ur friend sohail Basha has suggested because i am also facing the same issue now.

It would be helpful if u provide the solution .

Thanks,

Sandeep