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

bdc error ( URGENT)

Former Member
0 Likes
629

HI

I AM RUNNING THE BDC SESSION METHOD HERE I ONE FIELD CONTAINS BLANK VALUE THE FIELD IS NOT POPULATED I WANT TO GIVE A F4 HELP TO THAT PARTICULAR FIELD AND DISPLAY THE LIST OF VALUES IN INTERNAL TABLE IN THE SAME PROGRAM FOR CHOOSING THE VALUE.

THANKS AND REGARDS,

KIRAN.M

HI

I AM RUNNING THE BDC SESSION METHOD HERE I ONE FIELD CONTAINS BLANK VALUE THE FIELD IS NOT POPULATED I WANT TO GIVE A F4 HELP TO THAT PARTICULAR FIELD AND DISPLAY THE LIST OF VALUES IN INTERNAL TABLE IN THE SAME PROGRAM FOR CHOOSING THE VALUE.

THANKS AND REGARDS,

KIRAN.M

4 REPLIES 4
Read only

Former Member
0 Likes
590

Hi Kiran,

You can use the Function Module F4IF_INT_TABLE_VALUE_REQUEST to load the values from the internal table to the search help.

So provide a parameter in the selection-screen and attach a search help to it and load the values using the above-said Function Module. NOw obtain the selected value from the search help using the Function Module DYNP_VALUES_READ .

Now extract the value from the table in the Function Module DYNP_VALUES_READ and assign it to a variable and pass the variable to the BDC program.

This will work.

Award points if found useful.

Regards,

Inder.

Read only

0 Likes
590

CAN U EXPLAIN LITTLE MORE WITH CODE

Read only

Former Member
0 Likes
590

hi Check following code:

here in selection screen carrid is entered based on that values we will select connid values.

REPORT Z_TEST.

SELECT-OPTIONS: S_CARRID FOR SFLIGHT-CARRID,

S_CONNID FOR SFLIGHT-CONNID.

DATA: BEGIN OF HELP_ITEM OCCURS 0,

CONNID TYPE SFLIGHT-CONNID,

END OF HELP_ITEM.

DATA: DYNFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CONNID.

DYNFIELDS-FIELDNAME = 'S_CARRID'.

APPEND DYNFIELDS.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = SY-CPROG

DYNUMB = SY-DYNNR

TRANSLATE_TO_UPPER = 'X'

TABLES

DYNPFIELDS = DYNFIELDS

EXCEPTIONS

INVALID_ABAPWORKAREA = 1

INVALID_DYNPROFIELD = 2

INVALID_DYNPRONAME = 3

INVALID_DYNPRONUMMER = 4

INVALID_REQUEST = 5

NO_FIELDDESCRIPTION = 6

INVALID_PARAMETER = 7

UNDEFIND_ERROR = 8

DOUBLE_CONVERSION = 9

STEPL_NOT_FOUND = 10

OTHERS = 11.

READ TABLE DYNFIELDS WITH KEY FIELDNAME = 'S_CARRID'.

S_CARRID = DYNFIELDS-FIELDVALUE.

SELECT S_CONNID INTO TABLE HELP_ITEM FROM SFLIGHT WHERE CARRID IN S_CARRID .

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'CONNID'

DYNPROFIELD = 'S_CONNID'

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

TABLES

VALUE_TAB = HELP_ITEM.

Regards

Ashok P

Read only

Former Member
0 Likes
590

but i want to get in the middle of bdc session for a transaction.