cancel
Showing results for 
Search instead for 
Did you mean: 

SE16 Table fields changing

former_member679630
Discoverer
0 Kudos

Hello guys,

I've been struggling with this lately. I made a macro to view certain things in the tables in SE16 and when i give the parameters to the table fields, it sometimes fails because the order of the fields changes. Please take a look at the picture attached to see what i am refering to.

As you can see, in one ocassion the field for "Vendor" dissapeared from the search criteria for the table, and just a matter of minutes later it is available again.

When my macro executes the line

session.findById("wnd[0]/usr/ctxtI1-LOW").Text

it does not always lands on the same field, because the first field keeps switching.

Is there a way in which i can prevent this from happening, or at least maybe set it myself to which fields i want to see?

Thank you beforehand for your support!

Accepted Solutions (0)

Answers (2)

Answers (2)

stekoester
Explorer

Hi jhonavon,

first of all you need to understand the transaction SE16. Every user can change the fields of the selection screen of every table.


Fields for Selection is global setting and client independent.

After adding or deleting one or more fields the generated report (in your case /1BCDWB/DBLFB1) will be regenerated with the choosen fields. So you described a normal behaviour of SE16.

I see only one way that your macro will work is:

  • Configure the selction screen to your needs
  • Copy the report /1BCDWB/DBLFB1 to ZDBLFB1
  • Assign the new report to the new tansaction code ZSE16_LFB1

I hope this will help you.

Greetings
Stephan

former_member207186
Contributor

Hi,

Regarding SE16 and selection screen/variants you can check SAP Notes below:
##2520680 - Problems with selection screens or variants on SE16
##1499199 - Problems with selection screens of the SE16 display reports

You may also refer to SAP knowledge base article
##2860615 - Do not use SE16 transaction as a business transaction

Regards,
Bíborka