on 11-01-2007 6:17 AM
Hi friends,
This is very much urgent.
I am getting error
"Record 1 :Return code 4 when converting field GN_PAR_SSY in record " while extracting customer text through 0customer_text.
In the transfer rule there is nothing assigned to the infobjects 0GN_PAR_SSY.
My source system is EEC 6.0.
I am not getting this error on development and quality servers.
Regards,
Sane M. V.
Hi Akash thanks for the effors.
I sorted out this problem.
The error was source system ids were not mainatined in RSA1 ( Tools menu ). By maintaining this it updates table rssoursystem table.
Regards,
Mahendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi mahendra , just have a look on the routine , for this infobject.
PROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
Declaration of transfer structure (selected fields only)
TYPES: BEGIN OF TRANSFER_STRUCTURE ,
InfoObject 0PLANT: CHAR - 000004
WERKS(000004) TYPE C,
InfoObject 0POSTAL_CD: CHAR - 000010
PSTLZ(000010) TYPE C,
InfoObject 0PURCH_ORG: CHAR - 000004
EKORG(000004) TYPE C,
InfoObject 0SALESORG: CHAR - 000004
VKORG(000004) TYPE C,
InfoObject 0FACTCAL_ID: CHAR - 000002
FABKL(000002) TYPE C,
InfoObject 0COUNTRY: CHAR - 000003
LAND1(000003) TYPE C,
InfoObject 0REGION: CHAR - 000003
REGIO(000003) TYPE C,
InfoObject 0COUNTY_CDE: CHAR - 000003
COUNC(000003) TYPE C,
InfoObject 0DISTR_CHAN: CHAR - 000002
VTWEG(000002) TYPE C,
InfoObject 0RT_CUSTPL: CHAR - 000010
KUNNR(000010) TYPE C,
InfoObject 0PLANTCAT: CHAR - 000001
VLFKZ(000001) TYPE C,
InfoObject 0SALES_DIST: CHAR - 000006
BZIRK(000006) TYPE C,
dummy field to avoid syntax error
$dummy(1) type c,
END OF TRANSFER_STRUCTURE .
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int,
l_text TYPE string.
$$ end of global - insert your declaration only before this line -
----
FORM COMPUTE_GN_R3_SSY
----
Compute value of InfoObject 0GN_R3_SSY
in communication structure /BIC/CS0PLANT_ATTR
*
Technical properties:
field name = GN_R3_SSY
data element = /BI0/OIGN_R3_SSY
data type = CHAR
length = 000002
decimals = 000000
ABAP type = C
ABAP length = 000004
reference field =
----
Parameters:
--> RECORD_NO Record number
--> TRAN_STRUCTURE Transfer structure
<-- RESULT Return value of InfoObject
<-> G_T_ERRORLOG Error log
<-- RETURNCODE Return code (to skip one record)
<-- ABORT Abort code (to skip whole data package)
----
FORM COMPUTE_GN_R3_SSY
USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BI0/OIGN_R3_SSY
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
$$ begin of routine - insert your code only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
CALL FUNCTION 'RSDG_ID_GET_FROM_LOGSYS'
EXPORTING
i_source_system = G_S_MINFO-LOGSYS
IMPORTING
e_soursysid = RESULT
EXCEPTIONS
id_not_found = 1.
IF sy-subrc <> 0.
RETURNCODE = 4.
MESSAGE e087(r7) WITH G_S_MINFO-LOGSYS INTO l_text.
MOVE-CORRESPONDING syst TO l_s_errorlog.
l_s_errorlog-record = RECORD_NO.
APPEND l_s_errorlog TO g_t_errorlog.
ABORT = 1.
ENDIF.
$$ end of routine - insert your code only before this line -
ENDFORM.
----
FORM INVERT_GN_R3_SSY
----
Inversion of selection criteria for InfoObject 0GN_R3_SSY
*
This subroutine needs to be implemented only for SAP RemoteCubes
(for better performance) and for the Report/Report Interface
(drill through).
*
----
--> I_RT_CHAVL_CS Ranges table for current InfoObject
--> I_THX_SELECTION_CS Selection criteria for all other InfoObjects
<-- C_T_SELECTION Selection criteria for fields of
transfer structure
<-- E_EXACT Flag: Inversion was exact
----
FORM INVERT_GN_R3_SSY
USING I_RT_CHAVL_CS TYPE RSARC_RT_CHAVL
I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
CHANGING C_T_SELECTION TYPE SBIWA_T_SELECT
E_EXACT TYPE RS_BOOL.
$$ begin of inverse routine - insert your code only below this line-
DATA:
L_S_SELECTION LIKE LINE OF C_T_SELECTION.
An empty selection means all values
CLEAR C_T_SELECTION.
Selection of all values may be not exact
E_EXACT = RS_C_FALSE.
$$ end of inverse routine - insert your code only before this line -
ENDFORM.
Hope it helps , assign pts if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akash,
Thanks for the fast reply.
I checked on developmetn source system there is no any FM with name
travfer .
Can u please tell me correct name of FM .
Any way I am not using GN_PAP_SSY and I have not mapped anything to it.
Regards,
Mahendra
Hi Mahendra ,
This info object is basically populated thorugh travfer routine , and in that tranfer routine , the logical source system name is exported , to get the source system through a funtion module.
First check that FM with r/3 dev. and let us know..
Assign pt if helpful.
Regrds..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahendra ,
This info object is basically populated thorugh travfer routine , and in that tranfer routine , the logical source system name is exported , to get the source system through a funtion module.
First check that FM with r/3 dev. and let us know..
Assign pt if helpful.
Regrds..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.