cancel
Showing results for 
Search instead for 
Did you mean: 

input Filed Length Changes in SAP Table How to maintain in WDJ

Former Member
0 Kudos

hi ,

i have scenario where we are having the scenario like dat ..

container id with 10 chars previousl y in sap system

currently from sap they have changed the length to 20 char in sap tablle.

from web dynpro java we have set length 20 char .

scenario: user can enter text from web dynpro view (portal form ) when click on ok it will save in sap table.

example

we are entering text testbyvenkatreddy

click on save

testbyvenk

now i need to display the full 20 char length

can inputs ?

Regards ,

venkat p

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

Hi Venkat,

1. Did u check in the backend if the value testbyvenkatreddy is getting saved completely or just testbyvenk?

2. Are you accessing the field which has been changed in the SAP backend thru a BAPI?

Because, if a BAPI or RFC is changed in terms of structure or attribute in the backend, u need to re-import the BAPI / RFC again and re-boot your J2EE server, else the new fields will not be added to the WD project. even though you change the field length from 10 to 20, the old length will be taken (which is 10).

Make sure you re-import the RFC model and restart you J2EE engine.

Regards,

Poojith MV

Former Member
0 Kudos

Hi ,

actually the user can enter the value from portal ie thru web dynpro form

example :

'testbyvenkatreddy'

when user clicks on save .

it will call bapi and update the database the same value will be updated in portal ..

but it is taking only 10 char when we put an external breakpoint in BAPI we observed the input to the bapi is going only 10 char even we have more than 10 char .

From SAP system side they have changed only char length 10 to 20 thts it ...

they didn't changed the filed name or structure only they changed in dataelement ..

is we need reimport the bapi agian or reboot the server ?

wht we need to do exactly we are on support project having lots of bapis in single application ...

regards ,

venkatp

Former Member
0 Kudos

hi ,

from Web dynpro form view we have the input field length is 20 ..

former_member214651
Active Contributor
0 Kudos

Hi Venkat,

Any change made to the attributes in SAP backend involves, re-importing the BAPI coz the metadata destination will have the information as 10 and not 20. Unless you re-import the BAPI the change is not reflected.

Hence, re-import the BAPI and re-start the server. it will work

Regards,

Poojith MV

Former Member
0 Kudos

Hi ,

are you sure on this ..

because we have lot bapis in single application with custom , interface controller ...

so we need to reimpoort the BAPi again means total application needs to be redesigned ,,,,,

Former Member
0 Kudos

Hi ,

we can write any code for this ...

Former Member
0 Kudos

Hi ,

We have Just Restarted the server now its workign fine its taking 20 char length

no need to Reimport the model again ...

thanks lot

Answers (4)

Answers (4)

Former Member
0 Kudos

we have rebooted the server its workign

Former Member
0 Kudos

please provide solution

Former Member
0 Kudos

Dear Venkat,

What I can understand from your issue, you don't need to define the length of the input field, rather bind the property to an attribute, which takes the calculated length of the input entry. So, the length would vary dynamically.

Hope it resolves your issue.

Cheers!!!

Umang

Former Member
0 Kudos

Hi ,

its giving only 10 char length ...

whether we need to reboot the portal server .... ?

regards ,

venkat p