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: 

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

Former Member
0 Kudos

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,

2 REPLIES 2

Former Member
0 Kudos

Any ideas........

Former Member
0 Kudos

Hi

1) In the screen element of 300 have you set the variable OK_CODE as ok_code?

2)

IF OK_CODE = 'YES'.

READ TABLE ITAB WITH FIELD = <VALUE>.

IF SY-SUBRC = 0.

  • U have to set the record as the first record of the table control:

<Table control>-TOP_LINE = SY-TABIX.

ENDIF.

Max