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 to ecc system

Former Member
0 Likes
517

I have a requirement to get list of planned orders used in the APO extract by doing rfc to ecc system.the plnum from table plaf,that we will get based on some selection criteria,based on this we have to take order no,production no,resource name,activity end date from u201C/SAPAPO/SEQ_AOEXT_STRu201D.This have to be done using bapi BAPI_MOSRVAPS_GETLIST2.How to do it?please suggest.all the info will be stored in a file.plz help.

I have a requirement to get list of planned orders used in the APO extract by doing rfc to ecc system.the plnum from table plaf,that we will get based on some selection criteria,based on this we have to take order no,production no,resource name,activity end date from u201C/SAPAPO/SEQ_AOEXT_STRu201D.This have to be done using bapi BAPI_MOSRVAPS_GETLIST2.How to do it?please suggest.all the info will be stored in a file.plz help.

2 REPLIES 2
Read only

Former Member
0 Likes
470

>

> I have a requirement to get list of planned orders used in the APO extract by doing rfc to ecc system.the plnum from table plaf,that we will get based on some selection criteria,based on this we have to take order no,production no,resource name,activity end date from u201C/SAPAPO/SEQ_AOEXT_STRu201D.This have to be done using bapi BAPI_MOSRVAPS_GETLIST2.How to do it?please suggest.all the info will be stored in a file.plz help.

RFC_READ_TABLE "Read table entries from remote system table which is having max 40 fields

REFRESH: OPTIONS, FIELDS, ITAB.

CONCATENATE '' Orderno'''' '=' '100'

'resource name' '=' 'Hello'

'activity end date ' '=' ''A'''

INTO OPTIONTEXT SEPARATED BY SPACE.

OPTIONS-TEXT = OPTIONTEXT.

APPEND OPTIONS.

CALL FUNCTION 'RFC_READ_TABLE' DESTINATION RFCSYS

EXPORTING

QUERY_TABLE = 'u201C/SAPAPO/SEQ_AOEXT_STR'

TABLES

OPTIONS = OPTIONS "This option is nothhing but where COnditoon in select query

FIELDS = FIELDS

DATA = ITAB "the data will be returned to this table..

EXCEPTIONS

TABLE_NOT_AVAILABLE = 1

TABLE_WITHOUT_DATA = 2

OPTION_NOT_VALID = 3

FIELD_NOT_VALID = 4

NOT_AUTHORIZED = 5

DATA_BUFFER_EXCEEDED = 6

OTHERS = 7.

IF SY-SUBRC <> 0.

ENDIF.

Regards,

Prabhudas

Read only

Former Member
0 Likes
470

Thanks prabhu.plz can u elaborate a little.