Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IW37N variant clears the field

asim_isik
Active Participant
0 Likes
1,975

Hi experts ,

i have added a z field in iw37n screen takes the definition of a standard field

when i run the program and i choose the field from variant it doesnt fill the field

when i save my field in the variant than run the program it fills the field

Any ideas please

Thanks!!

5 REPLIES 5
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,876

Hi Asim

Can you please provide the details of where you have added the field and how..? Can you please provide more detail about the issue i did not get you?

Nabheet

Read only

0 Likes
1,876

hi nabheet ,

iw37n uses the RI_ORDER_OPERATION_LIST program and it displays object_tab ( internal table )

i inserted my z field in that internal table actually its shortly in ci_aufk append structure in aufk table. After this process it automatically comes in iw37n in the variant. Than in INCLUDE i_order_operation_list_f20. end of the FORM selection_f20.

i created my enhacement as follows and took the definition.

ENHANCEMENT ZPM_OPE_LIST.    "active version
DATA: GS_OBJECT_TAB LIKE LINE OF OBJECT_TAB.

LOOP AT OBJECT_TAB INTO GS_OBJECT_TAB.
     "equnr ile equi ye git. Equı den  HERST ve  TYPBZ al.
     SELECT SINGLE HERST FROM EQUI

     INTO GS_OBJECT_TAB-ZPM_HERST WHERE EQUNR = GS_OBJECT_TAB-EQUNR.


     SELECT SINGLE TYPBZ FROM EQUI INTO

     GS_OBJECT_TAB-ZPM_TYPBZ WHERE EQUNR = GS_OBJECT_TAB-EQUNR.


     SELECT SINGLE KTSCH FROM AFVC INTO GS_OBJECT_TAB-KTSCH
             WHERE AUFPL = GS_OBJECT_TAB-AUFPL
               AND VORNR = GS_OBJECT_TAB-VORNR.

     "Standard Anahtar Tanımı Metni
     IF GS_OBJECT_TAB-KTSCH IS NOT INITIAL.
       SELECT SINGLE TXT FROM T435T INTO

       GS_OBJECT_TAB-ZZSTDR_ANHTR_TNM WHERE VLSCH = GS_OBJECT_TAB-KTSCH.
     ENDIF.

     MODIFY OBJECT_TAB FROM GS_OBJECT_TAB.
     CLEAR: GS_OBJECT_TAB.
ENDLOOP.
ENDENHANCEMENT.

Read only

0 Likes
1,876

Asim thanks for the email I got it what you are trying to achieve. A custom field in output.

You mean to say your field is not displayed in output.. If yes please check in fiedcatalog which is pass to ALV function module has the field..? Seconldy try changing layout sometimes filed is hidden.

If issue is something different please provide more detail with a screen shot

Nabheet

Read only

0 Likes
1,876

it's not about field not displayed in the question i put pictures as you see in the picture my field is that

"Standard Anahtar Tanımı" in first picture its not saved in variant its empty in 2nd its saved in variant and its filled

Read only

0 Likes
1,876

Can you please check in debugging about the field catalog what setting are being passed their..?