Skip to Content
author's profile photo Former Member
Former Member

Extension for the previous one

Hai all

I want to check wether there are fields WWRET; WWREV, WWCUC WWGCN in the table CE1XXXX where (XXXX is Operating concern will be populated in the selection selection screen.)

And The field should have

Techn. Field Type min. Field Length

WWRET CHAR 2

WWREV CHAR 4

WWCUC CHAR 3

WWGCN CHAR 10

Can anyone help with the code logic

Thanks in advance

Oli

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 07, 2004 at 04:11 PM

    Hi Oli,

    Look at the table TKEF. You find in this table the chars and the DATAelements of these. Than in the table DD04L

    can you find the rest what you need.

    regards

    Vladimir

    Add a comment
    10|10000 characters needed characters exceeded

    • Hallo Oli,

      as you could see below.

      It works.

      If you have more qwestions write me a mail

      golovtchiner.vladimir@ergopharm.de

      P.S. you can write it german too. 😉))

      Gruss

      Vladimir

      *&----


      *

      REPORT ZZZVG_TEST .

      TABLES: DD03L.

      SELECT-OPTIONS TABLE FOR DD03L-TABNAME.

      SELECT-OPTIONS WWFIELD FOR DD03L-FIELDNAME.

      SELECT * FROM DD03L WHERE

      TABNAME IN TABLE AND

      FIELDNAME IN WWFIELD.

      CASE DD03L-FIELDNAME.

      WHEN 'WWRET'.

      IF DD03L-DATATYPE = 'CHAR'

      AND

      DD03L-LENG = 2.

      • OK ! ****************

      ELSE.

      • NICHT OK ! *************

      ENDIF.

      WHEN 'WWREV'.

      IF DD03L-DATATYPE = 'CHAR'

      AND

      DD03L-LENG = 4.

      • OK ! ****************

      ELSE.

      • NICHT OK ! *************

      ENDIF.

      WHEN 'WWCUC'.

      IF DD03L-DATATYPE = 'CHAR'

      AND

      DD03L-LENG = 3.

      • OK ! ****************

      ELSE.

      • NICHT OK ! *************

      ENDIF.

      WHEN 'WWGCN'.

      IF DD03L-DATATYPE = 'CHAR'

      AND

      DD03L-LENG = 10.

      • OK ! ****************

      ELSE.

      • NICHT OK ! *************

      ENDIF.

      ENDCASE.

      ENDSELECT.

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.