cancel
Showing results for 
Search instead for 
Did you mean: 

Select an input field in ALV in ME51n with the inspector is not possible in v 3.0

Former Member
0 Kudos

Hallo,

I have a Problem with the transaction me51n. I want to select an input field in the ALV with the inspector to have the id of this field and work with. But the inspector can only select the ALV-Container and not any Field in any row.

I tried the same in SU10 and it worked.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try using the script recorder to put a value in the field, and that should give you what you need...

Steve.

Former Member
0 Kudos

Hello Steve,

I got a ME51N-problem, too.

I wanna put a value in one cell via using the .modifycell-Option of the SAPGuiGrid object.

I entered the rowNo (Integer), the name of the column (String) and the value (Sring).

var carColName = session.findById("...").getColumnName(1);

session.findbyID("...").modifyCell(0, carColName, "10");

After I have started the script, I received a error message:

"...failed on fire action - argument value out of range.."

The script validation was successful.

All other options (setBackgroundColor, getCellValue, ...) are working fine.

Do you have a sample script for the transaction ME51N?

Regards Matthias

Former Member
0 Kudos

The first row is row 1, not row 0...

This script successfully sets the quantity column to 3 for the first item, in ME51N:


var colName = session.findById("...").getColumnName(6);

session.findById("...").modifyCell(1, colName, 3);

Steve.

Former Member
0 Kudos

Very tricky. The ALV-tables starts with row 0.

Now we can implement the script for the GuiGrids.

Thanks Steve.

Former Member
0 Kudos

Thanks Steve

Answers (0)