Skip to Content
3
Former Member
May 12, 2016 at 07:08 AM

BDC for SE41 doesn't populate the function code

78 Views

I have an urgent requirement to programatically add few buttons in the existing application toolbar for a PF-Status of a program. I couldn't find any standard FM or programs to achieve this.


So, I created a BDC recording in SHDB using tcode 'SE41' and implemented a BDC call transaction for this. But, when I run in it, it's unable to auto populate function codes and therefore the BDC fails. When it is run in foreground mode ('A'), and when the fcodes are given manually, everything works fine. Could anyone please suggest me how can I achieve this either through BDC or any other method.


Program name - 'ZRS_RND',

PF-Status - 'ZSTATUS'

Function code to be added: 'CREA'


See below the SHDB recording for the same and no where it captured the Function Code(CREA) although it captured the 'Info Text' and 'Icon Text' etc., I tried to replace RSMPE-FUNC with Function Code i.e., 'CREA' but it doesn't work.

SAPMSMPE0100XBDC_CURSORRSMPE-PROGRAMBDC_OKCODE=CHNGRSMPE-PROGRAMZRS_RNDRSMPE-B_STATUSXRSMPE-STATUSZSTATUSSAPMSSY00120XBDC_CURSOR05/23BDC_OKCODE=PICKSAPMSSY00120XBDC_CURSOR20/43BDC_OKCODE=RSCRSAPLSMPE0113XBDC_CURSORRSMPE-FUNCBDC_OKCODE=ENTRRSMPE-B_TXT_STATXSAPLSMPE0133XBDC_CURSORRSMPE-INFO_TEXTBDC_OKCODE=ENTRRSMPE-MENU

Create new records

RSMPE-ICON_NAME

ICON_CREATE

RSMPE-INFO_TEXT

Creates new records