Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issues Related to SAP Script and Dialog Programming

Hi All,

I have some issues related to <b>SAP Script</b> and <b>Dialog programming</b>.

Actually i have a <b>Dialog screen</b> already prepared in that i have to add One <b>BUTTON</b> on Application Tool Bar.

That i have done already.

Now when we hit on That button it should pop-up me <b>2</b> Input fields as <b>Sales Order Number</b> and

<b>PrinterNo LIKE NAST-LDEST</b>.

When i give both the above values i should be able to display <b>New SAP Script output</b> with data from Dialog SCreen.

Can anybody give me any sujjestions.

Any help in this regard will be appreciated.

Thanks in advance.

Thanks & Regards,

Prasad.

Tags:
Former Member
Former Member replied

Hi Prasad,

The FM POPUP_GET_VALUES is the required FM...

Just check this code...

This will popup a dialog window with CARRID and CONNID values , which you can select to achieve your requirement.

REPORT ZSHAIL_1 .

data: itab type table of sval with header line.

itab-tabname = 'SFLIGHT'.

itab-fieldname = 'CARRID'.

append itab.

clear itab.

itab-tabname = 'SFLIGHT'.

itab-fieldname = 'CONNID'.

append itab.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

  • NO_VALUE_CHECK = ' '

popup_title = 'hello'

  • START_COLUMN = '5'

  • START_ROW = '5'

  • IMPORTING

  • RETURNCODE =

tables

fields = itab[]

EXCEPTIONS

ERROR_IN_FIELDS = 1

OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Hope your query is solved.

Regards,

SP.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question