Module to which a table belongs to
Hi all,
How do we determine to which module a table belongs to?
Ex: Having gone thru SAP docs I know that MARA is a part of MM module. But is it possible to look at the an attribute in a table and determine the module to which it belongs to?
Hi Sam,
I don't think we can find out what is the module directly by looking at a table.
But there is an indirect way. You can open the table in SE11, go to the Attributes tab and check the package.
E.g. for VBAK, package is VA and a description 'Application development R/3 Sales' is given next to it.
Similarly for MARA, package is MG and a description 'Application development R/3 material master' is given.
Hope this helps.
Regards,
Sameer
Similar Messages
-
Which table belong to which table
Wanted to know which table belongs to which tablespace or datafile.
example table name - ABC
Facing problem ORA-01653: unable to extend table ABC but no tablespace is mentionedRicha wrote:
Wanted to know which table belongs to which tablespace or datafile.
example table name - ABC
Facing problem ORA-01653: unable to extend table ABC but no tablespace is mentionedSELECT TABLESPACE_NAME FROM USER_TABLES WHERE TABLE_NAME = 'ABC'; -
I wanted to create a module pool which accepts a table n flag
i wanted to create a module pool which accepts a table n flag.
and based on flasg value it allows the table to get into edit or display mode.
the table has to use table control to display for user
and it should be able to edit the table as well as append if the flag value is edit.
the table which has been change should be passed back.HI Shailesh ,
On your screen which contains the table control , you can definately put the flag . Now use 2 conditions , one for change n other for display mode .Initialize the value of the flag to be "X" and based on the flag valu design your table .
lets say u have a screen 0100 ,
at the begining put FLAG = 'X'.
lets say , this is for your change screen .
then loop at the table control and allow the fields for fields input . all you should do in the PBO only .
next in PAI , fill the table control with the changed values .
and in PAI , in AT-user command module , code for the flag ( / push button ) . and pass the values when the user clicks on the button .or else here you can check whether the value of the flag is "X" ( for change mode ) or " " .
if it is " " then loop at the screen and make all the fields inactive for input ( Display mode )
Inactivation of the fields should be done in the PBO based on the conditions .
Revert back if you need further clarification .
This logic should definately work .
Reward if helpful .
Thanks
Ranjita -
IN which SAP tables Email id is stored
In which sap tables Email Id is stored
You really shouldn't worry about that. Use the access functions instead.
If you are thinking about the e-mail address for a user, use the function module BAPI_USER_GET_DETAIL.
If you are thinking about the e-mail address for an employee (which is not stored in the same table), one solution is to use BAPI_EMPLCOMM_GETLIST and look for an entry with subtype 10 (this one is SAP standard I believe) or any custom subtype which should hold e-mail address. -
Workflow attchment data stored in which SAP Tables
Hi,
In Leave workflow when approver rejects it the approver(Agent) provide the reason for rejection as an attachment.
I have to send the external mail to the employee.
I am able to send the mail with fixed information, however unable to extract the information from attachment ( want to know in which SAP Tables say SW* this information is stored) or any other solution.
Help Please.
Praveen JainYou really shouldn't worry about that. Use the access functions instead.
If you are thinking about the e-mail address for a user, use the function module BAPI_USER_GET_DETAIL.
If you are thinking about the e-mail address for an employee (which is not stored in the same table), one solution is to use BAPI_EMPLCOMM_GETLIST and look for an entry with subtype 10 (this one is SAP standard I believe) or any custom subtype which should hold e-mail address. -
Which CRM table stores the release quantity and target quantity
I found one table named CRMD_SCHEDLIN, one field is Quantity, is it the target quantity or not? If not, which CRM tables stores this info?
Thanks!H Tracy,
As far as i could find the table CRMD_SCHEDLIN is the only table which stores quantity. the sum quantities of each line item gives you the target quantity of the order i think.
Please check the source code of function module CRM_SCHEDLIN_I_GET_ORD_QTY_OW you may get soem idea.
Thanks,
Rajini A. -
Module pool to maintiane table ztavble
hi
can anyone send me complete code to refer for maintaining a ztable
following validation are required like
1) sortiing
deletein and addition save etc all as in table maintianece i need to code by module pool becasue in table maintainece sorting coding is not possible...
also validation are
1) whne user enters ship to info name 1 should automatically be populated from kna1 on pressing enter how to acheive this by module pool
2) email verification format should be correct? how to acheive this by module pool
3) sorting on basis of all fields
regards
NishantHi Nishanth,,,
I also developed the same kind of Program for maintaining the Ztable...
Jus create a new GUI Staus...with the required functions....
Refer the below code:
REPORT : Z0BRAP_TAX_EXCEPTION .
TITLE : Tax Exceptions Table
AUTHOR : Swaminathan PJ
DATE : 04/12/2006
DDN NUMBER : SAP-BR-TB0020
TRANSPORT REQUEST NUMBER : D12K912309
REFERENCE :
DESCRIPTION
Program Z0BRAP_TAX_EXCEPTION is an Report program to update the table
ZTBRAP_TAX_EXCPT,here user can Create/Change/Display the table entrie
s and can perform the following functions (Filter,Sort,Summation and
Subtotal).
AMENDMENTS
CHANGES REF DATE PERSON Tran.Req. Number
DESCRIPTION:
Include for Global Declarations *
INCLUDE: znbrap_tax_exception_top. " Include for Global Declarative elements
Include
All the subroutines are include
INCLUDE znbrap_tax_exception. " Include for all Subroutines
START OF SELECTION
START-OF-SELECTION.
Main Subroutine
PERFORM procMain.
End of Selection *
END-OF-SELECTION.
INCLUDE : ZNBRAP_TAX_EXCEPTION_TOP
TITLE : Data Declarations
AUTHOR :
DATE : 04.12.2006
TRANSPORT REQUEST NUMBER : D12K912309
DESCRIPTION
Global Data Declarations for Z0BRAP_TAX_EXCEPTION
AMENDMENTS
CHANGES REF DATE PERSON Tran.Req. Number
DESCRIPTION:
ALV Declarations
TYPE-POOLS: slis.
Types contains the structure of the table
*TYPES : BEGIN OF gy_tax_exception.
INCLUDE STRUCTURE ztbrap_tax_excpt.
mandt TYPE mandt,
zmonat TYPE monat,
zbukrs TYPE bukrs,
zlifnr TYPE lifnr,
zexctype TYPE zebrap_exctype,
zstcd1 TYPE stcd1,
zaugdt_other TYPE budat,
zbelnr TYPE belnr,
zdmbtr TYPE dmbtr,
zwhtinssca TYPE dmbtr,
zuserch TYPE syuname,
zdate_change TYPE datum,
ztime_change TYPE uzeit,
*TYPES: END OF gy_tax_exception.
Tables for the structure defined above
*TYPES : gy_tax_exception_tab TYPE STANDARD TABLE OF gy_tax_exception.
Internal Table
DATA: gt_tax_excpt_tab TYPE STANDARD TABLE OF ztbrap_tax_excpt WITH HEADER LINE, "Global internal table for Tax exceptions data
gt_fieldcat TYPE slis_fieldcat_alv OCCURS 0 WITH HEADER LINE. "Global internal table for fieldcat
*& Include ZNBRAP_TAX_EXCEPTION *
*& Form procMain
text
--> p1 text
<-- p2 text
FORM procMain .
Set PF-Status
perform procInitialize.
Select Tax Exceptions Data
perform procGetTaxExceptionsData.
Display ALV Report with Tax Exceptions Data
perform procDisplayTaxExceptionsData.
ENDFORM. " procMain
FORM initialize *
form procInitialize.
CONSTANTS :
lc_pfstatus TYPE abnkr VALUE 'ZTAX_EXCEPTION'. "Pf Status
Set status
set pf-status lc_pfstatus.
endform. "procInitialize
FORM retrieve_data *
Retrieve data from SAP *
form procGetTaxExceptionsData.
REFRESH: gt_tax_excpt_tab.
select * from ztbrap_tax_excpt
appending corresponding fields of table gt_tax_excpt_tab.
endform. "procGetTaxExceptionsData
Called by REUSE_ALV_GRID_DISPLAY when user interacts. *
In this case, there are a number of buttons / menu options for *
user to select for non-standard functions: *
o Single Display *
o Single Change *
o Single create *
o Single Delete *
--> lv_ucomm *
--> LW_SELFIELD *
form user_command using lv_ucomm like sy-ucomm
lw_selfield type slis_selfield.
Work area
DATA: lw_update_tax_excpt TYPE ztbrap_tax_excpt. " work area for tax exceptions data
DATA: lw_tax_exception TYPE ztbrap_tax_excpt. " work area for tax exceptions data
Variables
DATA: lv_key TYPE abkrs , "key fields
lv_non_key TYPE abkrs, "Non Key Fields
lv_insert TYPE ablnv, "Insert
lv_change TYPE ablnv, "Change
lv_entry TYPE ablnv, "Popup title
lv_display TYPE ablnv, "Display
lv_delete TYPE ablnv, "Delete
lv_mode TYPE ablnv . "Menu options
Constants
CONSTANTS:
lc_new TYPE alind VALUE 'ZNEW', "Fcode for new
lc_update TYPE alind VALUE 'ZBR', "Fcode for change
lc_view TYPE alind VALUE 'ZDISP', "Fcode for display
lc_delete TYPE alind VALUE 'ZDEL ', "Fcode for delete
lc_show_field TYPE abkrs VALUE '00', "Show field
lc_hide_field TYPE abkrs VALUE '02'. "Hide field
Clear Local Work Area
CLEAR :
lw_update_tax_excpt.
Clear Local Variables
CLEAR :
lv_key,
lv_non_key,
lv_mode,
lv_insert,
lv_delete,
lv_change,
lv_display.
Retrieve data for selected line & store it in a temp structure.
READ TABLE gt_tax_excpt_tab index lw_selfield-tabindex .
if sy-subrc is not initial and lv_ucomm <> lc_new and lv_ucomm(6) <> 'DELETE'.
message w123(m&). " Position the cursor on a valid line
exit.
endif.
Moving the contents to workarea
MOVE gt_tax_excpt_tab-zmonat TO lw_update_tax_excpt-zmonat.
MOVE gt_tax_excpt_tab-zbukrs TO lw_update_tax_excpt-zbukrs.
MOVE gt_tax_excpt_tab-zlifnr to lw_update_tax_excpt-zlifnr.
MOVE gt_tax_excpt_tab-zexctype to lw_update_tax_excpt-zexctype.
MOVE gt_tax_excpt_tab-zstcd1 to lw_update_tax_excpt-zstcd1.
MOVE gt_tax_excpt_tab-zaugdt_other to lw_update_tax_excpt-zaugdt_other.
MOVE gt_tax_excpt_tab-zbelnr to lw_update_tax_excpt-zbelnr.
MOVE gt_tax_excpt_tab-zdmbtr to lw_update_tax_excpt-zdmbtr.
MOVE gt_tax_excpt_tab-zwhtinssca to lw_update_tax_excpt-zwhtinssca.
MOVE gt_tax_excpt_tab-zuserch to lw_update_tax_excpt-zuserch.
MOVE gt_tax_excpt_tab-zdate_change to lw_update_tax_excpt-zdate_change.
MOVE gt_tax_excpt_tab-ztime_change to lw_update_tax_excpt-ztime_change.
Move the text for Add,Change,Display
Move text-019 To lv_insert.
Move text-020 To lv_change.
Move text-021 To lv_display.
Move text-023 To lv_delete.
Now see which button / menu option user has selected
case lv_ucomm.
when lc_view. "Display a single entry
lv_mode = lv_display.
lv_key = lc_hide_field. "hide key fields
lv_non_key = lc_hide_field. "hide non key fields
perform procFindKeyFields
using lw_update_tax_excpt lv_mode lv_insert lv_delete
lv_change lv_display lv_key lv_non_key lw_selfield.
when lc_update . "Update a single entry (show non-key fields)
lv_mode = lv_change.
lv_key = lc_hide_field. "hide key fields
lv_non_key = lc_show_field. "show non-key fields
perform procFindKeyFields
using lw_update_tax_excpt lv_mode lv_insert lv_delete
lv_change lv_display lv_key lv_non_key lw_selfield.
when lc_new. "Add a single new entry (show all fields)
lv_mode = lv_insert.
lv_key = lc_show_field.
lv_non_key = lc_show_field.
clear lw_update_tax_excpt. "Empty structure to give new entry.
perform procFindKeyFields
using lw_update_tax_excpt lv_mode lv_insert lv_delete
lv_change lv_display lv_key lv_non_key lw_selfield.
WHEN lc_delete. " Delete current entry
lv_mode = lv_delete.
lv_key = lc_hide_field.
lv_non_key = lc_hide_field.
perform procFindKeyFields
using lw_update_tax_excpt lv_mode lv_insert lv_delete
lv_change lv_display lv_key lv_non_key lw_selfield.
endcase.
endform. "user_command
FORM procFindKeyFields *
--> lw_tax_excpt *
--> lw_update_tax_excpt *
--> lv_ret *
form procFindKeyFields using lw_update_tax_excpt structure ztbrap_tax_excpt
lv_mode
lv_insert
lv_delete
lv_change
lv_display
lv_key
lv_non_key
lw_selfield type slis_selfield.
Work area
DATA:lw_key_table TYPE dfies occurs 0 with header line, "Work area for for key fields
lw_tax_excpt TYPE sval occurs 0 with header line. "Work area for tax exceptions data
Variables
DATA: lv_ret TYPE char1, "Return parameter
lv_title TYPE text60, "Popup title
lv_excpt_type TYPE ZEBRAP_EXCTYPE, "Exception type
lv_entry TYPE ablnv, "Popup text
lv_vendor TYPE lifnr, "Vendor
lv_vendor_no TYPE lifnr, "Vendor
lv_co_code TYPE bukrs, "Company code
lv_comp_code TYPE bukrs, "Company code
lv_answer TYPE aavis. "Return parameter
Constants
CONSTANTS:
lc_ref_tab TYPE ablnv VALUE 'T001', "Reference table
lc_ref_fld TYPE ablnv VALUE 'WAERS', "Reference field
lc_hide_fld TYPE abkrs VALUE '04', "Hide field
lc_client TYPE amert VALUE 'MANDT', "Client
lc_user TYPE amert VALUE 'ZUSERCH', "User
lc_date TYPE amert VALUE 'ZDATE_CHANGE', "Date
lc_time TYPE amert VALUE 'ZTIME_CHANGE', "Time
lc_taxno TYPE amert VALUE 'ZSTCD1', "Tax Number
lc_vendor TYPE amert VALUE 'ZLIFNR', "Vendor
lc_exception_typ TYPE amert VALUE 'ZEXCTYPE', "Exception type
lc_clearing_dt TYPE amert VALUE 'ZAUGDT_OTHER', "Clearing date
lc_period TYPE amert VALUE 'ZMONAT', "Period
lc_co_code TYPE amert VALUE 'ZBUKRS', "Company code
lc_gross_amt TYPE amert VALUE 'ZDMBTR', "Gross amount
lc_excpt_amt TYPE amert VALUE 'ZWHTINSSCA', "Exception amount
lc_period_def TYPE abkrs VALUE '00', "Default value for period
lc_amount_def TYPE amert VALUE '0.00', "Default value for amount
lc_date_def TYPE amert VALUE '00000000', "Default value for date
lc_exctype_mf TYPE abkrs VALUE 'MF', "Exception type value
lc_exctype_gr TYPE abkrs VALUE 'GR', "Exception type value
lc_field_obl TYPE aavis VALUE 'X', "Obligatory
lc_cancel TYPE aavis VALUE 'X', "Obligatory
lc_return TYPE aavis VALUE 'A', "Return parameter
lc_mandatory TYPE aavis VALUE '?', "Mandatory
lc_space TYPE abkrs VALUE ' ', "Space
lc_notsupported TYPE agitt VALUE 1, "Exception for FM
lc_others TYPE agitt VALUE 2, "Exception for FM
lc_error TYPE agitt VALUE 1, "Exception for FM
lc_confirm TYPE agitt VALUE 1, "Exception for FM
lc_text TYPE agitt VALUE 1, "Exception for FM
lc_start_column TYPE abkrs VALUE '50', "Start column
lc_start_row TYPE aavis VALUE '7', "Start column
lc_tabname TYPE amert VALUE 'ZTBRAP_TAX_EXCPT', "Table name,
lc_column TYPE SY-CUCOL VALUE 25, "Start column
lc_row TYPE SY-CUROW VALUE 6. "Start row
Clear Local Work Area
CLEAR :
lw_tax_excpt,
lw_key_table .
Clear Local Variables
CLEAR :
lv_ret,
lv_title,
lv_excpt_type,
lv_vendor,
lv_vendor_no,
lv_co_code,
lv_comp_code,
lv_answer.
Field symbol
field-symbols: <lf_tax_excpt>, "Tax exceptions values
<lf_tax_excpt_value>.
Move the text for entry
Move text-022 To lv_entry.
REFRESH lw_tax_excpt.
lw_tax_excpt-field_obl = lc_field_obl.
lw_tax_excpt-tabname = lc_tabname.
Determine which are key fields in the table. This is necessary to
control which fields are available for display
call function 'GET_KEY_FIELDS_OF_TABLE'
EXPORTING
tabname = lw_tax_excpt-tabname
mandt_needed = lc_field_obl
TABLES
key_fieldtab = lw_key_table
EXCEPTIONS
not_supported = lc_notsupported
others = lc_others.
if sy-subrc is not initial.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
loop at gt_fieldcat.
case gt_fieldcat-fieldname.
Supress fields you don't want to show
when lc_client or lc_user or lc_date or lc_time.
when OTHERS.
READ TABLE lw_key_table with key fieldname = gt_fieldcat-fieldname.
if sy-subrc is initial.
lw_tax_excpt-field_attr = lv_key.
lw_tax_excpt-field_obl = lc_field_obl.
else.
lw_tax_excpt-field_attr = lv_non_key.
lw_tax_excpt-field_obl = lc_space.
endif.
lw_tax_excpt-fieldname = gt_fieldcat-fieldname.
assign component lw_tax_excpt-fieldname of
structure lw_update_tax_excpt to <lf_tax_excpt>.
lw_tax_excpt-value = <lf_tax_excpt>.
lw_tax_excpt-fieldtext = gt_fieldcat-seltext_l.
Remove the condition obligatory
IF lw_tax_excpt-fieldname = lc_taxno.
lw_tax_excpt-field_obl = lc_space.
ENDIF.
append lw_tax_excpt.
endcase.
endloop .
Appending the reference table and field for amount field
if lv_mode = lv_insert.
lw_tax_excpt-tabname = lc_ref_tab.
lw_tax_excpt-fieldname = lc_ref_fld.
lw_tax_excpt-field_attr = lc_hide_fld.
append lw_tax_excpt.
endif.
IF lv_mode NE lv_delete.
Show selected entry
CONCATENATE lv_mode lv_entry INTO lv_title SEPARATED BY space.
do.
call function 'POPUP_GET_VALUES'
EXPORTING
popup_title = lv_title
start_column = lc_start_column
start_row = lc_start_row
IMPORTING
returncode = lv_ret
TABLES
fields = lw_tax_excpt
EXCEPTIONS
error_in_fields = lc_error
others = lc_others.
Exit if Error, Display or Delete
if sy-subrc is not initial or lv_ret = lc_return
or lv_mode = lv_display
or lv_mode = lv_delete..
exit.
endif.
Validate fields involved in ADDING NEW ENTRY
IF lv_mode = lv_insert . "ADD new Entry
Validate the field Period
READ TABLE lw_tax_excpt with key fieldname = lc_period.
IF lw_tax_excpt-value EQ lc_period_def.
PERFORM procWarnuser USING text-001 text-003 .
CONTINUE.
ENDIF.
Validate the field Company code
READ TABLE lw_tax_excpt with key fieldname = lc_co_code.
lv_co_code = lw_tax_excpt-value.
select single bukrs from t001 into lv_comp_code
where bukrs = lv_co_code.
IF sy-subrc is not initial.
PERFORM procWarnuser USING text-001 text-028 .
CONTINUE.
ENDIF.
Validate the field Vendor
READ TABLE lw_tax_excpt with key fieldname = lc_vendor.
lv_vendor = lw_tax_excpt-value.
select single lifnr from lfa1 into lv_vendor_no
where lifnr = lv_vendor.
IF sy-subrc is not initial.
PERFORM procWarnuser USING text-001 text-024 .
CONTINUE.
ENDIF.
Store the value of exception type in a variable
READ TABLE lw_tax_excpt with key fieldname = lc_exception_typ.
lv_excpt_type = lw_tax_excpt-value.
Validate the field Tax number1 other entities
READ TABLE lw_tax_excpt with key fieldname = lc_taxno.
IF lv_excpt_type EQ lc_exctype_mf or lv_excpt_type EQ lc_exctype_gr.
IF lw_tax_excpt-value EQ space.
PERFORM procWarnuser USING text-001 text-002 .
CONTINUE.
ENDIF.
ENDIF.
Validate the field Clearing date
READ TABLE lw_tax_excpt with key fieldname = lc_clearing_dt.
IF lw_tax_excpt-value EQ lc_date_def.
PERFORM procWarnuser USING text-001 text-004.
CONTINUE.
ENDIF.
Validate the field Gross amount
READ TABLE lw_tax_excpt with key fieldname = lc_gross_amt.
condense lw_tax_excpt-value no-gaps.
IF lw_tax_excpt-value EQ lc_amount_def OR
lw_tax_excpt-value EQ space.
PERFORM procWarnuser USING text-001 text-005.
CONTINUE.
ENDIF.
Validate the field Exception amount
READ TABLE lw_tax_excpt with key fieldname = lc_excpt_amt.
condense lw_tax_excpt-value no-gaps.
IF lw_tax_excpt-value EQ lc_amount_def OR
lw_tax_excpt-value EQ space.
PERFORM procWarnuser USING text-001 text-006.
CONTINUE.
ENDIF.
delete lw_tax_excpt index 10.
ENDIF.
all checks successful !!!!
exit.
enddo.
endif.
IF lv_mode EQ lv_delete.
CONCATENATE lv_mode lv_entry INTO lv_title SEPARATED BY space.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = lv_title
text_question = text-025
TEXT_BUTTON_1 = text-026
TEXT_BUTTON_2 = text-027
DISPLAY_CANCEL_BUTTON = lc_space
START_COLUMN = lc_column
START_ROW = lc_row
IMPORTING
ANSWER = lv_answer
EXCEPTIONS
TEXT_NOT_FOUND = lc_text
OTHERS = lc_others
IF sy-subrc is not initial.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Need to pop-out of the sub if "cancel" was selected
if lv_ret = lc_return or lv_mode = lv_display.
exit.
endif.
copy contents of pop-up back into structure
loop at lw_tax_excpt.
check lw_tax_excpt-value <> lc_mandatory.
assign component lw_tax_excpt-fieldname
of structure lw_update_tax_excpt to <lf_tax_excpt_value>.
<lf_tax_excpt_value> = lw_tax_excpt-value.
endloop.
update the database accordingly.
case lv_mode.
when lv_insert. "Insert
Give other required field values
lw_update_tax_excpt-mandt = sy-mandt. "Client
lw_update_tax_excpt-zuserch = sy-uname. "User
lw_update_tax_excpt-zdate_change = sy-datum. "Date
lw_update_tax_excpt-ztime_change = sy-uzeit. "Time
INSERT into ztbrap_tax_excpt values lw_update_tax_excpt.
message s036(zmbrap).
WHEN lv_change. "Change
Give other required field values
lw_update_tax_excpt-mandt = sy-mandt. "Client
lw_update_tax_excpt-zuserch = sy-uname. "User
lw_update_tax_excpt-zdate_change = sy-datum. "Date
lw_update_tax_excpt-ztime_change = sy-uzeit. "Time
MODIFY ztbrap_tax_excpt FROM lw_update_tax_excpt. "Update record
message s037(zmbrap).
WHEN lv_delete. "Delete
IF lv_answer = lc_confirm.
DELETE FROM ztbrap_tax_excpt WHERE
zmonat = lw_update_tax_excpt-zmonat AND
zbukrs = lw_update_tax_excpt-zbukrs AND
zlifnr = lw_update_tax_excpt-zlifnr AND
zexctype = lw_update_tax_excpt-zexctype AND
zstcd1 = lw_update_tax_excpt-zstcd1 AND
zaugdt_other = lw_update_tax_excpt-zaugdt_other AND
zdmbtr = lw_update_tax_excpt-zdmbtr AND
zwhtinssca = lw_update_tax_excpt-zwhtinssca.
message s038(zmbrap).
ENDIF.
endcase.
Now do refresh ...
if sy-subrc is not initial.
rollback work.
message e033(zmbrap).
else.
perform procGetTaxExceptionsData.
commit work.
perform procGetTaxExceptionsData.
lw_selfield-refresh = lc_field_obl.
lw_selfield-col_stable = lc_field_obl.
lw_selfield-row_stable = lc_field_obl.
endif.
endform. "procFindKeyFields
FORM procDisplayTaxExceptionsData *
Produce ALV report *
form procDisplayTaxExceptionsData.
Variables
DATA: lv_layout TYPE slis_layout_alv, "Layout
lv_dispvariant TYPE disvariant, "For display
lv_events TYPE slis_t_event, "Events
lv_grid_settings TYPE lvc_s_glay, "Grid settings
lv_event TYPE slis_alv_event. "Events
Constants
CONSTANTS:
lc_user_command TYPE slis_formname VALUE 'USER_COMMAND', "User command
lc_pf_status TYPE slis_formname VALUE 'PF_STATUS_SET_SHOW_LIST', "Pf status
lc_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE', "Top of page
lc_tab_name TYPE tabname VALUE 'ZTBRAP_TAX_EXCPT', "Table name
lc_stripes TYPE aavis VALUE 'X', "Stripes
lc_save TYPE aavis VALUE 'A', "Save
lc_repid TYPE sy-repid VALUE sy-repid, "Program name
lc_inconsistent TYPE agitt VALUE 1, "Exception for FM
lc_program TYPE agitt VALUE 2, "Exception for FM
lc_others TYPE agitt VALUE 3. "Exception for FM
Clear Local Variables
CLEAR:
lv_layout,
lv_dispvariant,
lv_events,
lv_grid_settings,
lv_event.
*Set up ALV structures
lv_dispvariant-report = lc_repid.
gv_repid = sy-repid.
lv_dispvariant-username = sy-uname.
*Set alternate stripes for ALV report
lv_layout-zebra = lc_stripes .
lv_grid_settings-coll_top_p = lc_stripes .
*Set up exit structure for top of coverpage
lv_event-name = slis_ev_top_of_coverpage.
lv_event-form = slis_ev_top_of_coverpage.
append lv_event to lv_events.
*Set up exit for top of page
lv_event-name = slis_ev_top_of_page.
lv_event-form = slis_ev_top_of_page.
append lv_event to lv_events.
*Build field catalog for List Viewer
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = lc_repid
i_inclname = lc_repid
i_structure_name = lc_tab_name
CHANGING
ct_fieldcat = gt_fieldcat[]
EXCEPTIONS
inconsistent_interface = lc_inconsistent
program_error = lc_program
others = lc_others.
field controls
PERFORM procBuildFieldcat.
Call ABAP/4 List Viewer
check not gt_fieldcat[] is initial.
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = lc_repid
i_callback_user_command = lc_user_command
i_callback_pf_status_set = lc_pf_status
i_callback_top_of_page = lc_top_of_page
is_variant = lv_dispvariant
i_grid_settings = lv_grid_settings
is_layout = lv_layout
it_fieldcat = gt_fieldcat[]
it_events = lv_events
i_save = lc_save " A = All => Standard & User
TABLES
t_outtab = gt_tax_excpt_tab.
endform. "procDisplayTaxExceptionsData
**& Form PF_STATUS_SET_SHOW_LIST
Set modified standard status for list
form pf_status_set_show_list
using lw_excpt_tab TYPE slis_t_extab.
Workarea
DATA : lw_tax_tab TYPE slis_extab. "Type group Slis
Constants
DATA : lc_pfstat TYPE amert VALUE 'ZTAX_EXCEPTION', "Pf status
lc_prog TYPE sy-repid VALUE sy-repid, "Program name
lc_fcode TYPE gui_code VALUE 'SELI'. "Function code
Clear Workarea
CLEAR :lw_tax_tab.
lw_tax_tab-fcode = lc_fcode.
append lw_tax_tab to lw_excpt_tab.
set pf-status lc_pfstat of program lc_prog excluding lw_excpt_tab.
endform. "PF_STATUS_SET_SHOW_LIST
**& Form procBuildFieldcat
text
--> p1 text
<-- p2 text
form procBuildFieldcat .
Constants
CONSTANTS :
lc_co_code TYPE amert VALUE 'ZBUKRS', "Company code
lc_vendor TYPE amert VALUE 'ZLIFNR', "Vendor
lc_docu_no TYPE amert VALUE 'ZBELNR', "Document Number
lc_user TYPE amert VALUE 'ZUSERCH', "User
lc_date TYPE amert VALUE 'ZDATE_CHANGE', "Date
lc_time TYPE amert VALUE 'ZTIME_CHANGE', "Time
lc_taxno TYPE amert VALUE 'ZSTCD1', "Tax Number
lc_exception_typ TYPE amert VALUE 'ZEXCTYPE', "Exception type
lc_clearing_dt TYPE amert VALUE 'ZAUGDT_OTHER', "Clearing date
lc_period TYPE amert VALUE 'ZMONAT', "Period
lc_gross_amt TYPE amert VALUE 'ZDMBTR', "Gross amount
lc_excpt_amt TYPE amert VALUE 'ZWHTINSSCA'. "Exception amount
Set the Fieldtext for the Dictionary fields
LOOP AT gt_fieldcat.
gt_fieldcat-key = space.
CASE gt_fieldcat-fieldname.
WHEN lc_period.
gt_fieldcat-seltext_l = text-007.
MODIFY gt_fieldcat.
WHEN lc_co_code.
gt_fieldcat-seltext_l = text-008.
MODIFY gt_fieldcat.
WHEN lc_vendor.
gt_fieldcat-seltext_l = text-009.
MODIFY gt_fieldcat.
WHEN lc_exception_typ.
gt_fieldcat-seltext_l = text-010.
MODIFY gt_fieldcat.
WHEN lc_taxno.
gt_fieldcat-seltext_l = text-011.
MODIFY gt_fieldcat.
WHEN lc_clearing_dt.
gt_fieldcat-seltext_l = text-012.
MODIFY gt_fieldcat.
WHEN lc_docu_no.
gt_fieldcat-seltext_l = text-013.
MODIFY gt_fieldcat.
WHEN lc_gross_amt.
gt_fieldcat-seltext_l = text-014.
gt_fieldcat-outputlen = 12.
MODIFY gt_fieldcat.
WHEN lc_excpt_amt.
gt_fieldcat-seltext_l = text-015.
MODIFY gt_fieldcat.
WHEN lc_user.
gt_fieldcat-seltext_l = text-016.
MODIFY gt_fieldcat.
WHEN lc_date.
gt_fieldcat-seltext_l = text-017.
MODIFY gt_fieldcat.
WHEN lc_time.
gt_fieldcat-seltext_l = text-018.
MODIFY gt_fieldcat.
ENDCASE.
ENDLOOP.
endform. " procBuildFieldcat
*& Form procWarnuser
Warn User - Give error message
-->P_TEXT text
-->P_TEXT text
-->P_lw_tax_excpt_VALUE text
FORM procWarnuser USING uv_title TYPE itex132
uv_text1 TYPE itex132.
Constants
CONSTANTS :
lc_start_column TYPE SY-CUCOL VALUE 25, "Start column
lc_start_row TYPE SY-CUROW VALUE 15. "Start row -
Which all tables are used in easy cost planning
hello all,
can anybody tell me that which all functions are used in easy cost planning.
if i use transactions cj20 and ckcm then which all tables will be reflacted. if possible plz tell which all the function modules are used....
Thanx,
hetal.......Hi Hetal,
PRPS: master data of the WBS, espeically, field kalnr, which link to ECP
KEKO: BZOBJ = 6 for ECP with project system
CKHS: Header
CKHS: Item
For MECP (ECP mit multiple CO version using Addon), there are other tables relevant: PRECP1, PRECP2,
Kind regards!
Zhenbo -
Product Category Level 5 -- Which Product it belong
HELLO i AM USING THE CRM_PROD I see the hierarchy has product category
which I can find in Table COMM_CATEGORY and then relate to product
but under each product category i see accessories in hierarchy which are different levels like in table SMOT179 so how do i Marry this level 5 to find which product it belong to
can u tell me the table name in CRM Where i can go look the level 5 prod category and see what is the product
493567E0C07200D3E10000000AB37660Check these tables
CRMM_PRCAT_ILH
CRMM_PRCAT_ILREF -
Which Fact tables are part of OBIA Financial Analytics v796?
Does anyone know which fact tables (Star schemas) are associated with Financial Analytic license?
As of now, I am going thru the document: OracleBusinessAnalyticsWarehouseDMR_V796.pdf and i am trying to identify which Star Schema's are associated with the Financial Analytics and I was wondering if there was a more productive means of finding out this information.
thanksIr-respective of what Fact tables are used in Finacial Analytics, the Target DW will have these fact tables when used with EBS source. This is true even if you run ETL only for Financial analytics. This in general is true for EBS also, even though you may only Financial module of EBS, the data model of EBS will have most of the tables as often there are shared tables from other modules.
179 rows selected
TABLE_NAME
W_ABSENCE_EVENT_F
W_ACCT_BUDGET_F
W_ACD_EVENT_F
W_ACTIVITY_F
W_AGREEITEM_F
W_AGREE_F
W_APPL_ACC_SNP_F
W_APPL_EVENT_F
W_AP_BALANCE_F
W_AP_INV_DIST_F
W_AP_XACT_F
W_AR_BALANCE_F
W_AR_XACT_F
W_ASSESS_F
W_ASSET_F
W_BALHSTRY_F
W_BENEFIT_F
W_BOM_ITEM_F
W_CALL_ACCNT_F
W_CALL_ATTND_F
W_CALL_CON_F
W_CAMP_HIST_F
W_CAMP_OPTY_F
W_CASE_F
W_CASE_KPI_F
W_CASE_SNP_F
W_CASE_STG_F
W_CNTCT_CNTR_BNCHMRK_TGT_F
W_CNTCT_CNTR_PERF_F
W_CUSTOMER_COST_LINE_F
W_CUSTOMER_STATUS_HIST_F
W_DTL_FCST_F
W_EMPLOYEE_DAILY_SNP_F
W_EMPLOYEE_EVENT_F
W_EMPLOYEE_MONTHLY_SNP_F
W_EXPENSE_F
W_FN_HOLDING_F
W_FUND_F
W_GL_BALANCE_F
W_GL_COGS_F
W_GL_OTHER_F
W_GL_REVN_F
W_HOUSEHOLD_F
W_INCDNT_KPI_F
W_INCDNT_SNP_F
W_INCIDENT_F
W_INS_CLAIM_F
W_INVENTORY_DAILY_BAL_F
W_INVENTORY_MONTHLY_BAL_F
W_INVOICE_F
W_IVR_NAV_HIST_F
W_JOB_RQSTN_ACC_SNP_F
W_JOB_RQSTN_EVENT_F
W_KPI_F
W_LEAD_F
W_LEAD_KPI_F
W_LEAD_SNP_F
W_LM_ENROLLMENT_ACC_SNP_F
W_LM_ENROLLMENT_EVENT_F
W_LOY_ACCRUAL_ITEM_F
W_LOY_ACTIVITY_F
W_LOY_COST_F
W_LOY_MEMBER_MARKETING_F
W_LOY_MEMBER_STATUS_HIST_F
W_LOY_MEMBER_TIER_HIST_F
W_LOY_PARTNER_POINT_BLOCK_F
W_LOY_PROMOTION_ENROLLEE_F
W_LOY_PROMOTION_MEMBER_F
W_LOY_PROMOTION_PRODUCT_F
W_LOY_REDEMPTION_ITEM_F
W_LOY_REVENUE_F
W_LOY_STATEMENT_F
W_MED_ED_F
W_MKTG_COST_F
W_MKTG_GOAL_F
W_MKTG_LEAD_F
W_OBJECTIVE_F
W_OFR_PROD_F
W_OPTY_CMPT_F
W_OPTY_CON_F
W_OPTY_STG_F
W_ORDERITEM_F
W_ORDER_F
W_ORDIT_WTR_LOG_F
W_PAYROLL_F
W_PERFORMANCE_F
W_PERSON_F
W_PER_RANK_F
W_PIPELINE_F
W_PRODUCT_COST_LINE_F
W_PRODUCT_XACT_F
W_PROJ_BUDGET_F
W_PROJ_COST_LINE_F
W_PROJ_EXP_LINE_F
W_PROJ_FORECAST_F
W_PROJ_FUNDING_HDR_F
W_PROJ_FUNDING_LINE_F
W_PROJ_INVOICE_LINE_F
W_PROJ_RETENTION_F
W_PROJ_REVENUE_HDR_F
W_PROJ_REVENUE_LINE_F
W_PROMOTION_F
W_PURCH_COST_F
W_PURCH_CYCLE_LINE_F
W_PURCH_ORDER_F
W_PURCH_RCPT_F
W_PURCH_RQSTN_LINE_F
W_PURCH_RQSTN_STATUS_F
W_PURCH_SCHEDULE_LINE_F
W_QTEIT_WTR_LOG_F
W_QUOTEITEM_F
W_QUOTE_F
W_RCRTMNT_EVENT_F
W_REP_ACTIVITY_F
W_RESPONSE_F
W_RESP_PROD_F
W_REVN_F
W_RQSTN_LINE_COST_F
W_RTLAUDIT_F
W_SALES_BACKLOG_HISTORY_F
W_SALES_BACKLOG_LINE_F
W_SALES_BOOKING_LINE_F
W_SALES_CYCLE_LINE_F
W_SALES_INVOICE_LINE_F
W_SALES_ORDER_LINE_F
W_SALES_PICK_LINE_F
W_SALES_SCHEDULE_LINE_F
W_SRVREQ_F
W_SUM_FCST_F
W_SURVEY_F
W_SYNDD_DS_F
W_SYNDD_IDS_F
W_SYNDD_PT_F
W_SYNDD_RX_F
W_SYNDD_W_F
W_SYNDD_XPT_F
W_SYNDM_DS_F
W_SYNDM_IDS_F
W_SYNDM_PT_F
W_SYNDM_RX_F
W_SYNDM_W_F
W_SYNDM_XPT_F
W_SYND_DS_T_F
W_SYND_IDS_D_F
W_SYND_IDS_T_F
W_SYND_PT_T_F
W_SYND_RX_T_F
W_SYND_W_T_F
W_SYND_XPT_D_F
W_SYND_XPT_T_F
W_SYNM_DS_T_F
W_SYNM_IDS_D_F
W_SYNM_IDS_T_F
W_SYNM_PT_T_F
W_SYNM_RX_T_F
W_SYNM_W_T_F
W_SYNM_XPT_D_F
W_SYNM_XPT_T_F
W_UA_ACCAPLN_F
W_UA_ACCSUM_F
W_UA_ACCUSG_F
W_UA_ACTUSG_F
W_UA_ADOPT_F
W_UA_ASTAPLN_F
W_UA_ASTSUM_F
W_UA_ASTUSG_F
W_UA_CONAPLN_F
W_UA_CONSUM_F
W_UA_CONUSG_F
W_UA_OPTAPLN_F
W_UA_OPTYSUM_F
W_UA_OPTYUSG_F
W_UA_QOTUSG_F
W_VEHICLE_F
W_WRKFC_EVT_AGE_F
W_WRKFC_EVT_F
W_WRKFC_EVT_MERGE_F
W_WRKFC_EVT_MONTH_F
W_WRKFC_EVT_POW_F
Edited by: shyamvaran on Jul 22, 2009 2:55 PM -
User tables belonging to the dbo schema were found in the database...
Hi
I´m running SAP on windows server 2003 R2 x64 sql 2005.
I have installed a sandbox system based on NW 7.01 SR1 ECC 6.0. It´s only abap.
After that I wanted to make a system copy of our production system to the the sandbox. So my sql colleague took a full backup of the production database and restored it into the sandbox.
Now I´m trying to run the system copy installation sapinst - SAP ERP 6.0 EHP4 Ready (Support Release 1) - Sotware life Cycle Options - System Copy - MS SQL Server - Target System Installation - Central System - Based on AS ABAP - Central System...
I choose custom and say it´s a Homogeneus System Copy (MS SQL Servver-specific)
After that I choose "Use existing database" but the it say:
*User tables belonging to the dbo schema were found in the database ES0. SOLUTION: You can only install an SAP system in a database with no user objects belonging to the system schema dbo. If there already is an SAP system in the database (MCOD), or you install a Java Add-In, you might have to convert the existing system to its own schema, or contact your SAP support.*
I have searched the forums and can´t find anything I can use. I found someone wrote that I should change the control.xml file under sapinst directory:
Proceed as follows:
1. Stop SAPinst.
2. Open the file control.xml in the sapinst log directory and look for the following lines:
AllowNew: mig ? ?false? : ?true?,
AllowDboObjects: mig ? ?true? : ?false?,
3. Change these lines to
AllowNew: ins ? ?true? : ?false?,
AllowDboObjects: ins ? ?false? : ?true?,
4. Save the control.xml, restart SAPinst and choose ?Continue old installation?.
but it is not helping.
Please advise me.
If this is the wrong forum please tell which one is correct.
Best regards
Thomas
Edited by: Thomas Aastrøm on Feb 23, 2012 3:49 PMHi again
Phase 11 is ok now. We changed the database owner to sap SIDadm.
But now it fails at phase 12 (Move MS SQL Server objects from one schema to another)
An error occurred while processing option SAP ERP 6.0 EHP4 Ready - Support Release 1 > Software Life-Cycle Options > System Copy > MS SQL Server > Target System Installation > Central System > Based on AS ABAP > Central System. You can now:
Choose Retry to repeat the current step.
Choose View Log to get more information about the error.
Stop the option and continue with it later.
Log files are written to C:\Program Files/sapinst_instdir/ERPEhP4/LM/COPY/MSS/SYSTEM/CENTRAL/AS-ABAP/.
sapinst.log:
INFO 2012-02-24 13:18:55.427
Execute step MoveSchema of component |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0
ERROR 2012-02-24 13:18:56.349
FCO-00011 The step MoveSchema with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0|MoveSchema was executed with status ERROR .
ERROR 2012-02-24 13:18:56.146
MDB-05053 Errors when executing sql command: [Microsoft][ODBC SQL Server Driver][SQL Server]Object 'ep0.AFKO' does not exist or is not a valid object for this operation.
<p> SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.</p>
INFO 2012-02-24 13:19:02.583
An error occured and the user decided to retry the current step: "|NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0|MoveSchema".
ERROR 2012-02-24 13:19:02.770
FCO-00011 The step MoveSchema with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssSchemaMove|ind|ind|ind|ind|2|0|MoveSchema was executed with status ERROR .
What to do?
Best Regards
Thomas -
HR how to find which personal area belongs to which country
HR
how to find which personal area belongs to which country
thank you,
Regards,
Jagrut Bharatkumar shuklaHi,
You can use the table T001P for finding that for eg.,
<b>Select molga from t001p where werks = 'Your Personnel area code'.</b>
Thanks
Yogesh -
Note 123383 You are changing a function group which does not belong to you
Applying note 123383. Got SSCR keys from SAP to modify the identified tables.
When trying to save changes, get error message "You are changing a function group which does not belong to you".
I changed Function Group ownership to myself, but still get error message.
Anyone have an idea how to resolve?Just in case... did you do the following?
"If, when you are maintaining certain views, the error message DS138 'Changes prohibited by user ... ' or error message EU522 'Changes to ... are prohibited by ... ' is generated, remove the <b>editor lock</b> from programs L0GFNTOP and L0GFPTOP as described in Note 37900."
~Suresh -
In which FI table can I find the triangular deal flag?
Hi expert,
I am looking for the FI table in which I can find the triangular deal flag.
In SD, I can see the documents with traingular deal in table VBAK (field XEGDR), but I don't know in which FI table I can find it.
Do you have any idea?
Thank you.
Kind regards,
LindaHi,
You can find the field in BSEG, BSAK tables in FI.
Regards,
Praisty -
In which SAP tables where INCOTERMS COST are stored?
Dear All, Costing/Financial Experts,
<b>Could you please let me know,
In which SAP tables are cost details for "INCOTERMS" stored?</b>
OR if someone can help me navigate to find the <b>cost</b> data for incoterms ?
Thanks in Advance.Try these:
A033
A034
A127
A301
Rob
Maybe you are looking for
-
Using iPhoto slideshows with Apple TV
I am unable to get a slideshow I made in iPhoto 08 to sync to Apple TV. I imported it into iTunes, and it plays fine from there, but the menu pick to allow it to be formatted for Apple TV is grayed out. I would appreciate help in getting this to work
-
I have vista ultamate 64-bit running on boot camp. My mighty mouse does not work. When you add the bluetooth device it asks for a passkey. I have tried all of the options and the mouse still won't pair correctly.
-
I have designed 18 "tee-signs" for our disc golf course. They print fine from Illustrator to various color printers. Now, we are getting them printed on a sticker which we will affix to a metal plate and post near the tees. The printer we are working
-
Order settlement not possible for investment order.
Dear All We are doing the settlement for the order. settlement recever is order & we are getting the following error. Account 320501 requires assignment to CO object. Please guide me. Regards
-
Showing Open Directory Groups on XP
Hello, I want to add an open directory created group (of an open directory master) to a workstations Power Users group in XP. I have: Setup open directory as an open directory master. Setup Samba as a PDC. Kerberos and dns are setup correctly. everyt