Skip to Content

SE16 Table fields changing

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!

helpsap.png (83.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 18, 2020 at 01:06 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 18, 2020 at 02:53 PM

    Hi Juan Pensado,

    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


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.