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

Funcation module for get accept characteristics value

Former Member
0 Likes
797

Hi,

My requirement is user enter characteristics name after that popup will display in that popup user can enter characteristics value. That value will get reflected in data base

Hi,

My requirement is user enter characteristics name after that popup will display in that popup user can enter characteristics value. That value will get reflected in data base

4 REPLIES 4
Read only

Former Member
0 Likes
764

Hello,

Use the following any of those FM's .

POPUP_TO_GET_VALUE

POPUP_GET_VALUES.

tHANKS.

rAMYA.

Read only

Former Member
0 Likes
764

Check the following sample code.

data:answer type string,

valueout type vbak.

CALL FUNCTION 'POPUP_TO_GET_VALUE'

EXPORTING

fieldname = 'VBELN'

tabname = 'VBAK'

titel = 'Enter sales'

valuein = '0' "Default value

IMPORTING

ANSWER = ANSWER

VALUEOUT = VALUEOUT-vbeln

EXCEPTIONS

FIELDNAME_NOT_FOUND = 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.

modify vbak from valueout.

Thanks.

Ramya.

Read only

Former Member
0 Likes
764

Hello,

You can use below code also.

data:RETURNCODE type string,

valueout type vbak.

data:fields type TABLE OF SVAL WITH HEADER LINE.

fields-TABNAME = 'VBAK'.

fields-FIELDNAME = 'VBELN'.

APPEND FIELDS.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

  • NO_VALUE_CHECK = ' '

popup_title = 'Enter Sales'

  • START_COLUMN = '5'

  • START_ROW = '5'

IMPORTING

RETURNCODE = RETURNCODE

TABLES

fields = fields

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.

Thanks.

Ramya.

Read only

Former Member
0 Likes
764

Problem solved