Skip to Content
0

Need Standard RFC to read all variants details of all programs at one go

Feb 20 at 11:41 AM

106

avatar image
Former Member

Dear All,

My requirement is , need to fetch variant details of production system programs from solman.

There are hundred of programs in each production system for which i need to collect variant details.

I checked the below RFCS ,but using these RFCS we can get only one variant details of one program at a time, so i need to make a RFC call inside the loop and get variants details one by one, if i do like this, it will decrease system performance.

RFCS

FASU_V_VARIANT_CONTENTS

/GRCPI/GRIA_AM_VARIANT_VALUE.

Could please provide me , if there is any standard RFC where we can input all programs , program variants and it returns all variants data at once ( with out creating any new custom RFC ,inside RFC calling any of these FMs ).

I have tried getting the variant table 'VARI' data using the RFC 'RFC_READ_TABLE',

but the problem is Variant content is in RAW format.

I am not able to convert variant content to text format.

Could please help me how we can convert RAW data to text format.

Thanks and Regards,

Purna

10 |10000 characters needed characters left characters exceeded

Purna,

Why do you intend to use RFC FM here ?

Is there any constraint which is forcing you to consider an RFC FM to get this data ?

How about a running a custom program in PRD to get all the variants details of the respective Programs and get them downloaded into Excel.

K.Kiran.

1
Former Member
Kiran K

Hi Kiran,

Thanks for your reply .

Requirement is like need to collect all file system interface details.

There are hundred of interfaces which are sending the files to non sap system from SAP.

For sending the files we have one custom program which runs when ever file is transferred from sap to NON SAP system.

The process of sending files is managed by job management. these jobs are scheduled/Triggered in SAP from NON sap tool/non sap system.

the relation between jobs is One to Many,that means one job( Can have multiple steps ) in NON SAP system triggers multiple jobs in SAP.

One job in NON SAP system can have multiple steps, meaning step one is creation of file , next step is sending file , next step is deletion of file , next step creation of file and so on.

we have The jobs details scheduled from NON SAP in Excel format.

My requirement is to map the Driver program(Creation of file ) to send program (Sending) as per job steps using the variants values since one of the selection screen parameter of driver program is file name.

Based on file name of both programs, will get to know , what is the file Name, target system, file format etc.

Based on variants details, program names, will collect interface details.

need to develop some tool in development system, which should collect all interface details of production file system.

for this, i need a RFC where we can give all programs, its variants to collect all variants values at one go from Production system.

don't want to move any custom code to production to achieve requirement.

Could please suggest if there isany other methods to achieve this ?

0
Former Member

Purna,

In my opinion you should not be using RFC concept for this requirement.

At a high level,you know the job name.From job name, get the Program name and using that get the variant details.Not sure if you can get all the required info for all such interfaces solely going by the variant details.If all these programs has Logical path as part of variant then that will help you in collecting the App server paths to where SAP system writes the files to, before transferring to Non-SAP system.

May be experts here can help you in designing a more refined approach.

K.Kiran

0
Former Member
Kiran K

Hi Kiran,

Thanks for your reply.

I have the all variants names of all programs in excel as per Job id. but i need to map driver program to sending program as per job step sequence numbers. There can be some deletion job steps in between for each job id, but deletion program step is always after the file sending program step.

So thinking to map driver program to send program as per job step sequence, for this reason only I need RFC to collect all variants details of excel programs.

Thanks and Regards,

Purna

0

Personally, I'm curious what would anyone do with such information. All programs and all variants? What value would this information have? How would anyone know what those values mean? It sounds like drinking from a fire hose...

1
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Matthew Billingham
Feb 21 at 09:38 AM
1

Write your own RFC enabled function module that Solman can call. Or, since Solman is an application that runs on BW, why not create your own extractor for the source system, and extract that data into a DSO or cube on Solman? If the data volumes are high, this would be the best and most performant approach. I assume that this is not something you'd need to run very frequently.

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Matthew,

Thanks for your time , helping here.

This new tool will be running only one time in a month.

After creating Own RFC/ Extractor to collect the variant details , we need to move the code to production but we don't want to move any custom code to production system to achieve this requirement.

Thanks and Regards,

Purna

0

"we don't want to move any custom code to production system to achieve this requirement."

Why not? It's a sensible solution.

0
Former Member
Matthew Billingham

Hi Matthew,

My client does not want to move any code related to this requirement.

thank you for your time , i will try to explain to my client , what benefit will get if client allowed to move custom RFC.

thank you!

Thanks and Regards,

Purna

0

It's pretty much put up with poor performance, or allow custom code. The latter is probably cheaper in the long run!

0
Krishna Murthy Feb 21 at 08:30 AM
-2

hi

function group SVAR

tables: varid,varid,VARI

see above function group maybe you can get some idea

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 21 at 03:03 PM
0

Function module RS_VARIANT_CONTENTS allows you to get variant contents without having to deal with RAW data. The FM is not RFC enabled. Also, the FM processes one program and one variant at a time. So, you still have to develop an FM or an extract program in the source system.

Share
10 |10000 characters needed characters left characters exceeded