AR Aging Trend report data through backend tables
Hi,
We have the AR Aging Trend report live and running. The report is optimized to the maximum but during the month end closing time the report generate a lot of timeout/proxy errors. Later we understood that the users are actually using the report to dump the data out to an excel. As this report is giving problem, there is a requirement which has come to give the AR Aging data from the back end tables. As per our current flow we have the 0FI_AR_4 data source giving data to a DSO called Customer Line Items. Now i need to generate the data from this DSO to another DSO with a particular company code and open items in filter and day should always point to last wednesday. That means, even with the AR aging trend report user is running the report using always last wednesday as the key date. Now if i want to load the data from the DSO to another DSO how can i load the data for last wednesday given any system date.
Regards
Vijay
solved
Similar Messages
-
Error in accessing data through external table
Hi,
I am getting the following error while trying to view data through external table,
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04062: no data source specified
ORA-06512: at "SYS.ORACLE_LOADER", line 19
according to this error "KUP-04062: no data source specified", location should be specified and i have specified the location as
LOCATION (<diectory_name>:' '),
then also it is giving the same error.
Please Help!I am also got the same error when retrieving the data from external table.
I resolve this problem, like this:
1. I imported the flat file(.csv) into repository.
2. Map that flat file fields to database table cols.
3. Deployed the mapping using controlcenter, and run the mapping.
4. if it fails there, i loaded the flatfile data through the command prompt using "sqlldr" statement and control file is our mapping control file.
5 Then it loaded data into database table sucessfully.
Thanks. -
Retriving data from backend tables
Hi All,
I have one requirement to retrive the data from backend tables.
Is there any code to retrive only the first row of table from backend.
Please provide me any solution for this.
Thanks in Advance!
Thanks & Regards,
Sreelakshmi.Hi,
create a remote enabled rfc with export parameter IT_RESULT TYPE ZSSHDR(transp. table).
use code :
DATA: itab type table of ZSSHDR .
select * from ZSSHDR into table itab .
Read table itab into it_result index 1.
in RFC.
use this rfc in ur DC.
Amit -
How to load Matrix report data into basic table data using ODI
Hi,
How to load Matrix report data into basic table data using oracle Data Integrator ?
Requirement Description:
Following is the matrix report data:
JOB DEPT10 DEPT20
ANALYST 6000
CLERK 1300 1900 Need to convert it into below format:
JOB Dept Salary
ANALYST DEPT10
ANALYST DEPT20 6000
CLERK DEPT10 1300
CLERK DEPT20 1900
Thanks for your help in advance. Let me know if any further explanation is required.Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
SELECT job as job,
deptsal as deptsal,
saldesc as saledesc
FROM pivoted_data
UNPIVOT (
deptsal --<-- unpivot_clause
FOR saldesc --<-- unpivot_for_clause
IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
INSERT INTO job_sales
(job,
deptsal,
saledesc
VALUES
:job,
:deptsal,
:saledesc
Therefore you are using bind variables from source to load data into target.
Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
INSERT INTO job_sales
(job,
deptsal,
saledesc
SELECT job as job,
deptsal as deptsal,
saldesc as saledesc
FROM pivoted_data
UNPIVOT (
deptsal --<-- unpivot_clause
FOR saldesc --<-- unpivot_for_clause
IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
Hope this helps.
BUT remember that this feature only came out in Oracle 11g. -
Error while reading data through External Table!!!
CREATE TABLE "COGNOS"."EXT_COGNOS_TBS9_TEST"
( "ITEM_DESC" VARCHAR2(200 BYTE),
"EXT_CODE" VARCHAR2(20 BYTE),
"RC_DATE" DATE,
"RES_KD_AMNT" NUMBER(18,3),
"RES_FC_AMNT" NUMBER(18,3),
"NRES_KD_AMNT" NUMBER(18,3),
"NRES_FC_AMNT" NUMBER(18,3),
"TOTAL" NUMBER(18,3),
"OF_WHICH_OVR1" NUMBER(18,3)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY "EXTDATADIR"
ACCESS PARAMETERS
( RECORDS
DELIMITED BY NEWLINE LOAD WHEN *({color:#ff0000}EXT_CODE LIKE 'TBS9%'{color})* FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL )
LOCATION
( 'TBS9_TEST.CSV'
External table creation went through successfully but am getting error while reading data. Am quite sure error is because of above line in red color. Could you please help me in transforming logic.
Thanks in Advance,
APLet's start with the basics...
1) You state that you are getting an error. What error do you get? Is this an Oracle error (i.e. ORA-xxxxx)? If so, please include the error number and the error message as well as the triggering statement. Or is the problem that rows are getting written to the reject file and errors are being written to the log file? If so, what record(s) are being rejected and what are the reasons given in the log file? Or perhaps the problem is something else?
2) You state that you are quite sure that the problem relates to the hilighted code. What makes you quite sure of this?
Justin -
Converting data through mapping table
Member names of account dimension in our Essbase will be changed totally.In Excel we have a mapping table which tells how new accounts corresponds to old accounts. Number of accounts is about 800.How this conversion procedure should technically be done? Can I exploit Excel table?Thanks,Jussi
Here is what I would do. In general terms create a couble of dimension build rules and text load files from your spreadsheet. First create a rule to add new members, being the altered accounts, but with a formula that just makes them equal to the old account ("old account";). Use your conversion spreadsheet for the columns, however, you need to add a column in front that shows the parent of the account, so that it knows where to put it. Build the dimension and run a calc all calculation, to populate the new members.Change the input file to remove the formulae and rebuild the dimension.Create a new text file of the old accounts with a parent "to be deleted", making sure the rule "allow moves" and do a dimension build.You will see a new parent "to be deleted" with all the old accounts underneath it. Just delete it manually in application manager. You may have problems with shared members, formulae, and filters that reference them, but they can be cleaned up after.
-
Hi,
We have AR Aging Trend report deployed and running. There is a requirement from the user that when the aging report is run for a particular date in the past the receivables value should remain the same. Example, lets say the user is running the report for 03/31/2009 as on April 14th and it will give 100 million as the receivable. If the user is running the same report for the same date 03/31/2009 on June 14th, it should give the same receivables 100 million.How can we model this kind of a scenario. We have posting date, net due date and closing dates available. We already have a formula variable referencing net due date and it is called the key date.
Regards
VijayYou need customer exit variables for doing that
Check this business content report 0FIAR_C03_Q0005
and this report 0FIAR_C02_Q0001
Check the SAP exit variables and how they did the coding. You requirement is similar to those reports. -
Accounts Receivable Report: Customer Wise Ageing Analysis report -FI module
Hi Gurus,
Can anyone help me in providing standard report(source code) or already done sample report(source code) for Accounts Receivable Report: Customer Wise Ageing AnalysisThis is in FI Module. Though it is FI Module we need to fetch details related to Sales Module, and the days should be <0 30 60 90 120 180 365 >365
It is urgent I need to deliver this report by this week end.
Please help me . Waiting for your reply.
Points Rewarded for help rendered and I would personally send a good gift if you can help me
Yours Truly,
Rajiv Christopher.
Edited by: Rajiv Christopher on Apr 2, 2008 11:33 AMHi,
i am attaching aging report.
see if this is useful to you.
REPORT ZFUS0102 MESSAGE-ID OA
LINE-SIZE 270.
Title: GR/IR AGING REPORT
Date: January 2001
TABLES: DISVARIANT, EKPO.
TYPE-POOLS: SLIS.
Tables
TABLES:
BSIS,
EKKO.
working table
DATA: BEGIN OF RTAB OCCURS 0,
HKONT LIKE BSIS-HKONT,
ZUONR LIKE BSIS-ZUONR,
BUDAT LIKE BSIS-BUDAT,
SHKZG LIKE BSIS-SHKZG,
DMBTR LIKE BSIS-DMBTR,
PRCTR LIKE BSIS-PRCTR,
END OF RTAB.
DATA: BEGIN OF WTAB OCCURS 0,
ZUONR(2) TYPE N,
PRCTR LIKE BSIS-PRCTR,
DAYS(4) TYPE P,
DMBTR LIKE BSIS-DMBTR,
END OF WTAB.
DATA: BEGIN OF PTAB OCCURS 0,
ZUONR(2),
PRCTR LIKE BSIS-PRCTR,
AMT30 LIKE BSIS-WRBTR,
AMT60 LIKE BSIS-WRBTR,
AMTPL LIKE BSIS-WRBTR,
TOTAL LIKE BSIS-WRBTR,
END OF PTAB.
PARAMETERS: COMPANY LIKE BSIS-BUKRS OBLIGATORY,
ACCT LIKE BSIS-HKONT OBLIGATORY,
DATE LIKE SY-DATUM OBLIGATORY.
SELECT-OPTIONS: S_EKORG FOR EKKO-EKORG.
PARAMETERS: P_VARI LIKE DISVARIANT-REPORT.
DATA: WS-AMT30 LIKE BSIS-WRBTR.
DATA: WS-AMT60 LIKE BSIS-WRBTR.
DATA: WS-AMTPL LIKE BSIS-WRBTR.
DATA: TITLE(21) VALUE 'GR/IR Aging Report'.
DATA: LIN TYPE I.
DATA: GX_VARIANT LIKE DISVARIANT,
G_VARIANT LIKE DISVARIANT.
DATA: LAYOUT TYPE SLIS_LAYOUT_ALV,
L_F TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
GROUP TYPE SLIS_T_SP_GROUP_ALV WITH HEADER LINE,
COLOR TYPE SLIS_T_SPECIALCOL_ALV WITH HEADER LINE.
DATA: LT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
LS_LINE TYPE SLIS_LISTHEADER,
T_EVENTS TYPE SLIS_T_EVENT.
CONSTANTS: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
INITIALIZATION.
PERFORM EVENTTAB_AUFBAUEN USING T_EVENTS[].
PERFORM VARIANT_INIT.
Get default variant
GX_VARIANT = G_VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
I_SAVE = 'A'
CHANGING
CS_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 0.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
PERFORM VARIANT_INPUTHELP_F14.
START-OF-SELECTION.
LS_LINE-TYP = 'S'.
WRITE SY-DATUM TO LS_LINE-INFO DD/MM/YY.
WRITE SY-UZEIT TO LS_LINE-INFO+10.
WRITE SY-UNAME TO LS_LINE-INFO+20.
WRITE TITLE TO LS_LINE-INFO+30.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
PERFORM FIELDS.
IF NOT P_VARI IS INITIAL.
PERFORM PAI_OF_SELECTION_SCREEN.
ELSE.
CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT'
EXPORTING
I_DIALOG = ' '
I_USER_SPECIFIC = 'A'
I_DEFAULT = ' '
I_TABNAME_HEADER =
I_TABNAME_ITEM =
IT_DEFAULT_FIELDCAT = L_F[]
I_LAYOUT = LAYOUT
IMPORTING
E_EXIT =
ET_FIELDCAT = L_F[]
ET_SORT =
ET_FILTER =
CHANGING
CS_VARIANT = DISVARIANT
EXCEPTIONS
WRONG_INPUT = 1
FC_NOT_COMPLETE = 2
NOT_FOUND = 3
PROGRAM_ERROR = 4
OTHERS = 5.
ENDIF.
Decide which tables to access.
PERFORM MAIN_SELECT.
MOVE TITLE TO LAYOUT-WINDOW_TITLEBAR.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'ZFUS0102'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = LAYOUT
IT_FIELDCAT = L_F[]
IT_SPECIAL_GROUPS = GROUP[]
I_SAVE = 'A'
IS_VARIANT = G_VARIANT
IT_EVENTS = T_EVENTS
TABLES
T_OUTTAB = PTAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
FORM FIELDS *
FORM FIELDS.
L_F-FIELDNAME = 'ZUONR'.
L_F-OUTPUTLEN = 6.
L_F-SELTEXT_L = 'SERIES'.
L_F-REPTEXT_DDIC = 'SERIES'.
L_F-REF_TABNAME = 'PTAB'.
L_F-SP_GROUP = 'A'.
APPEND L_F. CLEAR L_F.
L_F-FIELDNAME = 'PRCTR'.
L_F-OUTPUTLEN = 10.
L_F-SELTEXT_L = 'PROFIT CTR.'.
L_F-REPTEXT_DDIC = 'PROFIT CTR.'.
L_F-REF_TABNAME = 'PTAB'.
L_F-SP_GROUP = 'A'.
APPEND L_F. CLEAR L_F.
L_F-FIELDNAME = 'AMT30'.
L_F-SELTEXT_L = '30 DAYS'.
L_F-REPTEXT_DDIC = '30 DAYS'.
L_F-REF_TABNAME = 'PTAB'.
L_F-SP_GROUP = 'A'.
L_F-REF_TABNAME = 'BSIS'.
L_F-REF_FIELDNAME = 'WRBTR'.
L_F-DO_SUM = 'X'.
APPEND L_F. CLEAR L_F.
L_F-FIELDNAME = 'AMT60'.
L_F-SELTEXT_L = '60 DAYS'.
L_F-REPTEXT_DDIC = '60 DAYS'.
L_F-REF_TABNAME = 'PTAB'.
L_F-SP_GROUP = 'A'.
L_F-REF_TABNAME = 'BSIS'.
L_F-REF_FIELDNAME = 'WRBTR'.
L_F-DO_SUM = 'X'.
APPEND L_F. CLEAR L_F.
L_F-FIELDNAME = 'AMTPL'.
L_F-SELTEXT_L = '60+ DAYS'.
L_F-REPTEXT_DDIC = '60+ DAYS'.
L_F-REF_TABNAME = 'PTAB'.
L_F-SP_GROUP = 'A'.
L_F-REF_TABNAME = 'BSIS'.
L_F-REF_FIELDNAME = 'WRBTR'.
L_F-DO_SUM = 'X'.
APPEND L_F. CLEAR L_F.
L_F-FIELDNAME = 'TOTAL'.
L_F-SELTEXT_L = 'TOTAL'.
L_F-REPTEXT_DDIC = 'TOTAL'.
L_F-REF_TABNAME = 'PTAB'.
L_F-SP_GROUP = 'A'.
L_F-REF_TABNAME = 'BSIS'.
L_F-REF_FIELDNAME = 'WRBTR'.
L_F-DO_SUM = 'X'.
APPEND L_F. CLEAR L_F.
ENDFORM.
FORM MAIN_SELECT *
FORM MAIN_SELECT.
SELECT HKONT ZUONR BUDAT SHKZG DMBTR PRCTR
INTO TABLE RTAB
FROM BSIS
WHERE BUKRS = COMPANY
AND HKONT = ACCT.
IF SY-SUBRC = 0.
SORT RTAB.
PERFORM PROCESS_RTAB.
PERFORM PROCESS_WTAB.
ENDIF.
ENDFORM. " MAIN SELECT
FORM VARIANT_INPUTHELP_F14 *
FORM VARIANT_INPUTHELP_F14.
DATA: G_EXIT(1) TYPE C.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = G_VARIANT
I_SAVE = 'A' " g_save
it_default_fieldcat =
IMPORTING
E_EXIT = G_EXIT
ES_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 2.
MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF G_EXIT = SPACE.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
ENDIF.
ENDFORM.
FORM USER_COMMAND *
--> UCOMM *
--> SELFIELD *
FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE
SLIS_SELFIELD.
IF UCOMM EQ '&IC1'.
IF SELFIELD-TABINDEX <= 0.
MESSAGE S108.
EXIT.
ENDIF.
IF SELFIELD-SEL_TAB_FIELD CS 'LIFNR'.
SET PARAMETER ID 'LIF' FIELD SELFIELD-VALUE.
CALL TRANSACTION 'XK02'.
ELSE.
IF SELFIELD-SEL_TAB_FIELD CS 'VEND'.
SET PARAMETER ID 'LIF' FIELD SELFIELD-VALUE.
CALL TRANSACTION 'FBL1'.
ENDIF.
ENDIF.
CLEAR SY-UCOMM. CLEAR UCOMM.
ENDIF.
ENDFORM.
FORM TOP_OF_PAGE *
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = LT_TOP_OF_PAGE.
ENDFORM.
FORM EVENTTAB_AUFBAUEN *
--> P_T_EVENTS *
FORM EVENTTAB_AUFBAUEN USING P_T_EVENTS TYPE SLIS_T_EVENT.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = P_T_EVENTS.
READ TABLE P_T_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO P_T_EVENTS.
ENDIF.
ENDFORM. " EVENTTAB_AUFBAUEN
FORM PAI_OF_SELECTION_SCREEN *
FORM PAI_OF_SELECTION_SCREEN.
IF NOT P_VARI IS INITIAL.
MOVE G_VARIANT TO GX_VARIANT.
MOVE P_VARI TO GX_VARIANT-VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
I_SAVE = 'A' " g_save
CHANGING
CS_VARIANT = GX_VARIANT.
G_VARIANT = GX_VARIANT.
ELSE.
PERFORM VARIANT_INIT.
ENDIF.
ENDFORM. " PAI_OF_SELECTION_SCREEN
FORM VARIANT_INIT *
FORM VARIANT_INIT.
CLEAR G_VARIANT.
G_VARIANT-REPORT = 'ZFUS0102'.
ENDFORM. " VARIANT_INIT
*& Form PROCESS_RTAB
text
--> p1 text
<-- p2 text
FORM PROCESS_RTAB.
DATA TLNS TYPE I.
DESCRIBE TABLE S_EKORG LINES TLNS.
LOOP AT RTAB.
IF TLNS GT 0.
SELECT SINGLE EKORG FROM EKKO INTO EKKO-EKORG
WHERE EBELN = RTAB-ZUONR(10).
CHECK EKKO-EKORG IN S_EKORG.
ENDIF.
IF NOT RTAB-BUDAT > DATE.
MOVE RTAB-ZUONR(2) TO WTAB-ZUONR.
COMPUTE WTAB-DAYS = DATE - RTAB-BUDAT.
IF RTAB-SHKZG = 'H'.
WTAB-DMBTR = RTAB-DMBTR * -1.
ELSE.
WTAB-DMBTR = RTAB-DMBTR * 1.
ENDIF.
MOVE RTAB-PRCTR TO WTAB-PRCTR.
APPEND WTAB.
ENDIF.
ENDLOOP.
FREE RTAB.
ENDFORM. " PROCESS_RTAB
*& Form PROCESS_WTAB
text
--> p1 text
<-- p2 text
FORM PROCESS_WTAB.
SORT WTAB BY ZUONR PRCTR DAYS.
LOOP AT WTAB.
PTAB-ZUONR = WTAB-ZUONR.
PTAB-PRCTR = WTAB-PRCTR.
AT END OF DAYS.
SUM.
IF WTAB-DAYS > 60.
WS-AMTPL = WS-AMTPL + WTAB-DMBTR.
ELSE.
IF WTAB-DAYS > 30.
WS-AMT60 = WS-AMT60 + WTAB-DMBTR.
ELSE.
WS-AMT30 = WS-AMT30 + WTAB-DMBTR.
ENDIF.
ENDIF.
ENDAT.
AT END OF PRCTR.
PTAB-AMTPL = WS-AMTPL.
PTAB-AMT30 = WS-AMT30.
PTAB-AMT60 = WS-AMT60.
COMPUTE PTAB-TOTAL = PTAB-AMTPL + PTAB-AMT30 + PTAB-AMT60.
APPEND PTAB.
WS-AMTPL = 0.
WS-AMT30 = 0.
WS-AMT60 = 0.
ENDAT.
ENDLOOP.
SORT PTAB BY ZUONR PRCTR.
ENDFORM. " PROCESS_WTAB
regards,
Sindhu -
Hi,
Using smart sync project how to insert data in backend table ?
Regards,
Sunaina Reddy THi Shrikanth,
Please go through the below link: It will address most of your queries.
http://help.sap.com/saphelp_nw2004s/helpdata/en/4c/7862a6642eab40ac7abf34e9048c93/frameset.htm
Hope you find it useful,
Poornima -
Report data needs to populate into another App
Hi Gurus,
Is there any possibility to populate the OBIEE report data into siebel tables?
Task is like this...we are using some other application as source,when a user executes the a report on Dashboard the result of the report needs to be loaded into the appropriate tables in siebel dynamically or through some back end process.. to store it as list in siebel List management.
If any one encountered similar kind of issue, please tell me the steps to achieve this?
Thanks in Advance..I dont have that much command on EIM to guide you, but you have to follow EIM process to update Siebel source tables.
EIM uses control files to load data in tables but we can go for Informatica,this would help to track load errors and more data validations.
First reach out your Siebel dev team regarding the same based on their suggestion you can for Informatica or control files.
Hope this helps -
How to submit a report ,Passing the internal tables from parent report
How to submit a report ,Passing the internal tables from the parent report ?
The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which
calls another report. Can only execute reports of type '1'.
*Code used to execute a report
SUBMIT Zreport.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
with p_param2 = 'value'.
Other additions for SUBMIT
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
*Example Code (Retrieving list from memory)
DATA BEGIN OF itab_list OCCURS 0.
INCLUDE STRUCTURE abaplist.
DATA END OF itab_list.
DATA: BEGIN OF vlist OCCURS 0,
filler1(01) TYPE c,
field1(06) TYPE c,
filler(08) TYPE c,
field2(10) TYPE c,
filler3(01) TYPE c,
field3(10) TYPE c,
filler4(01) TYPE c,
field4(3) TYPE c,
filler5(02) TYPE c,
field5(15) TYPE c,
filler6(02) TYPE c,
field6(30) TYPE c,
filler7(43) TYPE c,
field7(10) TYPE c,
END OF vlist.
SUBMIT zreport EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab_list
EXCEPTIONS
not_found = 4
OTHERS = 8.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = vlist
listobject = itab_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc NE '0'.
WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
ENDIF.
Submit report as job
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif. -
Attachment through interface table (OE_HEADERS_IFACE_ALL)
Dear,
i have make customization in Order Management Module
currently i am loading data through interface tables i.e
OE_HEADERS_IFACE_ALL
OE_LINES_IFACE_ALL
now, a new requirement is generated by the management to make the attachment in the customized application. User will write the long text in the text field and after the interface table has been processed through ORDER IMPORT request. text will be saved in the attachment tables i.e
fnd_documents_short_text
fnd_documents_tl
fnd_documents
fnd_attached_documents
Kindly Guide,
RegardsSee Add Attachement to Sales Order
Sandeep Gandhi -
Hello guru's
I have a requirment like when i execute bw report that report data should be called to crm.
1.Please tell me which functional module to be used or suggest me any procedure.
2.Tell me how to populate the report data into a table.And can we pull that bw table data into crm z table
Help me..
Thanks
VenkatHi Venkat,
For 2 point:
if you are in release < 3.5 you can use Tcode RSCRM_BAPI to produce a flat file from a query in CSV format.
if you are already in => 3.5 you can check for APD.
You can also use Openhub-InfoSpoke to produce flat file to feed other SAP systems.
Ciao.
Riccardo. -
How to select data of sap tables through oracle backend
I need to fetch the data from oracle Backend for SAP tables. I am new to this and don't know how to work in this manner, so can you please tell me step-by-step procedure for the same.
Can you please help me, and can suggest for teh solution.
Rgds, Krishan Raheja.> However, at my customer site they have some legacy systems which fetch data from SAP tables of the central ECC prod system using dblinks. Of course we have restricted the access to that user giving only select access. But still I think this is a major security concern. But is there any other way of doing it?
Well, the legacy systems you mentioned should use a proper data interface instead of direct data structure (e.g. table) access instead.
Something like RFC-calls for example.
Or a XI-connector.
Or a Web-Service.
Or ... or ... or ...
There are in fact many options.
Just acessing the tables is by far the worst option to go.
At the very least, I'd use views to ensure that only the required data is visible via this dblink and that the access structure (that is, how the views look like) remain the same, even if the SAP application changes in the background.
Even better would be to provide PL/SQL access procedures.
That way the legacy application could use a procedure call and wouldn't have to deal with the SAP table design.
regards,
Lars -
Ageing report place in which table
Hi All,
Customer Ageing report stores in which table?I know customer records will be extracted from BSID. but i needed the ageing report output feeds in which table or feild?Dear Remya,
If you are asking for aging buckets ex <=30, 31- 60 , 61-180 days , these information are calculated on real time, based on formula , i dont think so it is stored in tables ,
Formula for this will be , Baseline date + payment terms days = Net Due date ,then Net due Date - Open item date (for which report is executed ) will be the Net due days, which will be shown in respective buckets.
kindly let me know if you need any more details.
thanks and regards
Praveen.J
Maybe you are looking for
-
Retrieving Freezed and Unfreezed data from a Single Report
Dear All, I have a requirement where we have 2 types of users. 1. End User and 2. Super User 3. Intermediate Users We have source system data which will be retieved on a daily basis. Here Super user freeze the data ramdomly. We need a report to be ge
-
Looking for a specific applications for iphone
I heard there's an application that you can use as a remote control for your home audio. It's supposed to let you select music from your itunes to play on home speakers. Does anyone know what it's called.
-
How to expand the hierarchy column automatically when delivery reports by a
Hi Experts, In OBIEE 11.1.1.6.0,how to expand the hierarchy column automatically when delivery reports by agent? For example: In SampleLite RPD, when we drag "Time Hierarchy" and Sales column into the report , and sent it by agent ,it will only displ
-
My ipod touch can't be found when I run a diagnostic test, on 3 different computers!
I have a 64GB 4th generation iPod touch for about a year and half now, but suddenly when I plug it into my computer, it will begin charging but it won't show up in devices under itunes. When I ran a diagnostic test, it says my ipod can't be found. I
-
Select tree node in tree component
hi, i am developing a web site which has a site map as a tree component, the sitemap is a inserted in a page fragment, users could click tree nodes to go to corresponding pages. also on other pages, i have next and previous buttons which allow users