Skip to Content

Creating entry in T185 table

Hi experts,

I have a customised additional tab in VA22 header. A table control is created for line items. I am creating a BDC for that tab. But unable to use '=P+' code for scrolling. It is giving error of table entry missing in T185 for " SAPMV45B, P+, K0, KUKZ ". I want to update the entry in T185 but I am stuck at screen change module. What should i put there? Do i have to create a new one or i can use the same used for another " SAPMV45B, P+, K0 " entry? (which is XTHEAD_BLAETTERN ). As there is no code handled for scrolling in PAI of that table control. Kindly help. Thanks in advance.

Also, cannot use BAPI as there are Z fields in the tab.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 15, 2016 at 10:27 AM

    Hi

    I don't know how you're managing you table control, but probably it should be better to clear the ok-code after having used it, in this way you shouldn't have impact in the standard flow.

    Anyway the T185 table can be updated by transaction VFBS

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2016 at 07:19 AM

    Dear Pranav,

    Sorry, What is your request for VA22 actually ? Do you want to save VA22 data through BDC ?

    Regards,

    Yance

    Add a comment
    10|10000 characters needed characters exceeded

    • I have a customised additional tab in VA22 header. And I am creating a BDC for that particular screen. There is a table control for which a scrolling has not been handled from backend. Hence I am unable to scroll the table control in BDC.
      I have added a entry for '=P+' in table T185 for that particular screen group and pannel, which was missing. But now I have to handle the scrolling i.e. call scrolling_in_table FM somewhere.
      one option is to call the FM in a program which is mentioned in T185 entry or change the PAI of the particular table control.
      But now I am unaware about fetching the data of that table control in an external program that I will call in T185 entry.

      Kindly provide your inputs if possible.
      Thanks and regards.

  • Posted on Sep 16, 2016 at 10:54 AM

    Only main dynpro, and no subscreen (customer-exit are usually subscren) are allowed to read the OK_CODE from screen, so the usual trick is to wildly intercept the sy-ucomm field in PAI subscreen and immediately clear it (or converted to enter ok_code) of course problem can happen, so will happen, if the PAI of main screen check its value before the CALL SUBSCREEN statement.

    Hint: In this later case, you may be compelled to find some enhancement in the PAI logic of the main screen to intercept the sy-ucomm/ok_code and pass it to customer thru some FM or FORM defined in the exit function group before clearing.

    Regards,

    Raymond

    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.