Application Development 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: 

get one field value as like input value as non changeable mode in table control

Former Member
0 Kudos

Hi...   My requirement is based on module pool prgmming .    i.e   1st screen input field is konnr when user give value then press enter. then it will go to 2nd screen .  in 2nd screen table control wizard is there with diff fields,1st field is again 'konnr' . this 'konnr' field value like 1st screen field value this value  should come automatically in display mode like non changeable field before enter values manually  in 2nd screen table control..in table control user has no chance to change  this field value.  and how to validate table control fields?

7 REPLIES 7

Former Member
0 Kudos

Hi,

Declare a variable of type KONNR in the top include so that it is global. Then in the PBO of your 2nd screen pass the KONNR global field value to your KONNR in the table control. And for making this field 'display only' you can directly set the attribute of the field to DISPLAY in the field properties in the layout.

Regards,

Vidya.

0 Kudos

Hi...  thanks for answer.  how to add check box in the table control?  when user select check box then corresponding vendor address details should be display in pop up window?  how to do that one?  please give me solution?

0 Kudos

Hi,

You have to first declare the internal table with the first field as checkbox of type C -

Begin of itab,

Check_box type C,

...

...

End of itab.

Later in your layout, after you create the table control drag the check box element from the tool bar onto the first field of your table control and rename it as itab-check_box.

And for the PBO and PAI coding you can check the below post

http://scn.sap.com/message/6486417

Regards,

Vidya.

0 Kudos

hi..  thanks for answer.  my requirement is in table control wizard there are diff fields like  ebeln, ebelp,matnr,txz01,lifnr,name1,addree details etc.  user will enter details manually .after vendor no,name in table control when user select address field select check box then corresponding address details like street,city,postal code,country....should be displayed in pop up window.  how to add check box after name1 field?  regards karthik

0 Kudos

Hi,

After you include the check box like i mentioned in my previous post

In the PAI of your table control you could do something like this -

Select your vendor details into a table (lets say lt_lfa1) based on the vendor number entered.

Loop at itab where check_box = 'X'.

Read table lt_lfa1 into lw_lfa1 with key lifnr = itab-vendor_number.

if sy-subrc eq 0.

modify itab with the data in lw_lfa1.

endif.

endloop.

Regards,

Vidya.

0 Kudos

Hi.. after adding like check box or push botton. it is showing error like "input/output gw_ztp-address not defined. can u give solution for that? regards karthik

Former Member
0 Kudos

Hi... in my table control i have diif fields like ebeln , ebelp,lifnr,name1,matnr,txz01,address. now user want address field as button in table control wizard. can any one explain  about this clearly? regards karthik