2009 May 13 5:03 PM
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.
2009 May 13 5:31 PM
>
> 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
2009 May 13 7:06 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |