Access to tables plant wise
Hi All,
We have several number of plants and we want to restrict the access to Tables plant wise.
Finance tables in plant A should not be visible to somebody in Plant B and vice versa.
the access has to be given by the data owner of the plant.
Please let me know can we restrict the access like this.
Pravin.
Hi,
Just click on the "Display object documentation"
Organizational criterion: Link to the table key fields to which the row authorization refers. (i.e. palnt werks field value with the table name)
Possible values: All organizational criteria defined in customizing. Use the F4 help.
Organizational criterion attributes 1-8: Each attribute refers to a particular table key field. There can only be values for as many attributes as are defined in the organizational criterion (at least one).
Possible values: Table key field values (individual values and/or intervals).
Similar Messages
-
Material listing by plant wise
Hi Kings,
I want to do material listing by plant wise where can i do customization for this this or i have to do any master data mantainance .
please help me out very argent
thanks,hi,
U can try this
Ur requirement can fulfilled by using combination of fields in condition table of Listing/exclusion
menu path:
Spro-> img>SD-> basic function -
> listing/exclusion->Maintain condition tables for listing/exclusion--> table 003
This table u have to assign to the access sequence. Then this access sequence u assign it to the condition type which is maintainesd in the <b>Procedures for maintaining listing/exclusion</b>
Now try with VB01, then listing/ exclusion for the customer happens at plant
hope this helps u
regards,
Arun prasad -
Access Sequence for Plant/Tax code Combination for JTAX
Dear All
i want to create a new access sequence for "Plant/Tax code" Combination.
Please let me know the process for the same
Regards
AmeyHi,
Goto- M/05.
Create the condition table by selecting the fields Plant & Tax code.
Assign this condition table in the Access sequence JTAX as per ur requirement.
Create condition records (FV11) by choosing the requirec access sequence.
Regards,
Satpal -
How to get open production orders by plant wise
Hi,
How to get open production orders by plant wise.
i know from tcode COOIS, is it possible to get from this. if so what are the parameters we have to give to get open production orders by plant wise.
is there any tcode or tables available , please provide details .
regards,
Hari priyaHi,
What is your definition of Open Production Orders?
Definetly you will get the report from COOIS for Plant wise.
Whther you want to consider all the Orders having the Status REL but not DLV?
Then there is a chance of having the Orders, still with PDLV status but GR is done for the full Qty. May be you don't want to consider the TECO status, eventhough the Order is short closed??
Better to ommit the Orders with CRTD status also..
So, based on this which status to consider and which status not to consider..
You can define the "Selection profile status" in BS42.
Use this selection profile in COOIS, so that the rsults will be accurate..
Best Regards,
Siva -
Purchase order number ranges plant wise
Hi ,
Requirement is , want to have purchase order number plant wise. I know that we can have different number ranges for different document types in standard SAP. But how to achieve different number ranges for purchase order plant wise.?
Is there any user exits available for this?
regards,
abiHi,
it is possible through a BADI to get the separate number ranges for plant wise PR/PO,
but u need to maintain a customised table with number ranges and plants,
whenever the user try to save a PO/PR the syatem will pick the number range from the customised table,
that BADI is ME_PROCESS_PO_CUST,
it is very useful if any client has number of plants like 30 or 40 plants,
and it is easy track the PO from where it has raised.
rgds -
What is access sequence tables and how to use them in program?
hi all, I know a little about SD and access sequence tables, but I get a requriment like this:
condition type is a paramater
The condition types allowed in this report are: Note: A list of pre-defined condition types with their corresponding access sequence tables will be defined.
How can I make it? How can I use it in program to get the price?Hi,
An access sequence is a search strategy with the aid of which the SAP
System searches for valid condition records of a certain condition type.
For example, you can stipulate for a price that the SAP System first
searches for a price for a specific plant, and then for a generally
applicable price.
For condition types for which you wish to maintain conditions with their
own validity period, you must assign an access sequence. With this, you
define which fields the SAP System checks in searching for a valid
condition record.
e.g. When you create condition record (e.g. Purchasing condition record) you enter condition type, system asks you the key combination to enter the entries. These key combinations are nothing but the access sequence. On the basis of combination of condition table it will search record. e.g. when u maintain condition record with acc seq Material/plant combination, it will transfer the same record in PO when u enter same material and plant in the PO.
Example:
An access sequence has been assigned to condition type PB00 so that
prices can be maintained in purchasing info records and contracts.
No access sequence has been assigned to condition type RC00 because it
does not have a validity period of its own. In the standard system, it is
always maintained simultaneously with the price and is valid for the
period of the price.
For more help
http://www.sap-img.com/materials/steps-for-mm-pricing-procedures.htm
Regards,
Raj. -
Valuation Class according to Material Master but not Plant wise
Hi,
Is there way to find out the Valuation Class according to Material Master but not Plant wise...
Plant wise, we can get into MBEW table, but I want to find valuation class directly...
Plz guide..I need to change Valuation class against material number...
We have 18 plant in our company and more than 2,50,000 material's.
Which one easy task for change in material master, either 2,50,000 material's or 2,50,000 X 18 (45,00,000) material list.
If I go with plant wise, we need to change 18 times...also this is time consuming process... As I know in all Plant's, valuation class must be same...
please guide... -
What is the tcode for plant wise g/l account list
Dear Experts
Can you help on this "what is the tcode for plant wise g/l account list"
Regards
BHi Bhaskar,
G/L accounts wont be plant wise.It will be either chart of accounts level or compant code level.
The best thing you can do is to derive the company code for the plants from the table T001K assuming the valuation level is at plant level.
Now after deriving the company code go to transaction SE16 and give the company code derived above in the table SKB1 and generate the G/L account list.
Hope this is clear if not please clearly explain more elaborately on the exact requirement why you need plant wise g/l account list for appropiate solution. -
Hi,
How can we know the Cost Center list with Plant wise..
Reason is that we just completed rollout project and create a new plant. for example, now our plant is AAAA & new one is BBBB. and we create the cost centers for that plant also i.e. BBBB.
So, i want to see newly created cost centres list for plant BBBB...
plz. help...Dear ABAP,
Goto KS03,press F4 and serach using the option Cost center,enter the controlling area,company code and remove the
maximum no of entries and press enter.
You will be able to get the list of cost centers.
Or else check the table CSKS,you will get the data related to cost center.
Regards
Mangalraj.S
Edited by: Mangalraj.S on Oct 8, 2009 2:15 PM -
Dear All,
I want to find the list of vendor's plant wise. As you all know the vendor is related to Pur.Org. I am able to get the list based on Pur.Org fro Std SAP tables. But my requirement is to get it plant wise & there are 2 or 3 plants assigned to the same Pur.Org which makes it a prob. So please send a solution to crack the same.
One more thing from std SAP table LFM2 also I tried but my search didnt find any result.
Thanks in advance!
Rgds,
SAP FCchoose the table LFA1and in field selection choose WERKS (plant) and run it.
but it may not help u since vendor is created either at company code level or purchase organization level.
regards,
indranil -
Diiferenet Internal Number Ranges by Depot(Plant) wise
Hi Experts,
I have a requirement in SD for Different Internal Number ranges by Depot(plant wise.
For example, my client having 8 depots(Plants). For each Depot client need different number range, means for depot 1 client need one range that is 9000 to 10000. For depot 2 client need number range like 10001 to 20000 like this for 8 depots but document type(sales order, billing, delivery, invoice) is same for 8 depots. How can i achieve this?
As I am fresher I am not getting any clue. If any one did this please provide me the details how to achieve this.
Thanks & Regards,
Muralikrishna
Moderator Message: Do some R&D of your own first.
Edited by: kishan P on Nov 15, 2010 2:24 PMHi Gnana Kumar,
I seen this link, here mentioned that develop the z table with fields like VKORG, FKART, NUMKI. Can I add Depot(plant) filed also?
and here client is having only one Sales Organization.
Thanks & Regards,
Muralikrishna -
ACCESSING MULTIPLE TABLES THRU ONE SELECT STATEMENTS
How to access multiple tables through one single select statement and also using where condition in it for multiple fields which are from different tables. please give me any example from any tables ....thanks in advance
See the below example code :
REPORT ZMM_COST no standard page heading
line-size 255
message-id zwave .
type-pools
type-pools : slis.
Tables
tables : mara,
makt,
mbew,
konp,
pgmi,
marc,
RMCP3,
sscrfields,
mvke.
Internal Table for MARC and MARA
data : begin of i_join occurs 0,
matnr like mara-matnr, " Material #
meins like mara-meins, " Unit of Measure
werks like marc-werks, " Plant
zzdept like marc-zzdept," Department
end of i_join.
Internal table for PGMI
data : begin of i_pgmi occurs 0,
werks like pgmi-werks, " Plant,
nrmit like pgmi-nrmit, " Material #
wemit like pgmi-wemit, " Plant
end of i_pgmi.
Internal Table for MBEW
data i_mbew like mbew occurs 0 with header line.
Internal Table for Output
data : begin of i_output occurs 0 ,
matnr like mara-matnr, " Material #
maktx like makt-maktx, " Material Desc
VPRSV like mbew-VPRSV, " Price Control Indicator
VERPR like mbew-VERPR, " Moving Avg Price
meins like mara-meins, " Base Unit of Measure
STPRS like mbew-STPRS, " Standard Price
LPLPR like mbew-LPLPR, " Current Planned Price
ZPLPR like mbew-ZPLPR, " Future Planned Price
VPLPR like mbew-VPLPR, " Previous Planned Price
kbetr like konp-kbetr, " Sales Price
KMEIN like konp-KMEIN, " Sales Unit
margin(5) type p decimals 2,
vmsta like mvke-vmsta, " Material Status.
end of i_output.
Internal Table for A004
data : i_a004 like a004 occurs 0 with header line.
Variables
data : wa_lines type i,
wa_maktx type makt-maktx,
v_flag type c.
ALV Function Module Variables
DATA: g_repid like sy-repid,
gs_layout type slis_layout_alv,
g_exit_caused_by_caller,
gs_exit_caused_by_user type slis_exit_by_user.
DATA: gt_fieldcat type slis_t_fieldcat_alv,
gs_print type slis_print_alv,
gt_events type slis_t_event,
gt_list_top_of_page type slis_t_listheader,
g_status_set type slis_formname value 'PF_STATUS_SET',
g_user_command type slis_formname value 'USER_COMMAND',
g_top_of_page type slis_formname value 'TOP_OF_PAGE',
g_top_of_list type slis_formname value 'TOP_OF_LIST',
g_end_of_list type slis_formname value 'END_OF_LIST',
g_variant LIKE disvariant,
g_save(1) TYPE c,
g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
data : gr_layout_bck type slis_layout_alv.
Selection-screen
selection-screen : begin of block blk with frame title text-001.
parameters : p_werks like marc-werks default '1000' obligatory.
select-options : s_dept for marc-zzdept obligatory,
s_matnr for mara-matnr,
s_mtart for mara-mtart,
s_vprsv for mbew-VPRSV,
s_PRGRP for RMCP3-PRGRP MATCHCODE OBJECT MAT2 ,
s_vmsta for mvke-vmsta.
selection-screen: end of block blk.
*SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
*PARAMETERS: p_vari LIKE disvariant-variant.
*SELECTION-SCREEN END OF BLOCK b3.
At slection screen events *
*-- Process on value request
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
PERFORM f4_for_variant.
Initialization *
Initialization.
g_repid = sy-repid.
sscrfields-functxt_01 = 'Clear Selection'.
selection-screen function key 1.
AT SELECTION-SCREEN.
case sscrfields-ucomm.
when 'Clear Selection' or 'FC01'.
clear: s_matnr,
p_werks.
refresh: s_matnr,
s_dept,
s_mtart,
s_vprsv,
s_PRGRP,
s_vmsta.
endcase.
Start-of-selection.
start-of-selection.
Clear the all data.
perform clear_data.
Get the data from PGMI Table
perform get_pgmi.
Get the data from MARC and MARA Table
perform get_mara_marc.
Get the data from MBEW Table
perform get_mbew.
Move the data into OUTPUT Table
perform move_output_internal.
*end-of-selection.
end-of-selection.
if not i_output[] is initial.
ALV Function Module
perform print_alv.
endif.
*& Form get_pgmi
Select the data from PGMI Table
FORM get_pgmi.
clear v_flag.
If Product group has a value at Selection-screen.
if not s_prgrp is initial.
select werks nrmit wemit from pgmi into table i_pgmi
where prgrp in s_prgrp
and werks = p_werks
and wemit = p_werks.
v_flag = 'X'.
endif.
ENDFORM. " get_pgmi
*& Form get_mara_marc
Select the data from MARA and MARC
FORM get_mara_marc.
if v_flag = 'X'.
select amatnr ameins bwerks bzzdept into table i_join
from mara as a inner join marc as b on amatnr = bmatnr
for all entries in i_pgmi
where a~matnr in s_matnr
and b~werks = p_werks
and b~zzdept in s_dept
and a~mtart in s_mtart
and a~matnr = i_pgmi-nrmit
and b~werks = i_pgmi-werks.
else.
Get the data from MARA and MARC Table
select amatnr ameins bwerks bzzdept into table i_join
from mara as a inner join marc as b on amatnr = bmatnr
where a~matnr in s_matnr
and b~werks = p_werks
and b~zzdept in s_dept
and a~mtart in s_mtart.
endif.
clear wa_lines.
describe table i_join lines wa_lines.
if wa_lines is initial.
message i000(zwave) with 'List contains no data'.
stop.
endif.
sort i_join by matnr werks zzdept.
ENDFORM. " get_mara_marc
*& Form get_mbew
Select the data from MBEW Table
FORM get_mbew.
Get the data from MBEW.
select * from mbew into table i_mbew
for all entries in i_join
where matnr = i_join-matnr.
clear wa_lines.
describe table i_mbew lines wa_lines.
if wa_lines is initial.
message i000(zwave) with 'List contains no data'.
stop.
endif.
sort i_mbew by matnr bwkey.
ENDFORM. " get_mbew
*& Form move_output_internal
Final Results
FORM move_output_internal.
loop at i_join.
clear wa_maktx.
Compare the data with MVKE Table
select single vmsta from mvke into mvke-vmsta
where matnr = i_join-matnr
and vkorg = '0001'
and vtweg = '01'
and vmsta in s_vmsta.
if sy-subrc ne 0.
continue.
else.
i_output-vmsta = mvke-vmsta.
endif.
read table i_mbew with key matnr = i_join-matnr
bwkey = i_join-werks
binary search.
if sy-subrc eq 0.
Price Control Indicator
i_output-VPRSV = i_mbew-VPRSV.
Moving Average Price
i_output-VERPR = i_mbew-VERPR / i_mbew-peinh.
Standard Price
i_output-STPRS = i_mbew-STPRS / i_mbew-peinh.
Current Planned Price
i_output-LPLPR = i_mbew-LPLPR / i_mbew-peinh.
Future Planned Price
i_output-ZPLPR = i_mbew-ZPLPR / i_mbew-peinh.
Previous Planned Price
i_output-VPLPR = i_mbew-VPLPR / i_mbew-peinh.
Base Unit of Measure - Added by Seshu 01/09/2007
i_output-meins = i_join-meins.
else.
continue.
endif.
Get the sales Price.
perform get_sales_data.
if i_mbew-VPRSV = 'V'.
Get the Percentage of Margin
if i_output-kbetr ne '0.00'.
i_output-margin = ( ( i_output-kbetr - i_mbew-VERPR )
/ i_output-kbetr ) * 100 .
endif.
else.
Get the Percentage of Margin
if i_output-kbetr ne '0.00'.
i_output-margin = ( ( i_output-kbetr - i_output-stprs )
/ i_output-kbetr ) * 100 .
endif.
endif.
Get the material Description from MAKT Table
select single maktx from makt into wa_maktx
where matnr = i_join-matnr
and spras = 'E'.
if sy-subrc eq 0.
i_output-matnr = i_join-matnr.
i_output-maktx = wa_maktx.
endif.
append i_output.
clear : i_output,
i_join,
i_mbew.
endloop.
ENDFORM. " move_output_internal
*& Form get_sales_data
Get the Sales Price for each material
FORM get_sales_data.
Get the data from A004 table to get KNUMH
Added new field Sales Unit - Seshu 01/09/2006
refresh : i_a004.
clear : i_a004.
data : lv_kbetr like konp-kbetr," Condition value
lv_KPEIN like konp-kpein , "per
lv_KMEIN like konp-KMEIN. " Sales Unit
select * from a004 into table i_a004
where matnr = i_join-matnr
and vkorg = '0001'
and vtweg = '01'.
if sy-subrc eq 0.
sort i_a004 by DATAB descending.
Get the Latetest Date
read table i_a004 with key matnr = i_join-matnr
vkorg = '0001'
vtweg = '01'
binary search.
Get the Sales Value
select single kbetr KPEIN KMEIN from konp
into (lv_kbetr,lv_KPEIN, lv_KMEIN)
where knumh = i_a004-knumh
and kappl = i_a004-kappl
and kschl = i_a004-kschl.
if sy-subrc eq 0.
i_output-kbetr = lv_kbetr / lv_KPEIN.
i_output-KMEIN = lv_KMEIN.
endif.
endif.
clear : lv_kbetr,
lv_kpein,
lv_KMEIN.
ENDFORM. " get_sales_data
*& Form print_alv
ALV Function Module
FORM print_alv.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
gr_layout_bck-edit_mode = 'D'.
gr_layout_bck-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = gr_layout_bck
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = g_save
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_output
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. " print_alv
*& Form fieldcat_init
Fieldcat
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-ref_fieldname = 'MATNR'.
LS_FIELDCAT-ref_tabname = 'MARA'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Material'.
ls_fieldcat-seltext_M = 'Material'.
ls_fieldcat-seltext_S = 'Material'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MAKTX'.
LS_FIELDCAT-OUTPUTLEN = 35.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Description'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Price Indicator
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VPRSV'.
LS_FIELDCAT-OUTPUTLEN = 7.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Price Control Indicator'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Moving Avg Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VERPR'.
LS_FIELDCAT-OUTPUTLEN = 11.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Moving Avg Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Base Unit of Measure
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MEINS'.
LS_FIELDCAT-OUTPUTLEN = 7.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Base Unit'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Standard Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'STPRS'.
LS_FIELDCAT-OUTPUTLEN = 11.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Standard Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Current Planned Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'LPLPR'.
LS_FIELDCAT-OUTPUTLEN = 11.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Current Planned Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Future Planned Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'ZPLPR'.
LS_FIELDCAT-OUTPUTLEN = 11.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Future Planned Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Previous Planned Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VPLPR'.
LS_FIELDCAT-OUTPUTLEN = 11.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Previous Planned Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Sales Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KBETR'.
LS_FIELDCAT-OUTPUTLEN = 13.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Sales Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Sales Unit
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KMEIN'.
LS_FIELDCAT-OUTPUTLEN = 7.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Sales Unit'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
% of Gross Margin
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MARGIN'.
LS_FIELDCAT-OUTPUTLEN = 13.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = '% of Gross Margin'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material Status
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VMSTA'.
LS_FIELDCAT-OUTPUTLEN = 13.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Material Status'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init
**& Form f4_for_variant
text
*FORM f4_for_variant.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = g_variant
i_save = g_save
i_tabname_header = g_tabname_header
i_tabname_item = g_tabname_item
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. " f4_for_variant
*& Form clear_data
Clear the Internal table
FORM clear_data.
clear : i_output,
i_join,
i_mbew,
i_a004,
i_pgmi.
refresh : i_output,
i_join,
i_mbew,
i_a004,
i_pgmi.
ENDFORM. " clear_data
FORM USER_COMMAND *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield. "#EC CALLED
CASE R_UCOMM.
WHEN '&IC1'.
read table i_output index rs_selfield-tabindex.
SET PARAMETER ID 'MAT' FIELD i_output-matnr.
SET PARAMETER ID 'WRK' FIELD p_werks.
if not i_output-matnr is initial.
call transaction 'MD04' and skip first screen.
endif.
ENDCASE.
ENDFORM.
Reward Points if it is helpful
Thanks
Seshu -
Number range plant wise for delivery
hi,
how maintain number range plant wise for delivery.
can any one suggest which user exit to use.
thanks & regards,
ChetanHi
if you want to create the number ranges for plant wise delivery . you can use table maintain the data and use user exit for the trigger in delivery table
Regards
S.pavan -
Is it possible to have plant wise CENVAT clearing accounts?
All SAP gurus,
Is it possible to have plant wise CENVAT clearing accounts?
(all the plants are in single one company code).Hi
I am just simulating exactly same reqt in sandbox.I am maintaining values in SM31 table view -J_1IT030K_V, for FR4 transaction.
I have seperate taxcodes plantwise and the plants are assigned to business places correctly.
Now I am testing in MIRO, the GL account for condition type JCV1 with FR4 account key..but I am not getting the GL as given in SM31 but the GL given in obyc-FR4 key.
Can you please help to clarify why I am not getting this GL assignment?
Regards
Ramesh.B. -
How can we restrict creation of enquiry VA01 plant wise
How can we restrict creation of enquiry VA01 plant wise
PradeepHi Pradeep,
You can restrict through the user exit.
MV45AFZZ ( MOVE_FIELD_TO_VBAP).
Check the entered plant here and the user name.
Make a custo table with plant and user name combination.
Make a select query to check with the custom table entries.
If it fails , give an error message and exit from the screen.
Hope this helps.
Regards,
Deepak Kori
Maybe you are looking for
-
When my backup reloaded ICloud had stored every picture and App I have. How do I delete stuff I don't need on ICloud. It says I'm already almost out of storage.
-
I have an eMac I no longer use. Any advice on how to dispose of this eMac?
I have an eMac from 2002 and have upgraded to other Mac products sionce then. I would like to dispose of this computer but don't want to expose myself to anyone that could solicit information from my files. Does anyone out there have any advice for
-
Sound Blaster card 'digital out' into my high-end stereo receiver?
BSound Blaster card 'digital out' into my high-end stereo receiver?A I want?to interface my iTunes music library?(all tunes in Apple Lossless file format) to my high-end sound system, using an optical (TOSLink)?cable and a "mini TOSLink adapter" that
-
Cannot find new instances in the workspace
I use BPM Standalone 10g and Studio 10g. I create a process without a global creation activity and deploy as well as publish it in the BPM Standalone. The process just has one activity named Interactivejcooper. Its main task is set to Method. I also
-
Upgrading: Migration Assistant with FireWire or Time Machine Restore?
Hello, I recently ordered a new Black Penryn MacBook to replace my 17" iMac. Would you recommend using the Migration Assistant with FireWire or a Time Machine restore in order to copy all of my data to the MacBook? I have the option to do both, but a