Skip to Content

VA01 Sales Order - Possible Contract Popup for selection

Hi All,

Here's my issue during creation of a sales order - a popup with all the contracts on it displays. That was done with configuration. Now we want to add more fields without modification. I can fill BSTKD without any problem. However, it won't display. You'll notice my modification of "or BSTKD". The code works if do that. However, I've been told no modifications.

It seems like an impossible task - so I give you mission impossible for me.

The screen display is screen 700. The include is LV45CF0A line 149. The subroutine is ausgabe_liste_hinweis. I have seen other solutions here, but they all seem to include modification.

I'm on version 7.5. We are still using the old transactions right now.

Any and all ideas are appreciated,

Michelle

The code:

  LOOP AT lt_fieldcat ASSIGNING <ls_fieldcat>.
    <ls_fieldcat>-tech = 'X'.
    CASE <ls_fieldcat>-fieldname.
*{   REPLACE        DEVK904328                                        1
*     WHEN 'AUART' OR 'VBELN' OR 'DATAB' OR 'DATBI'.
      WHEN 'AUART' OR 'VBELN' OR 'DATAB' OR 'DATBI' or
           'BSTKD'.
*}   REPLACE
        CLEAR <ls_fieldcat>-tech.
      WHEN 'KUNNR'.
        IF ( kopfebene CA 'XC' AND add_field_show = 1 )
             OR kopfebene CA 'D'.
          CLEAR <ls_fieldcat>-tech.
        ENDIF.
      WHEN 'POSNR' OR 'KWMENG' OR 'MEINS' OR 'NETWR' OR 'WAERK'.
        IF kopfebene CA ' '.
          CLEAR <ls_fieldcat>-tech.
        ENDIF.
      WHEN 'ABRUF_PART'.
        IF kopfebene CA 'D'.
          CLEAR <ls_fieldcat>-tech.
        ENDIF.
    ENDCASE.
  ENDLOOP.
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 28, 2019 at 01:36 PM

    Hi Michelle,

    I was suggesting to check "NO_OUT" Field to, but then I checked the code a bit better in my release and i see this

    The fieldcat is generated from structure LISTVBAP, but that structure has no "BSTKD" field

    This, at least, in my release.
    Check there and, in case, add the field in the structure and it should work.

    Simone


    code.png (41.2 kB)
    structure.png (72.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded