cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement for 0COMP_CODE_TEXT Data source

Former Member
0 Kudos

Hi,

I have enhanced the Master data datsource for 0COMP_CODE_TEXT and added Long text field(TXTLG) to the DS.

Now i need populating the data to that TXTLG field writing the ABAP Code.

Could you please any one can help with this code.

Many Thanks in Advance.

Regards,

Ananda

Accepted Solutions (1)

Accepted Solutions (1)

RamanKorrapati
Active Contributor
0 Kudos

Hi,

Are you sure to enhance field 0TXTNG?

because text data source always holds short/medium/long text fields. we don't need to enhance them.

so please check table - ROOSOURCE table based on your data source.

Later check available fields, if you see field TXTNG there then it might be hidden(SELECTION - A).

if yes then we can make it as visible by simple code.

Later it can work without any enhancement.

please share your data source fields from table ROOSOURCE.

Thanks

Former Member
0 Kudos

Hi Raman,

There is no field 0TXTLG field from ROOSOURCE table.

Please see the below print screen of image.

BR,

Ananda

RamanKorrapati
Active Contributor
0 Kudos

Hi,

that's not what i have asked you.

Try to see above table data.

while displaying data, Use selections on OLTP Source - Enter your data source name and see the fields which are part of your data source.

Thanks

Former Member
0 Kudos

Hi,

From above your suggestion,I have displayed the data

please see below the screen shot of my data source.

BR,

Ananda

RamanKorrapati
Active Contributor
0 Kudos

Hi,

Sorry, i requested wrong table.

Use table - ROOSFIELD,

Enter table name at SE11, display.

Later try to see the data, use selections oltpsource- Data source name. display it.

It will shows data source fields.

See the below text data source.

Thanks

Former Member
0 Kudos

Hi,

Ok,

Yes, it is showing the field TXTLG field stanadard and ZZTXTLG which is enhanced by me.

Now, what should i do now to get the data for that field.

Please give me the solution.

Thanks

RamanKorrapati
Active Contributor
0 Kudos

Hi,

Enhancement was not required. So delete added field(ZTXTLG).

Your data source have fiield TXTLG but its hidden(SELECTION - A) by SAP.

thru below code, we can make TXTLG as visible and part of your data source at RSA6.

Write below program at ECC , TX - SE38,save ,do syntax check and run it once.

Later see your data source at RSA6, it may shows field TXTLG is part of it.

Later run data source at RSA3 and see the data.

REPORT  <program name>

Tables: ROOSFIELD.

SELECT SINGLE * FROM ROOSFIELD WHERE OLTPSOURCE = '0COMP_CODE_TEXT' AND

OBJVERS = 'A' AND FIELD ='TXTLG'.

IF SY-SUBRC = 0.

ROOSFIELD-SELECTION ='P'.

MODIFY ROOSFIELD.

ENDIF.

Thanks

Former Member
0 Kudos

Hi,

Ok, thanks.

i have one question regarding programming ,

Please tell me,

should i need to create a new program in SE38 to execute the above code ?


Thanks,

Former Member
0 Kudos

Hi,

Yes it's a new program and you have to execute it only once.

Kind Regards,

Els

RamanKorrapati
Active Contributor
0 Kudos

Yes, create new program, use above code, save, do syntax check and activate it.

Execute it once. Later check data source extraction at RSA3.

Former Member
0 Kudos

Hi,

Yes,I did according to your suggestion but there is no data for field TXTLG.

Thanks

RamanKorrapati
Active Contributor
0 Kudos

That means there is no data at source side.

so ask your source team(MM) to maintain company code long text.

Later you can run data source at RSA3.

Former Member
0 Kudos

Hi,

Ok, thanks for your valuable suggestions.

Source team is FI.

And one more thing My Sr. Consultant is told to me there is one Program in Function module

BAPI_COMPANYCODE_DETAIL in that Company is having short descrption and long descp. as well in source system side.

Is there any Code to write to get the data from FM to this TXTLG field ?

Please help me on this, it would be so good

Thanks,

Ananda

RamanKorrapati
Active Contributor
0 Kudos

Hi,

0comp_code_text data source pulls data from a table. so table needs to hold long text other wise it won't pulls.

About FM and filling data, am not familiar with them. Ask your abap team to help it.

Other wise try to execute above FM At SE37. Give input values as compcode number and execute it.

it may shows results.

Later take abaer help and develop a program at SE38 and fill all the data for all company codes

Even this is not bw part. Directly you can ask them to working this.

Thanks

Former Member
0 Kudos

Hi Ananda,

See what I wrote yesterday :

The coding for adding the long text should be added to exit_saplrsap_002.

Here are some guidelines  :

https://help.sap.com/saphelp_nw70/helpdata/en/6e/fe6e420f00d242e10000000a1550b0/content.htm

Kind Regards,

Els

Former Member
0 Kudos

Hi Raman,

Thank you very much

Br,

Ananda

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ananda,

The coding for adding the long text should be added to exit_saplrsap_002.

Here are some guidelines  :

https://help.sap.com/saphelp_nw70/helpdata/en/6e/fe6e420f00d242e10000000a1550b0/content.htm

Kind Regards,

Els