Skip to Content
0
Former Member
Apr 20, 2007 at 03:14 AM

Modal dialog box problem - FI/CO A/R module

24 Views

Hi All,

I have custom t-code zf04 .

There is a main screen - 100 ( Scree type: Normal Screen), in this I kept one icon "FIND". When they click on this Find icon i am calling one more screen- 300 ( Screen type: Modal dialog box) . In screen-300, i have two fields: invoice , amount and table control. And it has two icons yes, and exit.

1) In screen 100: if ok_code = find

call screen 300.

when its coming to screen 300, still ok_code is 'find', its not changing to 'yes' or 'exit' when i click on icons in 300. How to cahnge ok_code from find to yes or exit?

2) Screen -300,I am displaying invoice deatils in table control like 50,000 records in pbo module,When they enter invoice no in invoice field and click on yes icon, i need set the cursor to the invoice no where we find matching record in 50,000 records.

How to setup my cursor in PAI module? Please let me know.

PROCESS AFTER INPUT.

loop at zsrch.

  • module test.

endloop.

MODULE USER_COMMAND_0300.

+++++++++++++++++++++++++++++++++++++

MODULE USER_COMMAND_0300 INPUT.

data: CRS_LINE LIKE SY-STEPL. " Cursor-Zeile

loop at zsrch where zuonr = y_xblnr. " y_xblnr is invoice no

set cursor field zsrch-zuonr line sy-tabix.

GET CURSOR FIELD zsrch-zuonr LINE crs_line.

endloop.

ENDMODULE.

Regards,