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

RFC

Former Member
0 Likes
759

Hi,

does anyone understood the follwing spec lines.can anyone guide how to go abt it.

TECH SPEC:

create a RFC function Z_DICOM_GET_FIELD_INFO, to get field info from SAP field Dictionary

IMPORT PARAM: FIELD NAME( EG: INVFO_SGTXT)

EXPORT PARM: FIELD DESCRIPTION, FIELD TYPE, FIELD LENGTH

END OF SPECIFICATION.

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
711

GO to the se37.

IN function module write: Z_DICOM_GET_FIELD_INFO

clic create. Fill function group (if you dont have own one you have to create it in se80) and text.

CLick save.

IN fm attributes - processing type - mark remote-enabled.

Fill export and imort parameter names (you will find in intabs)

Save&activeta.

Thats all

BR< Jacek

6 REPLIES 6
Read only

Former Member
0 Likes
712

GO to the se37.

IN function module write: Z_DICOM_GET_FIELD_INFO

clic create. Fill function group (if you dont have own one you have to create it in se80) and text.

CLick save.

IN fm attributes - processing type - mark remote-enabled.

Fill export and imort parameter names (you will find in intabs)

Save&activeta.

Thats all

BR< Jacek

Read only

Former Member
0 Likes
711

Hi,

Just you need to create a RFC Function module <b>Z_DICOM_GET_FIELD_INFO</b>, In this function module you need to pass <b><b>FIELD DESCRIPTION, FIELD TYPE, FIELD LENGTH</b></b> and get the <b>FIELD NAME</b>.

example: in you pass the Material no, and the type of that filed and the lenght of that field then function module retrive the MATNR

hope you understand

Thanks

Sudheer

Read only

Former Member
0 Likes
711

This is what I can make out:

U need to RFC enable the FM (that option can be found in the header); fetch the field desc, type & length for the field name from the SAP tables.

DOes that make sense?

-Aarthi.

Read only

Former Member
0 Likes
711

Hi,

1)U have create a Function Module; which is RFC Enabled.

click the radio button RFC in Attribute Tab.

2) Importing Parametr is Data element.

eg:- check this in Se11 transaction ( data element )

Data element :- BP_PARTNER

3)Exporting will be

Short Description : Business Partner Numb

Data Type : CHAR

Length : 10

Read only

Former Member
0 Likes
711

goto SE37 and create one FM with name Z_DICOM_GET_FIELD_INFO.

in attributes give it as Remote enabled

then write select statement in the source code

to get text

<b>select single DDTEXT from DD03T where fieldname = importparameter-fieldname.</b>

to get datatype and length

<b>Select inttype intlen from dd03l where fieldname = importparameter-fieldname.</b>

Message was edited by: Chandrasekhar Jagarlamudi

Message was edited by: Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
711

Hi,

If whant to find details of data element then do this

<b>FIELD TYPE, FIELD LENGTH</b>

select single <b>DATATYPE LEN</b>

from DD04l

where ROLLNAME = <Field Name>

<b>FIELD DESCRIPTION</b>

select single D<b>DTEXT</b>

from DD04T

where ROLLNAME = <Field Name>

and DDLANGUAGE = 'E'.