How to create configuration of a variant material based on funciton module
Hello, ABAP experts,
I want to create configuration of a variant material based on FM ( MRP3 view, set configurable material and configure the variant ).
I use fuction modules:
CUXM_SET_CONFIGURATION
CUCB_CONFIGURATION_TO_DB
and subsequently commit work.
But the data table was not updated, that is, MRP3 view is still empty.
Can you give me a sample, tell me how to used these FMs.
Thanks and BR.
When I call FM , CUXM_GET_CONFIGURATION, the SUBRC = 0, but ET_RETURN get two messages: CUXM1-001 , Overwriting existing configuration, and CUXM1-007, Configuration in target system is consistent and complete.
Can you give me a sample ?
Similar Messages
-
How to create transaction or screen variant for custom tcode in module pool
Hi,
I have one module pool program with custome tcode ,i want to create transaction or screen variant for this tcode.Next time when we run this tcode we need a variant for this tcode.
I tried by using of SHD0 but it is working only for standred tcodes.Is there any possibilty please help me.
thanks,
Lavanya.Hi,
you created a Custom Tcode for ur module pool Pgm..if u execute the Tcode in the output screen give the input details and press Save Option then variant will be created. Then you can use that variant.
otherwise.. while creating a Tcode..
select an option for Tcode type Tranasction With variant ..there u will provide the variant for ur Tcode ( which is already created ).
Regards,
PraVeen. -
How to create a table with varied number of columns?
I am trying to create a balance table. The colunms should include years between the start year and end year the user will input at run time. The rows will be the customers with outstanding balance in those years.
If the user input years 2000 and 2002, the table should have columns 2000, 2001, 2002. But if the user input 2000 and 2001, the table will only have columns 2000 and 2001.
Can I do it? How? Thanka a lot.Why did you create a new thread for this?
How to create a table with varied number of columns? -
hi experts,,,,,
1)can u explain the use of it.......
how to create diff type of variants.......
2)......how to give batch number assignment alpha numerically.......
here in the system only numbe\rically available, and i have to assign the batch number internal assignment.........for a particular production order.Hi,
<b>creating Transaction Variants</b>
Step 1:
Execute transaction SHD0 and create a Transaction Variant against the original transaction.
Step 2:
As soon as you press the create button, the original screen of the transaction will appear. After pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any field or tab or any button you want to disappear from the menu functions. Press the exit and save button when you are sure that no further settings are required on sub-screens (if present). After pressing the exit and save button another menu variant screen will appear. Press the save button here and save as a local object or under any development class.
Step 3:
When you are back on the Transaction Variant (SHD0) screen, press shift+F6 or click the goto menu and press the create variant transaction button. Through this transaction SE93 will be executed. Enter the transaction name you want to create and any other required field and now press the save button.
Step 4:
Now execute the transaction you create through create Transaction Variant and enjoy the results.
Case two for creating Transaction Variants
Step 1:
Create a dialogue transaction through SE93 and enter the program name and screen number of the original transaction you want to make a variant on (e.g., PFCG). Press the save button and check whether the replica transaction (PFCG) has been created successfully by executing it on a new session.
Step 2:
Execute transaction SHD0 to create a Transaction Variant. Specify the transaction name (replica of PFCG) which you have just created and create a Transaction Variant against the replica transaction.
Step 3:
As soon as you press the create button, the original screen of the transaction will appear. After pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any field or tab or any button you want to disappear from the menu functions. Press the exit and save button when you are sure that no further settings are required on sub-screens (if present). After pressing the exit and save button another menu variant screen will appear. Press the save button here and save as a local object or under any development class.
Step 4:
When you are back on the main screen of the SHDO (Transaction Variant) click the edit option on the menu tab and activate Standard Variant. Through this a Standard Variant will be assigned to the transaction specified (replica transaction).
Note: Make sure you activate the Standard Variant against a replica transaction and not on the original one.
Regards
Sudheer -
How to expand multiple level of variant material in quotation?
Hi,
I use VA21 to create a quotation, there is a variant material such as AA. The Bom of AA is
AA
Aa
aa
ab
Ba
ba
bb
I have create the class of variant, characteristics and configuration profile, also I have create the Bom and assign the dependency. But in my quotation, when I chosed the characteristics, only the first level can be brought out under the top material. The item aa can't be brought out.
Item material Item category Higher-level Item
10 AA AGC
20 Aa AGX 10
Result expected
Item material Item category Higher-level Item
10 AA AGC
20 Aa AGC/AGX 10
30 aa AGX 20
Thanks!
Edited by: wayne wu on Jun 20, 2011 5:24 AMAnkur,
I change the Structure Scope to B and Application SD01, but it seems conflict with the config strategy and variant matching. So, in VA21, material can't be determined by system automatically through choosing characteristics. System expands all the material of the top material. Like this:
AA
Aa
aa
ab
Ba
ba
bb
Are there some mistakes in my Item Category configuration?
Thanks.
Edited by: wayne wu on Jun 21, 2011 4:41 AM -
How to create a process type/variant for this in Process Chain
i
I created a Selective Delete Variant (Delete_Facts) with some data selection upon which data to be deleted, to be used in Process chain.
My requirment is
I need to include that in the process chain in a such a way that that variant should be executed only on FIRST DAY of every month.
(First day of every month Selective deletion on data tardet will be performed....rest of the days no selective deletion is performed)
Please advise how can i achieve this
Thanks in advanceHi,
You can probably create a seperate chain containing this variant alone, and schedule it to run on the first of every month.
This can be done by right clicking on the start variant, and selecting the option periodic, and giving the periodic value, where you have values "hourly","daily", "weekly", "monthly", otherperiod. Another try can be to click on the arrow at the top beside "At Operation Mode" and d specify a factory calendar. I am not much sure of this option.
another option is that you can try using the procecc type "Decision Between Multiple Alternatives " and check if calendar day is first of the month then execute your variant, or else execute the other normal steps. You can get more info on this functionality from BI-ExpertOnline.
Hope this helps.
Thanks,
Tintu -
How to create a PO for a Material having Net Price but without Info Record?
Hi,
When I try to create a PO for a Material having Material Master and Vendor Master maintained but no Info Record, system does not accept the Net Price and the Price Condition also does not appear. Is there any way to create a PO for a Material having Net Price but without Info Record?
Regards.Hi,
The first time you create a PO for a material/vendor combination, then system will not prompt any price as info record or valid conditions have not been found.
The next time you create a PO for the same material, then the price will be defaulted/found from the order price history from the info record(As info record would be reated after the first PO is created) and the latest PO price for the mat/ven combination would be found.
Hope you are clear with this..Any doubts revert back.
Regards,
Deepak. -
How to create reservation for a particular material through Production orde
Hi gurus
How to create the reservation manually and through production order?
KaisarHi,
If you convert a Planned Order to production oredr, all the dependent requirements will be converted to Order Reservations.
If you create a Production Order then the Order Reservations will be created for the BOM Components.
System will create this reservation automatically.
For Manual creation of reservations - I guess the T.Code is MB25(I am not very sure). You can serch in easy access menu..
Regards,
Siva -
How to create an Event & schedule a rpt based on results of that Event..
Help,
I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
select count(*) as RegCounts from [reg contact log]
where [due date] = date() +1 and [response due]=Yes
ErinHelp,
I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
select count(*) as RegCounts from [reg contact log]
where [due date] = date() +1 and [response due]=Yes
Erin -
How to fetch the current stock of material based on Plant?
Hi Experts,
Could any one tell how do i need to get the current stock data of the material based on Plant.
Thanks in advance.
Regards,
Abdur RafiqueHi ,
MBEW stores the value of particular stock . T-code to find stock MMBE compare both wiht table and tcode.
please let me know if you still find any issues .
Thanks and regards,
Rajeshwar -
How to create the select option for the Plant in screen (Module pool)
HI,
I am developing one module pool program and I have below requirement,
currently plant is acting like PARAMETER and the now it should be changed to select option.
how to create the select option in the screen
Thanks and regarding,
Malla
Moderator message - Cross post locked
Edited by: Rob Burbank on Dec 16, 2009 1:41 PMSteps to get SELECT-OPTIONS in module pool programs.
1.Start one dialog program with SAPMZ_001.
Place the below code in the TOP include of the dialog program.
TABLES marc.
SELECTION-SCREEN BEGIN OF SCREEN 3200 AS SUBSCREEN.
SELECT-OPTIONS: werks FOR marc-werks.
SELECTION-SCREEN END OF SCREEN 3200.
2 .Create one screen 3000.
Go to Layout of the screen and Define subscreen area on the screen and Name it as l_subscreen.
Place the below code in the Flow logic of the screen.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN l_subscreen INCLUDING 'SAPMZ_001' '3200'.
PROCESS AFTER INPUT.
CALL SUBSCREEN l_subscreen.
Activate all.
Create Transaction code for the dialog program .
Execute the transaction code. You will see the select-option for werks how we see on Selection-screen. -
How to create a Complex Organization Index Materialized View Example
Hi
I have a 11g database that I'm trying to create a complex Materialized View that I would like to make Organization Index? How do I specify what I want for a primary Key?
CREATE MATERIALIZED VIEW RCS_STG.MV_NEXT_HOP_iot
ORGANIZATION INDEX
AS
SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r2.device_key
AND tn_network_resource.resource_key(+) = r2.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
UNION ALL
SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r1.device_key
AND tn_network_resource.resource_key(+) = r1.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
I get an error message ORA-25175: no PRIMARY KEY constraint found
I would like to specify resource_key, resource_key2, and service_telephone_number as my primary key?Ah,
I get it now. This is what I did.
CREATE TABLE mv_next_hop_iot
resource_key NUMBER (38),
resource_key2 NUMBER (38),
resource_full_path_name VARCHAR2 (256 BYTE),
device_name VARCHAR2 (64 BYTE),
device_model VARCHAR2 (64 BYTE),
service_telephone_number VARCHAR2 (20 BYTE),
service_package_name VARCHAR2 (64 BYTE),
telephone_number_key NUMBER (38),
created_on DATE,
CONSTRAINT mv_next_hop_pk PRIMARY KEY (resource_key, resource_key2, service_telephone_number)
ORGANIZATION INDEX
CREATE MATERIALIZED VIEW rcs_stg.mv_next_hop_iot
ON PREBUILT TABLE
AS
/* Formatted on 2010/06/10 1:39:04 PM (QP5 v5.149.1003.31008) */
SELECT resource_key, resource_key2, resource_full_path_name, device_name, device_model, service_telephone_number,
service_package_name, telephone_number_key, created_on
FROM (SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r2.device_key
AND tn_network_resource.resource_key(+) = r2.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
UNION ALL
SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
telephone_number.telephone_number_key, c1.created_on
FROM network_resource PARTITION (network_resource_subinterface) r1,
connection c1,
network_resource PARTITION (network_resource_subinterface) r2,
device d1,
tn_network_resource,
telephone_number
WHERE r1.resource_key = c1.resource1_key
AND c1.resource2_key = r2.resource_key
AND d1.device_key = r1.device_key
AND tn_network_resource.resource_key(+) = r1.resource_key
AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key)
Many thanks. the PREBUILT TABLE is the secret. -
How to create/configure an OVS for a custom BO?
I have created a new BO with three elements (ID, Name, FilterCriteria).
For this BO I created a Query (QueryByElements):
- Selection: ID, Name, FilterCriteria
- Basic Find: ID, Name
- Result: ID, Name, Filtercriteria
After this I created an OVS for this BO.
In DataModel Tab I bound the Items Node of the OVS to the Query Node of the BO, OVS:ObjectID -> Query:ID, OVS:ObjectName -> Query:Name and OVS:FilterCriteria -> Query:FilterCriteria.
Next i created a structure in the OVS with the data fields: ID, Name, FilterCriteria and SerchText.
In the Controller Tab I bound the ValueHelpQuery of the OVS to the (new) Query of the BO with this parameters:
- ID : /Root/Structure/ID
- Name : /Root/Structure/Name
- SearchText : /Root/Structure/SearchText
- FilterCriteria : /Root/Structure/FilterCriteria
Inport:
- ID : /Root/Structure/ID
- Name : /Root/Structure/Name
- SearchText : /Root/Structure/SearchText
- FilterCriteria : /Root/Structure/FilterCriteria
- + standard parameters like ParentComponent...
Outport:
- ObjectId : /Root/Items/ObjectId
- ObjectName : /Root/Items/ObjectName
With this configuration I get a correct value suggestion when I am typing in the field, and when i select a value from the drop down list the value is transferred to the field.
But, if I open the screen:
- the search is not working, I always see all values.
- if I select a row, the value is not transferred to the field. the field is empty.
I tried it without the FilterCriteria in the parameters and inport, but id shown the same behavior...
Do you have any idea to solve this problem?
Thanks,
Eduardsuddenly the transfer of the selected value from OVS UI to the fiels is working... I didn't change anything.
But the search in the OVS UI is still not working. Has someone any ideas how to fix it? -
New plant created, how to create/configure personnel area & sub area for it
Hi Gurus,
I am very new to SAP HR, our clinet has plans to open a new plant for their organization.
Now we need to create a personnel area and personnel sub area.
Can you please explain how to configure the Personnel area and sub area through SPRO for the new plant?
Also, is it neccessary to assign the newly created PA and PSA to already present employee subgroups?
Thanks in advance.
Akash.Hi,
You can create PA & PSA thru
spro : Enterprise structure - Definition - HRM - PA & PSA
spro : Enterprise structure - Assignemnt - HRM - PA to CC.
There is no direct relationship between a plant and PA&PSA info.
You can either create PAs inline with your plants or not.
It depends on your firms's enterprise structure.
There is no assignemnt between PA & PSA and employee groups.
You need to only assign newly created PA to company code.
Regards,
Dilek -
How to create a batch for a material, with batch characteristic input?
I am currently using BAPI_BATCH_CREATE to create batch for materials in my program. However, I find no way to input the batch characteristics. Is there any existing function module responsible for that? Thanks!
Hi,
You can use FMs 'CLVF_INSERT_AUSP' or 'CLVF_INSERT_AUSP' to insert or update characteristics for materials.
In the structure INS_AUSP or UPD_AUSP -
OBJEK corresponds to the material number,
ATINN is the characteristic name,
KLART is the class type which is '001' for materials, and
ATWRT is the characteristic value.
Populate values into the above fields for the batch of materials and call this FM.
Reward points if found useful...!
Cheers
Abhishek
Maybe you are looking for
-
IPad 'Unknown error 1651', even after latest update
Hi guys, does anybody know how my fix the 'unknown error (1651)' message when updating an iPad? I'm running Lion and everything is up-to-date (ITunes, etc), even the iPad version is the latest (4.3.5), but the error keeps popping up every time I sync
-
User Exit/BTE for F-26 for sequencing clearing open items
Hi All, Is there a BTE/User exit to identify the items selected for clearing in F-26? ( On line item double click) Based on the open items displayed we need to enforce a check that they are selected in a proper sequence. Thanks in advance, Puneet
-
I have created tutorials using Tutorial Builder successfully, loaded them in Tutorial Veiwer and logged into localmachine where I an also running Photoshop. When I click on Show Me in Photoshop in my tutorials I get the following message: "Photoshop
-
HT1725 Download interrupted by power failure
In the process of downloading a song from iTunes Store, I experienced the power at my home start to flicker, and ultimatelly go out. When it started flickering, I turned my MAC off so as not to damage. The download did not complete, and is not in my
-
Hello! I am new to Lightroom and have thousands of photos I would like to import. I have them stored on an external drive and just imported my first batch and saved them to another external drive. The problem is that after the first batch I lost abou