Application Development 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: 

Ecatt PFCG Role Change of Organizational Values problem

Former Member
0 Kudos

Hi

I am trying to write an Ecatt script to add company codes to a derived role, i am done writing the ecatt and its working fine, but the problem is when i click on Organization Button in PFCG in Role Edit, i have an arrow button to add new values, when i click that 2 empty rows add at the bottom where new values needs to be entered, when recording i need to scroll down couple of times to go down to the bottom to the empty line, when i run the script its failing because of the 2 scrolls that i do,if i remove these 2 lines it works but i that case its replacing existing org value with a new value, which is not what we want, we want to add new org values, also please note depending on the values sometimes i need to make more than 3-4 scroll clicks to go to the bottom, is there any way to make the system understand that these are simple scrolls and pick the empty line at the bottom,

any help will be appreciated

thanks

srikanth

5 REPLIES 5

Former Member
0 Kudos

Hi Srikanth,

After you press the button to add the two rows, you are scrolling down and add the values in the two empty lines. right?

and then when you execute the script the scroll is not considered and the values are overwritten . right?

You try this:

In your script, look for the code:

BDC_CURSOR T_STORG-BUTTON(01)

BDC_OKCODE =P001

add the line:

BDC_CURSOR HTEXT1

BDC_OKCODE /00

If you want 4 empty lines add 2 times, 6 empty lines 3 times etc..

Save the script, do the test run.

Let me know if this works for you.

Regards,

Srihari

0 Kudos

Hi Hari

thanks for your inputs and trying it out

When i recorded the script and added new lines, 2 line codes of (MODE=s, BDC_CURSOR=HTEXT1 and BDC_OKCODE=/00 ) were already added, but when i run the script it goes till these steps and fails , i get a message in the foreground "org values unchanges " and it exists, in the error page i see it fails at these 2 lines, if i remove these 2 lines script runs for replacing the existing value, is there any way we should make the system understand that these 2 lines as just scrolls based on the MODE ?

let me know your thoughts

regards

srikanth

0 Kudos

Hi Srikanth,

Try this:

BDC_CURSOR T_STORG-BUTTON(01)

BDC_OKCODE =P001

BDC_CURSOR HTEXT1

BDC_OKCODE /00

BDC_CURSOR T_STORG-LOW(01)

T_STORG-LOW(01) <org. value1>

the above is for adding one "extra" line of org. level.

For the next:

BDC_CURSOR T_STORG-BUTTON(01)

BDC_OKCODE =P001

BDC_CURSOR HTEXT1

BDC_OKCODE /00

BDC_CURSOR T_STORG-LOW(02)

T_STORG-LOW(02) <org. value2>

and so on..

This should work for you.

Let me know the result.

Regards,

Srihari

0 Kudos

Hi Hari

It still fails, trying to make it work...just wanted to thank you for the help

regards

srikanth

0 Kudos

Hi Srikanth,

So the problem still persists.. hmm..

Fine. But let us know once you figure out the solution and do post the corrective actions you have done to make this work.

Regards,

Srihari