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

How To Upload Object Dependency with Long Source Code

Former Member
0 Likes
1,728

Hi Everyone,

I use LSMW (IDoc:KNOMAS) to upload the Object Dependency with T-Code CU01. However I can not upload the formula/source code within more than 72 characters due to the maximum size of the source code field in dependency editor is 72 characters.

Is there anyone that have the same problem and know the solution? Or is there any advice / tips how to upload the Object Dependency that have long source code?

Any comments is appreciated. Thank you before hand.

1 REPLY 1
Read only

bastinvinoth
Contributor
0 Likes
934

Hi Mika Permana,

Same Problem am also getting when i was trying to upload more than one object dependency syntax's on CU01,

After that i came to know we can restrict that all those things before 72 character's and we can add all those things to the next line in notepad,

For Example,

Header 1
$SELF.Z_PRICE_HDC= 'HDC30' IF TURNAROUND = 'TAT5' AND NDF_COLOR1 = '4/4'
AND NDF_COLOR1 = '4/4'

Here We cant upload the object dependencies through to excel file,because KCD_EXCEL_OLE_TO_INT_CONVERT and ALSMEX_TABLINE function module having 'Value' field ,its length is 50 only,

so it cant allow after 50th word. so i preferred to use notepad!!!

the following code is for your reference.

*************************************************************************************************************************************

LOOP AT i_index WHERE knnam_001 = it_mmtab-knnam_001.

       l_count = l_count + 1.

       CONCATENATE 'RSTXP-TDLINE(' l_count ')' INTO var1.

       PERFORM bdc_field       USING var1                               " 'RSTXP-TDLINE(01)'           " syntax

                                i_index-tdline_01_006.

       IF l_count > 15.

         MESSAGE 'LINE ITEM EXCEEDED > 15 ' TYPE 'E'.

       ENDIF.

     ENDLOOP.

*********************************************************************************************************************************************

Thanks & Regards,

BASTIN VINOTH NG

SAP Technical Consultant,

Unisoft Infotech Pvt. Ltd.,

**************************************************************************************************************************************************************