Currency BAM is not in Table TCURR transaction were moved to table PTRV_CCC
Hi Team,
we have problem , still we are maintaining currency BAM not in TCURR table but when we upload the data credit card details
system shows error message " Currency BAM is not in Table TCURR transaction were moved to table PTRV_CCC for correctionot
we are maininting Exchaqnge rate like below
GBP to BAM
can any one guide me where is the Mistake ,
thanks
Ranamka
Hi,
To resolve this error, you will need the exchange rate defined in the TCURR table (ob08). Once defined, sap will just validate that it exists in teh system. The real exchange rate will be what Diner provides so the employees will see the correct GBP amount and the exchange rate from Diner (not from what you define in TCURR) and so the reimbursement in CAD will match what Diner is billing the employee.
Depending on your config, the exchange rate field should be grayed out for credit card charges so that employees cannot change it and so the amounts will always match the billed amount.
Hope this helps.
Sal
Similar Messages
-
Currenc BAM (bosnia) is not in Table TCURR
Hi Team,
we have problem , still we are maintaining BAM currency in TCURR table but when we upload the data credit card details
system shows error message " Currency BAM is not in Table TCURR transaction were moved to table PTRV_CCC for correction
we are maininting Exchaqnge rate like below
GBP to BAM
can any one guide me where is the Mistake ,
thanks
Ranamkahi,
Please check the "exchange rate type" M, E, etc, if that´s the same using in TM in configuration
BR
Monica Ordaz -
Unable to descripe the table and unable to drop the table
Hi,
I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script.
Some how while I am trying to drop the table manually got hanged, There after I could not find that table in dba_objects, dba_tables or any where.
But Now I am unable to create that table manually(Keep on running the create command with out giving any error), Even I am not getting any error (keep on running )if I give drop/desc of table.
Can you please any one help on this ? Is it some where got stored the table in DB or do we any option to repair the table ?
SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME like 'TEMP%';
no rows selected
SQL> desc temp
Thank in advance.Hi,
if this table drops then it moved DBA_RECYCLEBIN table. and also original name of its changed automatically by oracle.
For example :
SQL> create table tst (col varchar2(10), row_chng_dt date);
Table created.
SQL> insert into tst values ('Version1', sysdate);
1 row created.
SQL> select * from tst ;
COL ROW_CHNG
Version1 16:10:03
If the RECYCLEBIN initialization parameter is set to ON (the default in 10g), then dropping this table will place it in the recyclebin:
SQL> drop table tst;
Table dropped.
SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
2 from recyclebin
SQL> /
OBJECT_NAME ORIGINAL_NAME TYPE UND PUR DROPTIME
BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST TABLE YES YES 2013-10-08:16:10:12
All that happened to the table when we dropped it was that it got renamed. The table data is still there and can be queried just like a normal table:
SQL> alter session set nls_date_format='HH24:MI:SS' ;
Session altered.
SQL> select * from "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
COL ROW_CHNG
Version1 16:10:03
Since the table data is still there, it's very easy to "undrop" the table. This operation is known as a "flashback drop". The command is FLASHBACK TABLE... TO BEFORE DROP, and it simply renames the BIN$... table to its original name:
SQL> flashback table tst to before drop;
Flashback complete.
SQL> select * from tst ;
COL ROW_CHNG
Version1 16:10:03
SQL> select * from recyclebin ;
no rows selected
It's important to know that after you've dropped a table, it has only been renamed; the table segments are still sitting there in your tablespace, unchanged, taking up space. This space still counts against your user tablespace quotas, as well as filling up the tablespace. It will not be reclaimed until you get the table out of the recyclebin. You can remove an object from the recyclebin by restoring it, or by purging it from the recyclebin.
SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
2 from recyclebin
SQL> /
OBJECT_NAME ORIGINAL_NAME TYPE UND PUR DROPTIME
BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST TABLE YES YES 2006-09-01:16:10:12
SQL> purge table "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
Table purged.
SQL> select * from recyclebin ;
no rows selected
Thank you
And check this link:
http://www.orafaq.com/node/968
http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm
Thank you -
Prcc error Currency GBP is not in table TCURR
Hi,
While importing the credit card transaction using PRCC for canadian employyees an error message was obtained "Currency GBP is not in table TCURR".
In the table V_PTRV_CCC i can see that there is the orignal GBP amount and also the excahange rate and converted CAD amount.
There is no GBP to CAD conversion rate in table TCURR.
My question is why do we need to have entry in table TCURR when Diner credit card is providing the excahnge rate and converted amount?
How to fix this problem.
Thank You!Hi,
To resolve this error, you will need the exchange rate defined in the TCURR table (ob08). Once defined, sap will just validate that it exists in teh system. The real exchange rate will be what Diner provides so the employees will see the correct GBP amount and the exchange rate from Diner (not from what you define in TCURR) and so the reimbursement in CAD will match what Diner is billing the employee.
Depending on your config, the exchange rate field should be grayed out for credit card charges so that employees cannot change it and so the amounts will always match the billed amount.
Hope this helps.
Sal -
PRCC Error - Currency HUF is not in table TCURR
Hi,
while running PRCC to update credit card charges i am receiving an error "Currency HUF is not in table TCURR". But if i check TCURR its updated. Is there any config in Travel which need to be done for this.
Regards,
Hariohi,
Please check the "exchange rate type" M, E, etc, if that´s the same using in TM in configuration
BR
Monica Ordaz -
Table AFRU, Transaction CO11N, confirmation not released?
Hi Gurus,
this question is regarding confirmation numbers (AFRU or other tables) and transaction CO11N.
can you help me in with problem (Test condition)?
Send notifications of not released orders.
my question is how? what table? field? transaction? anything. can someone explain me this? i made an FM that simulates CO11N and it is one of the test conditions.
ThanksHi,
Your question is not understood. Can you please explain a bit more. If you question is purely Functional, Please post the same in Functional Forum. -
Find customers IN, NOT IN from two transaction tables using DAX
I have two identical fact (sales) tables in Power Pivot. I need to classify customers in 3 categories.
Existing in both tables
Existing exclusively in table 1
Existing exclusively in table 2
What approach do I choose? UNION both the tables in model or keep them as separate tables? Also, what code is to be written to classify the customers in these 3 categories? I need to do Power View reporting on the categories - Distinct Customers, SalesAmt,
Sales Volume etc.
Thanks, Ashish SinghTry these sollutions:
1.You can append both tables using Power Query ad-in. Even if a list of customers change in any of your tables you will not have to manually correct them in model. Refreshing Power Query table allow to have always updated data in model. Also if both tables
are differ but have a common column as "customers" that's enough to get appendable list of customers. Power Query allows to get distinct values without duplicates. Created table can be linked as a table to your Powerpivot model. No measures are nessesary.
You should receive a simple table with distinct customers names. Lets call it "List of all custumers"
To receive exclucive lists create relations between Table1 and Table2 using "List of all custumers". Now you can use all you need in one pivot table.
2. You can do the same without Power Querry but your data will not be autmaticaly refresh. Appendable table with customers list can be created manualy. This case also not require any formulas or measures.
Of course you can also try Greg's solution
Gordonik -
Foreign Currency Difference is not getting posted.
Co. Code Currency is EURO, but the document is posted in USD and when the payement is made thru F-53 in EURO, the system shows that difference is too large to post.
Invoice in USD 1629
payment made in Euros 1225
Generally the tolerance the limit is set for 1% or max 5%, but since in this case the difference is much large......... is changing the tolerance setting for vendors and customers at Co Code level is the only way to solve this issue??Hi,
I am not getting whther you defined all the currencies and exchange rates in table TCURR,did u checked and if its correct then u have the alternative is foregin currency valuation.let me know
REgards,
SAtya -
ECM: Currency Exchange Rate - Rate Type in TCURR
Does anyone know if the Rate Type that ECM uses to do currency conversions in ECM can be changed?
Standard ECM functionality uses rate type "M" from TCURR, my client would like to use rate type "P" from table TCURR.
Thanks
TonyThe exchange rate type 'M' is hardcoded in the function call 'HR_ECM_CONVERT_CURRENCY'. I don't think there is an option to change the rate type without modifying SAP code.
function hr_ecm_convert_currency.
*"*"Local interface:
*" IMPORTING
*" VALUE(OLD_AMOUNT) TYPE P
*" REFERENCE(OLD_CURRE) TYPE WAERS
*" REFERENCE(NEW_CURRE) TYPE WAERS
*" REFERENCE(CONVERSION_DATE) TYPE DATUM
*" REFERENCE(MESSAGE_HANDLER) TYPE REF TO IF_HRPA_MESSAGE_HANDLER
*" EXPORTING
*" VALUE(NEW_AMOUNT) TYPE P
*" REFERENCE(IS_OK) TYPE BOOLE_D
data: char_date(10) type c.
is_ok = true.
clear new_amount.
check not old_amount is initial.
if old_curre = new_curre.
new_amount = old_amount.
exit.
endif.
call function 'CONVERT_TO_LOCAL_CURRENCY'
exporting
date = conversion_date
foreign_amount = old_amount
foreign_currency = old_curre
local_currency = new_curre
type_of_rate = 'M' "<---- hardcoded here
importing
local_amount = new_amount
exceptions
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
others = 5.
if sy-subrc <> 0.
is_ok = false.
write conversion_date to char_date.
call function 'HR_ECM_ADD_MESSAGE'
exporting
message_handler = message_handler
msgty = error_msg
msgid = hrecm00service
msgno = '006'
msgv1 = old_curre
msgv2 = new_curre
msgv3 = char_date.
exit.
endif.
endfunction.
~Suresh -
Excise modvat accounts not defined for CAPE transaction and TS excise group
Hi Guys,
Suddenly we are facing issue during exicse invoice capturing with MIGO
system is giving following error
"Excise modvat accounts not defined for CAPE transaction and TS excise group
Message no. 8I402
While in Excise account assignment table CAPE is Linked to Modvat Clearing Account which is further liked to correct GL
Can any one explain the cause of this issue Points will be awarded
Regards,
AshishHi
Pls maintain the following:
1. SPRO->Logistics General -> Tax on Goods Movements -> India -> Account Determination -> Specify Excise Accounts per Excise Transaction
Pls note the Sub Tansaction type is IP for ETT CAPE.
ETT <b>Sub Trn Type</b> DC Ind Account Name
CAPE IP CR Credit ONHOLD CENVAT on hold account
CAPE IP DR Debit ONHOLD CENVAT on hold account
CAPE IP DR Debit RG23AED RG 23 AED account
CAPE IP DR Debit RG23BED RG 23 BED account
CAPE IP DR Debit RG23SED RG 23 SED account
CAPE IP DR Debit RG23ECS RG 23 ECS account
2. SPRO->Logistics General -> Tax on Goods Movements -> India -> Account Determination -> Specify G/L Accounts per Excise Transaction
Check the G/L accounts for Excise Transaction Type CAPE and maintain the same G/L accounts for ETT CAPE with <b>Sub Trn Type IP</b>.
Hope this clarifies.
Thanks -
ZSD_TABLE is not defined in the ABAP dictionary as a table"
Hello,
I created zsd_table and inserted few records
When i use this table in program system is giving error message "ZSD_TABLE is not defined in the ABAP dictionary as a table"
How can we define this table in ABAP dictionary?
ThanksHi,
Go to Transaction SE11
Give the table name 'ZSD_TABLE'
and click on create and enter the fileds
after entering fields give 'techinical setting' for a table by clicking on technical setting button on tool bar
save check and activate
Regards
Krishna -
I am getting the following error when attempting to INSERT the results of an "EXEC(@MDXQuery) at SSAS LinkedServer":
The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.
Here is code that illustrates what I am doing:
DECLARE @MDX varchar(max);
SET @MDX='
SELECT
[Measures].[Extended Service Count]
} ON COLUMNS,
NON EMPTY [Organization].[By Manufacturer].[Manufacturer]
ON ROWS
FROM (
SELECT
{[Organization].[Org Tree].&[2025],[Organization].[Org Tree].&[2040]} ON 0
FROM [MyCube]
/* Test 1 */
EXECUTE(@MDX) at SSASLinkedServer;
/* Test 2 */
DECLARE @ResultsB TABLE (
Manufacturer varchar(255)
, ExtendedServiceCount float
INSERT INTO @ResultsB (Manufacturer, ExtendedServiceCount) EXECUTE(@MDX) at SSASLinkedServer;
Test 1 succeeds, returning expected results, and Test 2 fails returning the error mentioned above.
Other articles I've found so far don't seem to apply to my case. I am not creating any explicit transactions in my code. When I use OPENQUERY, I am able to do the insert just fine, but not when I use EXEC @MDX at LinkedServer.
Unfortunately in some variations of the query, I run into the 8800 character limit on OPENQUERY, so I need to use this other approach.
Any ideas?
-Tab AllemanHi Tab,
In this case, SQL Server Analysis Services doesn’t support Distributed Transactions by design. Here is a similar thread about this issue for your reference, please see:
http://social.technet.microsoft.com/Forums/en-US/8b07be45-01b6-49d4-b773-9f441c0e44c9/olaplinked-server-error-msolap-for-linked-server-olaplinked-server-does-not-support-the?forum=sqlanalysisservices
One workaround is that use SQLCMD to execute the EXEC AT command and saved the results to a file, then import using SSIS.
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support -
SWI5 transaction - is there a table view ?
Hi
I am trying to pull a report of outstanding approval inbox items (TS1230097 - for leave requests) that I see when I go to tcode SWI5 for managers. If I run a report it does not give me the manager id in it which I need.
Is there a table view for SWI5 information possibly or can anyone suggest another transaction that can be used to see the current manager associated with outstanding leave request items (when I use various SWI* or PTARQ reports they do not show me the current manager in situations in which leave request items have been forwarded to new managers and so are unreliable. I'm just wondering if there's any other report/transaction I can use therefore.
Thanks for your help
NicolaHi,
Nicola paste this code in se38 and execute it.
TYPE-POOLS : slis.
TABLES : swwuserwi,swwwihead,bseg,bkpf.
TYPE DECLARATION *************************************
TYPES : BEGIN OF TY_SWWUSERWI,
USER_ID TYPE SWWUSERWI-USER_ID,
WI_ID TYPE SWWUSERWI-WI_ID,
TASK_OBJ TYPE SWWUSERWI-TASK_OBJ,
END OF TY_SWWUSERWI.
TYPES : BEGIN OF TY_SWWWIHEAD,
WI_ID TYPE SWWWIHEAD-WI_ID,
WI_LANG TYPE SWWWIHEAD-WI_LANG,
WI_TEXT TYPE SWWWIHEAD-WI_TEXT,
WI_RHTEXT TYPE SWWWIHEAD-WI_RHTEXT,
WI_STAT TYPE SWWWIHEAD-WI_STAT,
WI_CD TYPE SWWWIHEAD-WI_CD,
WI_CT TYPE SWWWIHEAD-WI_CT,
END OF TY_SWWWIHEAD.
TYPES : BEGIN OF TY_TEMP,
BUKRS TYPE BUKRS,
BELNR TYPE BELNR_D,
GJAHR TYPE GJAHR,
END OF TY_TEMP.
TYPES : BEGIN OF TY_BSEG,
BUKRS TYPE BSEG-BUKRS,
BELNR TYPE BSEG-BELNR,
GJAHR TYPE BSEG-GJAHR,
WRBTR TYPE BSEG-WRBTR,
LIFNR TYPE BSEG-LIFNR,
ZUONR TYPE CHAR10,
END OF TY_BSEG.
TYPES : BEGIN OF TY_CEPC,
PRCTR TYPE CEPC-PRCTR,
ABTEI TYPE CEPC-ABTEI,
END OF TY_CEPC.
TYPES : BEGIN OF TY_BKPF,
BUKRS TYPE BKPF-BUKRS,
BELNR TYPE BKPF-BELNR,
GJAHR TYPE BKPF-GJAHR,
BLDAT TYPE BKPF-BLDAT,
BUDAT TYPE BKPF-BUDAT,
XBLNR TYPE BKPF-XBLNR,
END OF TY_BKPF.
TYPES : BEGIN OF TY_LFA1,
LIFNR TYPE LFA1-LIFNR,
NAME1 TYPE LFA1-NAME1,
END OF TY_LFA1.
TYPES : BEGIN OF TY_FINAL,
USER_ID TYPE SWWUSERWI-USER_ID,
WI_ID TYPE SWWUSERWI-WI_ID,
BUKRS TYPE BSEG-BUKRS,
WI_TEXT TYPE SWWWIHEAD-WI_TEXT,
WRBTR TYPE BSEG-WRBTR,
BELNR TYPE BELNR_D,
LIFNR TYPE LFA1-LIFNR,
NAME1 TYPE LFA1-NAME1,
BLDAT TYPE BKPF-BLDAT,
XBLNR TYPE BKPF-XBLNR,
GJAHR TYPE GJAHR,
ABTEI TYPE CEPC-ABTEI,
BUDAT TYPE BKPF-BUDAT,
END OF TY_FINAL.
DATA TYPE DECLARATION *************************************
DATA : it_swwuserwi TYPE STANDARD TABLE OF ty_swwuserwi,
it_swwwihead TYPE STANDARD TABLE OF ty_swwwihead,
it_final TYPE STANDARD TABLE OF ty_final,
it_temp TYPE STANDARD TABLE OF ty_temp,
it_bseg TYPE STANDARD TABLE OF ty_bseg,
it_cepc TYPE STANDARD TABLE OF ty_cepc,
it_bkpf TYPE STANDARD TABLE OF ty_bkpf,
it_lfa1 TYPE STANDARD TABLE OF ty_lfa1,
wa_swwuserwi TYPE ty_swwuserwi,
wa_swwwihead TYPE ty_swwwihead,
wa_final TYPE ty_final,
wa_bseg TYPE ty_bseg,
wa_cepc TYPE ty_cepc,
wa_bkpf TYPE ty_bkpf,
wa_lfa1 TYPE ty_lfa1,
wa_temp TYPE ty_temp.
DATA: wa_sort TYPE LINE OF slis_t_sortinfo_alv,
it_sort TYPE slis_t_sortinfo_alv.
DATA: it_field_cat TYPE slis_t_fieldcat_alv,
ws_sort TYPE slis_t_sortinfo_alv,
g_variant TYPE disvariant,
ws_layout TYPE slis_layout_alv."slis_t_fieldcat_alv.
DATA: IT_EVT_TAB TYPE SLIS_T_EVENT,
IS_LS_EVENT TYPE SLIS_ALV_EVENT.
DATA: C_TOP TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
IS_EVT TYPE SLIS_ALV_EVENT .
DATA: REC_LAYOUT TYPE SLIS_LAYOUT_ALV.
*rec_layout TYPE lvc_s_layo.
DATA: IS_LS_LINE TYPE SLIS_LISTHEADER,
IT_TOP TYPE SLIS_T_LISTHEADER.
DATA: TEXT(60) TYPE C,
text1 TYPE char10,
text2 TYPE char20,
text3 TYPE char20,
ebeln TYPE char10,
year TYPE char4.
DATA: user TYPE SY-uname.
DATA: lang TYPE sww_lang VALUE 'EN',
c_x TYPE char1 VALUE 'X',
C_FLAG TYPE CHAR1 VALUE IS INITIAL,
status1 TYPE sww_wistat VALUE 'READY',
status2 TYPE sww_wistat VALUE 'STARTED'.
INPUT OPTIONS ***********************************************
INITIALIZATION.
DATA: C_PF_STAT TYPE SLIS_FORMNAME VALUE 'PF_STAT',
C_USERC TYPE SLIS_FORMNAME VALUE 'PURVESH',
C_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
PARAMETERS : USERID LIKE USREFUS-BNAME MODIF ID 001.
SELECT-OPTIONS : COMP FOR BSEG-BUKRS NO INTERVALS.
SELECT-OPTIONS : YEAR1 FOR BSEG-GJAHR NO INTERVALS.
SELECT-OPTIONS : DOC FOR BSEG-BELNR.
SELECT-OPTIONS : VEND FOR BSEG-LIFNR NO INTERVALS.
SELECT-OPTIONS : DAT FOR BKPF-BUDAT.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR userid.
PERFORM f4_help_fname.
*& Form F4_HELP_FNAME
text
--> p1 text
<-- p2 text
FORM F4_HELP_FNAME .
data: begin of itab occurs 0,
BNAME like USREFUS-BNAME,
USERALIAS like USREFUS-USERALIAS,
end of itab .
select BNAME
USERALIAS
from USREFUS into corresponding fields of table itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BNAME'
dynpprog = SY-repid
dynpnr = SY-dynnr
dynprofield = 'USERID'
value_org = 'S'
TABLES
value_tab = ITAB.
*IF sy-subrc 0.
*ENDIF.
ENDFORM. " F4_HELP_FNAME
**********************************************START - OF - SELECTION*******************************************
START-OF-SELECTION.
PERFORM init.
PERFORM buildfieldcat.
PERFORM displayalv.
END-OF-SELECTION.
*& Form INIT
text
--> p1 text
<-- p2 text
FORM INIT .
IF USERID IS NOT INITIAL.
SELECT USER_ID
WI_ID
TASK_OBJ
INTO TABLE IT_SWWUSERWI
FROM SWWUSERWI
WHERE USER_ID = USERID AND NO_SEL NE c_x.
endif.
IF IT_SWWUSERWI IS NOT INITIAL.
SELECT WI_ID
WI_LANG
WI_TEXT
WI_RHTEXT
WI_STAT
WI_CD
WI_CT
INTO TABLE IT_SWWWIHEAD
FROM SWWWIHEAD
FOR ALL ENTRIES IN IT_SWWUSERWI
WHERE WI_ID = IT_SWWUSERWI-WI_ID AND WI_LANG = lang.
IF IT_SWWWIHEAD IS NOT INITIAL.
LOOP AT IT_SWWWIHEAD INTO WA_SWWWIHEAD.
SPLIT WA_SWWWIHEAD-WI_TEXT AT SPACE INTO TEXT TEXT1 TEXT2.
WA_TEMP-BUKRS = TEXT2+0(4).
WA_TEMP-BELNR = TEXT2+4(10).
WA_TEMP-GJAHR = TEXT2+14(4).
APPEND WA_TEMP TO IT_TEMP.
CLEAR : WA_TEMP.
ENDLOOP.
LOOP AT IT_SWWUSERWI INTO WA_SWWUSERWI.
READ TABLE IT_SWWWIHEAD INTO WA_SWWWIHEAD WITH KEY WI_ID = WA_SWWUSERWI-WI_ID WI_LANG = lang.
WA_FINAL-USER_ID = WA_SWWUSERWI-USER_ID.
WA_FINAL-WI_ID = WA_SWWUSERWI-WI_ID.
WA_FINAL-WI_TEXT = WA_SWWWIHEAD-WI_TEXT.
APPEND WA_FINAL TO IT_FINAL.
CLEAR : WA_FINAL,WA_SWWWIHEAD,WA_SWWUSERWI,WA_TEMP,WA_BSEG,WA_BKPF,WA_LFA1,WA_CEPC.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_final.
ENDIF.
ENDFORM. " INIT
*& Form DISPLAYALV
text
--> p1 text
<-- p2 text
FORM DISPLAYALV .
REC_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
REC_LAYOUT-ZEBRA = 'X'.
REC_LAYOUT-F2CODE = SY-REPID.
REC_LAYOUT-WINDOW_TITLEBAR = 'Workitem summery'. "#EC NOTEXT
REC_LAYOUT-COLTAB_FIELDNAME = 'COLOR'.
REC_LAYOUT-DETAIL_TITLEBAR = 'Workitem Summery'. "#EC NOTEXT
WS_LAYOUT-ColWIDTH_OPTimize = 'X'.
WS_LAYOUT-ZEBRA = 'X'.
wa_sort-tabname = 'IT_FINAL'.
wa_sort-fieldname = 'USER_ID'.
wa_sort-spos = 9.
wa_sort-subtot = 'X'.
APPEND wa_sort to it_sort.
CLEAR wa_sort.
PERFORM GET_EVT_UP.
PERFORM alv_text.
PERFORM top_of_page.
*rec_layout-grid_title = 'Report for WI Analysis'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = c_pf_stat
I_CALLBACK_USER_COMMAND = C_USERC
I_CALLBACK_TOP_OF_PAGE = C_TOP_OF_PAGE
i_grid_title = text-024
is_layout = rec_layout
it_fieldcat = it_field_cat
it_sort = it_sort
I_DEFAULT = 'X' "allow default variant
i_save = 'A'
is_variant = g_variant
IT_EVENTS = IT_EVT_TAB
TABLES
t_outtab = it_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " DISPLAYALV
*& Form build_catalog
text
-->P_TABNAME text
-->P_FIELDNAME text
-->P_DO_SUM text
-->P_SELTEXT text
-->P_X text
-->P_Y text
FORM build_catalog USING p_tabname TYPE slis_fieldcat_alv-tabname
p_fieldname TYPE slis_fieldcat_alv-fieldname
p_do_sum TYPE slis_fieldcat_alv-do_sum
p_seltext TYPE slis_fieldcat_alv-seltext_l
p_x TYPE c
p_y TYPE c.
DATA : wa_fieldcat TYPE slis_fieldcat_alv,
pos TYPE i VALUE 0.
pos = pos + 1.
wa_fieldcat-col_pos = pos.
wa_fieldcat-tabname = p_tabname.
wa_fieldcat-fieldname = p_fieldname.
wa_fieldcat-do_sum = p_do_sum .
wa_fieldcat-seltext_l = p_seltext.
wa_fieldcat-HOTSPOT = p_x.
wa_fieldcat-fix_column = p_y.
APPEND wa_fieldcat TO it_field_cat .
CLEAR wa_fieldcat.
ENDFORM. "build_catalog
*& Form PURVESH
text
-->L_UCOMM text
-->W_SELFIELD text
FORM PURVESH USING L_UCOMM TYPE SY-UCOMM W_SELFIELD TYPE SLIS_SELFIELD ."#EC CALLED
BREAK AAB_PURVESH.
CASE L_UCOMM.
IF USERID IS NOT INITIAL.
user = userid.
ELSE.
user = sy-uname.
ENDIF.
WHEN '&IC1' or 'ZWORK_LOAD'.
READ TABLE IT_FINAL INTO WA_FINAL INDEX W_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
IF user NE SY-UNAME.
CALL FUNCTION 'SAP_WAPI_FORWARD_WORKITEM'
EXPORTING
WORKITEM_ID = WA_FINAL-WI_ID
USER_ID = SY-UNAME
LANGUAGE = SY-LANGU
DO_COMMIT = 'X'
CURRENT_USER = user.
IMPORTING
RETURN_CODE =
NEW_STATUS =
TABLES
MESSAGE_LINES =
MESSAGE_STRUCT =
USER_IDS =
ENDIF.
CALL FUNCTION 'SAP_WAPI_EXECUTE_WORKITEM'
EXPORTING
WORKITEM_ID = WA_FINAL-WI_ID
LANGUAGE = SY-LANGU
IMPORTING
NEW_STATUS =
RETURN_CODE =
TABLES
MESSAGE_LINES =
MESSAGE_STRUCT =
DELETE IT_FINAL WHERE WI_ID = WA_FINAL-WI_ID.
PERFORM displayalv.
ENDIF.
ENDCASE.
ENDFORM. "PURVESH
*& Form GET_EVT_UP
text
--> p1 text
<-- p2 text
FORM GET_EVT_UP .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = IT_EVT_TAB
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
SORT IT_EVT_TAB BY NAME.
READ TABLE IT_EVT_TAB WITH KEY NAME = SLIS_EV_TOP_OF_PAGE INTO IS_LS_EVENT BINARY SEARCH.
IF SY-SUBRC = 0.
MOVE C_TOP TO IS_LS_EVENT-FORM.
MODIFY IT_EVT_TAB FROM IS_LS_EVENT INDEX SY-TABIX TRANSPORTING FORM.
ENDIF.
READ TABLE IT_EVT_TAB INTO IS_EVT WITH KEY NAME = SLIS_EV_USER_COMMAND BINARY SEARCH.
IF SY-SUBRC EQ 0.
IS_EVT-FORM = 'PURVESH'.
MODIFY IT_EVT_TAB FROM IS_EVT TRANSPORTING FORM WHERE NAME = IS_EVT-NAME.
ENDIF.
ENDIF.
ENDFORM. " GET_EVT_UP
*& Form ALV_TEXT
text
--> p1 text
<-- p2 text
FORM ALV_TEXT .
CLEAR IS_LS_LINE.
IS_LS_LINE-TYP = 'H'.
IS_LS_LINE-INFO = 'Workload Analysis Report'. "#EC NOTEXT
APPEND IS_LS_LINE TO IT_TOP.
WRITE: 'RunDate:' TO TEXT,
SY-DATUM TO TEXT+10,
', Time :' TO TEXT+20, "#EC NOTEXT
SY-UZEIT TO TEXT+27,
', User :' TO TEXT+38, "#EC NOTEXT
SY-UNAME TO TEXT+46.
IS_LS_LINE-TYP = 'S'.
IS_LS_LINE-INFO = TEXT.
APPEND IS_LS_LINE TO IT_TOP.
CLEAR TEXT.
ENDFORM. " ALV_TEXT
*& Form TOP_OF_PAGE
text
--> p1 text
<-- p2 text
FORM TOP_OF_PAGE .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_TOP.
using this code specify only buildfieldcatalog and there is a custom inbox ready for you
here you can specify userid and from alv report you can execute workitem of any user.
Hope magic Works!
Regards,
Purvesh. -
What is the exact purpose of Transaction NACE and NAST Table?
Hi All,
What is the exact purpose of Transaction NACE and NAST Table?
Pls help me
Akshitha.Hi
When a Output type in an apllication doc is configured with a Medium, Partner, Lang and other communication paramters an entry is created in NAST table
so to trigger the output an entry in NAST is compulsory
Output is a link between the Driver Program and the Sapscript,
An output type summarizes messages of the same meaning. It contains parameters that are valid for all its assigned messages, for example appropriate partner functions.
Transmission medium is a medium which the layout will be come out, this may be printout, Fax or Mail
Check this link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/19884743b111d1896f0000e8322d00/content.htm
ex-how to config output type.
You will assign output types using Transaction NACE.
Do the follow steps to assign output type
1)Select Application Type V2 which will have description Shipping.
2)Click on Output types button.
3)Go to change mode by pressing Ctrl+F4.
4)Select one output type which already exists
5)Do Copy As(F6)
6)Give your output type against Output Type field.
7)Under General data Tab, Give Program and Form routine and Save the data.
i think it a work of functional guy but at senior level i think it is not a big deal for abaper.
Check the following documentation
In NACE t-codewe have the application for each one. based on the application output type can be defined, based on output type script and print progrma can be defined.
If suppose data can be read from EDI then we should go for condition records.
So whenever we execute the script first composer checks the output type and then execute the program. in program whenever opn form FM will be populate then script will open first. After that again program till another FM will populate if it then script will populate........like it is cycle proces. Composer does all these things and at last it will submit that output to spool.
Go to the Transaction NACE.
choose the related sub module.. like billing or shipping
doubel click on Output Types
Choose the Output Type for which whcih you wanted your script to trigger
Then select the Output Type and double click on Processing Routine
Then go to create new entries--> Select the Medium (1- print output), then enter your Script and Print Program detls --> Save and come out
Now go to the Transaction (for which you have created the output type)... Issue output--> Select the output type --> Print....
Device Types for SAP Output Devices (Detail Information)
Definition
The device type indicates the type of printer to be addressed. When you define an output device, choose the name of the device type that was defined in the SAP System for your printer model, such as Post2 for a PostScript printer. In the case of frontend printing under Microsoft Windows, you can also use the generic (device-independent) device type SWIN.
The system uses the information in the device type to convert a document from the internal SAP character representation (spool request in OTF or in text format) to a device-specific, print-ready data stream (output request). Since a device type specifies attributes that apply to all devices of a certain model, it can be shared among device definitions. For example, all devices in the SAP spool system that are compatible with Hewlett-Packard LaserJet IIID printers would use the HPLJIIID device type.
You should not confuse the device type with the printer driver. The device type is the total of all attributes of an output device that the SAP System must know to control the output device correctly, such as control commands for font selection, page size, character set selection, and so on. These attributes also include the printer driver that SAPscript/Smart Forms (the SAP form processor) should use for this printer. The SAPscript printer driver that is to be used for devices of this type for output formatting is therefore only an attribute that the device type specifies.
How do I choose the correct device type?
In most cases, the SAP System already provides the appropriate device type for the printer type for the printer model that you want to use.
These standard device types are completely defined and need no modification or extension before you use them in device definitions.
You can also download missing device types from the sapserv server. For a current list of the supported device types, see SAP Note 8928 in the SAP Service Marketplace.
Most printers can be controlled using a generic format, such as PostScript. They can be switched to a mode that is compatible with one of the standard printers for which an SAP device type is available. In this case, a supported model is emulated.
Almost all printers are delivered with Microsoft Windows printer drivers. The system can control these printers with the generic (device-independent) device type SWIN. The Microsoft Windows spool system then performs the processing of the print data.
If the specified device types are not available, and generic device types cannot be used, you must create your own device type or edit a copy of an existing device type. We recommend that only those with specialist knowledge of the SAP Spool System and printer driver code do this. For more information, see Defining a New Device Type .
Attributes of a Device Type
A device type is distinguished by the attributes listed below. If you change an existing device type or create a new device type, you must change at least some of these attributes.
Character set: A character set specifies the codes with which characters must be represented in the print-ready output stream (output request). This code replaces the generic SAP characters set that is used internally by the SAP spool system (spool request).
Printer driver: You can specify different printer drivers for printing SAPscript documents and ABAP lists.
Print controls: Print controls represent printer operations, such as boldface or changing the font size. These print control are replaced by printer-specific commands during the creation of the output request from a spool request.
Formats: Formats specify the format supported by the SAP system. The system differentiates between SAPScript formats (DINA4 and LETTER) and ABAP list formats (X_65_132 = 65 rows/132 columns).
Page format: A page format is the interface between a format and SAPscript. It specifies the paper dimensions with which SAPScript can calculate the row and column lengths.
Actions: Actions are output device-specific commands that are required for the implementation of a format. The action printer initialization, for example, can contain a printer command with which the number of rows on a page is defined. There is a set of actions for every format supported by a device type.
Reward points for useful Answers -
List of tables n transaction in CRM
Hi All,
Am new to CRM and in learning process. Can u please give me a list of tables n transactions generally used in CRM.
**Points will be awarded
Thanks a lot in advance
AjayDear Ajay,
BUT000 : BP: General data
BUT020 BP: Addresses
BUT050 BP relationships/role definitions: General data
BUT051 BP Relationship: Contact Person Relationship
Similar to BUT050 , additionally contains Contact Persons Address data
BUT0BK Business Partner: Bank Data & Details
BNKA Bank Master Data
BUT100 BP: Roles
ADR2 Telephone Numbers (Business Address Services)
ADR6 SMTP Numbers (Business Address Services)
ADRC Addresses (Business Address Services)
TSAD3T Table containing the Title text against a Title No.
COMM_PRODUCT Master Table for Product
CRMM_BUAG Master table for Business Agreement
CRMM_BUAG_H Header Data for Business Agreement such as Tax Category, Tax Characteristic, Form key, Business Agreement Class. Data in this table correspond to ISU CRMD_ORDERADM_H Contains the Header Information for a Business Transaction.
Note:
1. It doesnt store the Business Partner
responsible for the transaction. To
get the Partner No, link it with
CRM_ORDER_INDEX.
2. This table can be used for search
based on the Object Id(Business
Transaction No).
CRMD_CUSTOMER_H Additional Site Details at the Header Level of a Business Transaction
CRMC_PROC_TYPE Master table Business Transaction Type
CRMC_PARTNER_FCT Definition of Partner Functions
SCPRIOT Priorities for Activities with priority text.
CRMC_PROC_TYPE_T Text for a transaction type
CRMC_ACT_OBJ_T Objective Number and Text for Activities
TJ30T All the status code and text
CRMC_PR_ASSIGN : Transaction Type and its Transaction Type Object.
IBIB : Installed Base/Ibase
IBIN : Installed Base Components
Hope this will help.
Regards,
Naveen.
Maybe you are looking for
-
I have cleared the cache, reset cookies, etc. Nothing has worked. I can access these sites in Google Chrome but historically have used Firefox as my default browser. Should I switch to Google Chrome or is there a software fix?
-
Any word on when Telenav will be reads
http://www.telenav.com/ Is there any other speaking navigation solution out there?
-
Does the LAN port really work for wired internet?
Ok. So I've seen this question asked, but nobody ever seems to come back and say "great, it worked!". If I have my AEBS connected to my DSL modem via the WAN port, Set up with my PPPOE info and set to distribute IP addressess and WDS on, can it also
-
I can't find anywhere on this ...internet one example of :
a simple web service build in JAX RPC , wich has everything not with a missing servlet and other surprises ,like a hello world not something complicated, if someone knows please write, Thanks
-
Error while installing cucm 10.5.2 at migration using pcd
Dear All , i am doing a migration from 8.0.3 on MCS to 10.5.2 on UCS while the migration task . i got this error