on 06-09-2010 10:41 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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]"
Did you write the code for enhanced object?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.