cancel
Showing results for 
Search instead for 
Did you mean: 

Datasource enhancements.

Former Member
0 Kudos

Hi,

I had tried Datasource enhancement for Vnedor attributes datasource. When I saw the data in RSA3, I could see the fields populated but there is no data in them. I want the data to be populated. Can any one pls solve this issue. Also if any documentation(latest) on DS enhancements, Pls share with me.

Regards,

Kalyani.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In RSA3 change the number of records displayed to more number and check it..may be there is no data for the records you selected.

Regrads

Riyez

Former Member
0 Kudos

I gave the maximum no of records...

That's not the problem..

Former Member
0 Kudos

I gave the maximum no of records

That's not the problem.

Former Member
0 Kudos

Hi

Why you are using some code in SE38 and then calling it in exit, instead try to put all the code in CMOD exit only.

thanks and Regards

Neel

former_member186445
Active Contributor
0 Kudos

put a breakpoint after your select statement and check if any data is retrieved from the R/3 tables...

return with feedback, then will take on the next step

M.

matt
Active Contributor
0 Kudos

>

> Hi

>

> Why you are using some code in SE38 and then calling it in exit, instead try to put all the code in CMOD exit only.

>

> thanks and Regards

> Neel

He's trying to work through "[Step by step guide to enhance a datasource|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00c1f726-1dc2-2c10-f891-ddfbffdb1a46&overridelayout=true]"

Former Member
0 Kudos

Hi Matt,

Thanks a lot for the link, this is a new thing i have learnt, actually i still follow what i have learnt here from "Robert Negro" .

off late i am not browsing much, i should from now to keep me updated.

Thanks and Regards

Neel

Pravender
Active Contributor
0 Kudos

Did you write the code for enhanced object?

Former Member
0 Kudos

Yes I had written the code in CMOD and SE38.

Former Member
0 Kudos

Hi,

Debug from RSA3 and trace this. Also, check the option selected for field in DS (Selection, Hide, Field only exit). Make this as selection if you need this selection for data load.

Regards,

Rama Murthy.

Edited by: Rama Murthy Pvss on Jun 9, 2010 1:02 PM

Former Member
0 Kudos

I marked the selection check boxes and unhide them. But still the data is not found.......

Any inputs pls?

former_member186445
Active Contributor
0 Kudos

could you please post your user exit coding?

Former Member
0 Kudos

Hi,

There are 2 codings. One in TCODE CMOD and the other in TCODE SE38. There are no errors in these codes.

The code in Tcode CMOD:

DATA: L_PROG_NAME LIKE TRDIR_NAME.

CONCATENATE 'ZBWIN_' I_DATASOURCE INTO L_PROG_NAME.

PERFORM EXECUTE_USER_EXIT IN PROGRAM (L_PROG_NAME)

TABLES I_T_SELECT

I_T_FIELDS

C_T_DATA

C_T_MESSAGES

IF FOUND.

The code in SE38:

REPORT ZBWIN_0VEN_COMPC_ATTR. type-pools: sbiwa. constants : gc_vbeln type vbeln value '2'. *&----


  • *& Form EXECUTE_USER_EXIT *&--------------------------------------------------------------------

  • * text *---------------------------------------------------------------------

  • * -->P_I_T_SELECT text * -->P_I_T_FIELDS text * -->P_C_T_DATA text * >P_C_T_MESSAGES text *--

-


  • FORM execute_user_exit tables i_t_select type sbiwa_t_select i_t_fields type sbiwa_t_fields i_t_data structure BIW_LFB1_S " Datasource structure c_t_messages structure balmi. TYPES: BEGIN OF T_LFBW, LIFNR TYPE LFBW-LIFNR, BUKRS TYPE LFBW-BUKRS, WITHT TYPE LFBW-WITHT, WT_SUBJCT TYPE LFBW-WT_SUBJCT, WT_WITHCD TYPE LFBW-WT_WITHCD, END OF T_LFBW. *Internal table declaration DATA: I_LFBW TYPE STANDARD TABLE OF T_LFBW, I_VEN_COMPC_ATTR TYPE STANDARD TABLE OF BIW_LFB1_S. DATA: l_tabix TYPE SY-TABIX. * WORK AREA DECLARATION DATA: WA_LFBW TYPE T_LFBW, WA_VEN_COMPC_ATTR TYPE BIW_LFB1_S. REFRESH: I_LFBW, I_VEN_COMPC_ATTR. CLEAR: WA_LFBW, WA_VEN_COMPC_ATTR. I_VEN_COMPC_ATTR = i_t_data[]. SELECT LIFNR BUKRS WITHT WT_SUBJCT WT_WITHCD FROM LFBW INTO TABLE I_LFBW FOR ALL ENTRIES IN I_VEN_COMPC_ATTR WHERE LIFNR = I_VEN_COMPC_ATTR-LIFNR AND

Step by Step Guide to Enhance a Data Source

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2009 SAP AG 14

BUKRS = I_VEN_COMPC_ATTR-BUKRS. IF SY-SUBRC = 0. SORT I_LFBW BY LIFNR. ENDIF. LOOP AT I_T_DATA INTO WA_VEN_COMPC_ATTR. l_tabix = sy-tabix. READ TABLE I_LFBW INTO WA_LFBW WITH KEY LIFNR = WA_VEN_COMPC_ATTR-LIFNR BUKRS = WA_VEN_COMPC_ATTR-BUKRS BINARY SEARCH. IF SY-SUBRC = 0. WA_VEN_COMPC_ATTR-ZZWITHT = WA_LFBW-WITHT. WA_VEN_COMPC_ATTR-ZZWT_SUBJCT = WA_LFBW-WT_SUBJCT. WA_VEN_COMPC_ATTR-ZZWT_WITHCD = WA_LFBW-WT_WITHCD. ENDIF. MODIFY i_t_data FROM WA_VEN_COMPC_ATTR INDEX l_tabix. ENDLOOP. ENDFORM. " EXECUTE_USER_EXIT