How to create material via Idoc with empty material field
Hello.
I have to take over materials from a 46c system to an ECC5 system and I want to use Idocs.
Some of the materials must keep their old numbers, some must change with a new number which have to be define automatically following the internal range number rules of the customizing.
I thought we just had to make the matnr field empty in the E1MARAM segment and so, SAP would assign automatically the new number, but it doesn't work.
I also tried to put '/' (nodata) character in the field, but I just reached to create an material with '/' number. :-(((((((.
Does anyone know a solution ?
Thank you in advance for all your advices.
David
Hello James and happy new year.
Thank you for your answer.
In fact, I already tried to leave the matnr field with blanks and for a material type which use internal numbers range. I hoped/thought it would have worked as you said but it wouldn't.
About the external old numbers I keep, I think I don't have to use the field external_number of the E1MARA1 segment, because some of my tests showed me that it works good. Moreover, I don't really understand the reason why this field exists because the field matnr is here for.
I presume that the external_number is maybe for another use I don't know, aren't you ?
I've never used this segment for data take over.
Do you know if the principle you described in your previous mail is also the same to apply to customers & vendors idocs ?
Best regards.
David
Similar Messages
-
How to create VMs via Powershell with specfiic requirements
So I'm looking for a way to automate VM creation and figured I would check out Powershell.
When we create VMs, we have a template folder that has sysprep'd files for the C, D, and P drives that we use. Some of our hosts are 2012 and some are 2012 R2. With R2 we create Gen2 machines which use different types of HDD setups inside of
Hyper-V so not sure if there are different commands for that.
When I create a VM by hand, I create the VM normally and choose to attach a HDD later. I then go get the Template for C and copy it into the folder that gets created automatically by Hyper V. I then create matching folders in the area that we
store the D and P drives and copy those template files in as well. I then go back into Hyper-v, modify the settings of the VM and attach/browse to the files to add in the 3 drives. I also then have to enable VLans and put in the proper VLan number.
Once those things are done, I fire up the VM and use it normally.
So I know I can use the new-vm command to create the VM, but I'm assuming I'd have to create the needed folders and copy over the needed files prior to doing that. Can I specify all the above information in the new-vw command or do I need to create
the VM and the modify the VM once it's there?
I've not used Powershell to do much with VMs, and definitely not to create them, so I'm just looking to get pointed down the right path before I start one way and then have to start over.
Thanks!!This sounds like a great project to learn more about some base, PowerShell cmdlets, and the Hyper-V module's cmdlets. I'm pretty certain you can get this accomplished using the following cmdlets:
New-VM: To create the VM.
Get-VM: To get information about your new VM, such as it's location (path), where you will do your copying. Try Get-VM -Name
nameofyourvm | Select-Object * and you'll see some paths.
Copy-Item: Copy your C template from its source, to the destination you get from Get-VM cmdlet above.
New-Item: To create a folder for D and P drives, again using the path from Get-VM.
Copy-Item: Copy your D and P templates.
From here out you may need Set-VM to "modify the settings" of the VM, a drive cmdlet or two to attach the drives, and a network cmdlet or two to get your VLANs setup. To see all the Hyper-V cmdlets, enter Get-Command -Module Hyper-V. Everything
you'll likely need is in there. When you see one you want to read more about, use the Get-Help cmdlet. You can also narrow down the cmdlets returned by Get-Command by doing things like this: Get-Command -Module Hyper-V -Noun '*drive*' -and- Get-Command -Module
Hyper-V -Noun '*network*'.
Start with the first step - creating a new VM with the New-VM cmdlet. It includes the parameter -NoVHD that will allow you to create the VM without attaching a virtual drive. There are a few other parameters you'll likely want to include when you create your
VM. One is -Generation where you indicate 1 or 2. Study the New-VM cmdlet from it's help file (Get-Help New-VM -ShowWindow) and get this part complete. When you're done, you can move on to creating folders, copying files, connecting drives, etc. -
How can I make the popup with empty fileds and create new record?
I would like to use a popup to create new record.
I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
How can I make the popup with empty fileds and create new record by saving the popup?
ThanksYou can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
resetBindingValue("#{bindings.<componentid>.inputValue}", null);
public static void resetBindingValue(String expression, Object newValue) {
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = ctx.getELContext();
ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
Class bindClass = valueExp.getType(elContext);
valueExp.setValue(elContext,newValue);
} -
How to create a simple idoc in practice? can you provide an example?
how to create a simple idoc in practice? can you provide an example with full source code?
Try with the follwoing steps
Sending System(Outbound ALE Process)
Tcode SALE ³ for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 ¡V Create Model View
Tcode BD82 ¡V Generate partner Profiles & Create Ports
Tcode BD64 ¡V Distribute the Model view
This is Receiving system Settings
Receiving System(Inbound ALE )
Tcode SALE ³ for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 ¡V Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 ¡V Idoc List for inbound status codes
Message Type MATMAS
Tcode BD10 ¡V Send Material Data
Tcode WE05 ¡V Idoc List for watching any Errors
1)a Goto Tcode SALE
Click on Sending & Receiving Systems-->Select Logical Systems
Here Define Logical Systems---> Click on Execute Button
go for new entries
1) System Name : ERP000
Description : Sending System
2) System Name : ERP800
Description : Receiving System
press Enter & Save
it will ask Request
if you want new request create new Request orpress continue for transfering the objects
B) goto Tcode SALE
Select Assign Client to Logical Systems-->Execute
000--> Double click on this
Give the following Information
Client : ERP 000
City :
Logical System
Currency
Client role
Save this Data
Step 2) For RFC Creation
Goto Tcode SM59-->Select R/3 Connects
Click on Create Button
RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
give the information for required fields
RFC Destination : ERP800
Connection type: 3
Description
Target Host : ERP000
System No:000
lan : EN
Client : 800
User : Login User Name
Password:
save this & Test it & RemortLogin
3)
Goto Tcode BD64 -- click on Change mode button
click on create moduleview
short text : xxxxxxxxxxxxxx
Technical Neme : MODEL_ALV
save this & Press ok
select your just created modelview Name :'MODEL_ALV'.
goto add message type
Model Name : MODEL_ALV
sender : ERP000
Receiver : ERP800
Message type :MATMAS
save & Press Enter
4) Goto Tcode BD82
Give Model View : MODEL_ALV
Partner system : ERP800
execute this by press F8 Button
it will gives you sending system port No :A000000015(Like)
5) Goto Tcode BD64
seelct the modelview
goto >edit>modelview-->distribute
press ok & Press enter
6)goto Tcode : BD10 for Material sending
Material : mat_001
Message Type : MATMAS
Logical System : ERP800
and Execute
7)goto Tcode : BD11 for Material Receiving
Material : mat_001
Message Type : MATMAS
and Execute --> 1 request idoc created for message type Matmas
press enter
Thanks & regards
Sreenivas
Here Master Idoc set for Messge type MATMAS-->press Enter
1 Communication Idoc generated for Message Type
this is your IDOC
Take a look at this guide.
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/ale/configuration.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapdevelopment.co.uk/training
http://www.sappro.com/downloads/OneClientDistribution.pdf
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
Create The Extension Segment
Transaction: WE31
The first step in extending an IDoc is to create the new segments that will go into that IDoc. There are some rules that you need to follow when creating the segments:
- The name of each segment type must start with Z1
- For each field in the segment you need to define a field name and a
data element.
- The data element for the segment structure must be of data type CHAR.
How to create new segments:
Run the segment maintenance transaction WE31.
Type your new segment name, and click on Create.
Define the fields of your segment:
Field name
Data Element for the field (from the ABAP dictionary).
Do not change the Export length!
Save the segment
Run Segment -->Check to check the segment for consistency.
Release the segment for transport. Select Edit -->Set Release. Note that the Release column now has a check mark.
Create the Extension IDoc Type
Transaction: WE30
After you create the segments to be added to the extension type, you can create the extension type itself. Execute transaction WE30, enter the extension name, select Extension type, and click Create. You now have three options:
Create new type: Does not refer to other extension types
Create copy: Copies info from an extension type that already exists
Create successor: Extends an extension type from a previous release
of R/3. You can only have one version of an extension type for
each release.
Enter the Basic IDoc type that this extension type will extend.
The screen now shows the structure of the IDoc type you used as
a reference.
Position the cursor on one of the segments and click Create. This will insert an extension segment as a child of the selected segment.
NOTE: A segment cannot appear more than once in an IDoc type! You must control the use of duplicate segments with the segment attributes (the next screen).
The segment attribute screen appears. Enter the information and save.
Extension segments should not be mandatory (for future upgrades), and will need to have minimum and maximum number of instances defined. This answers the question, for each instance of the parent segment, how many instances of the child segment may we have?
You can press the Segment Editor pushbutton to view or change the segment definition.
Create the new Message Type
You can only use an extension IDoc type by assigning it to a message type. You can create a new message type for this.
First the message type itself needs to be created.
Transaction: WE81
Create a new entry and save. Use SAP established customer naming conventions (good form is to start with a Z and retain the rest of the related SAP message type, so, for example, MATMAS becomes ZMATMAS).
After creating the message type, associate it with the corresponding Basic IDoc Type and Extension Type. This relationship is used when IDocs are sent to or received from a partner to determine what segments are valid and what the hierarchy for those segments is.
Transaction: WE82
Create a new entry and enter the Message type, Basic IDoc type, Extension type, and Release, and save your data. Note: the release assignment is not valid for prior SAP releases.
One message type can be associated with many basic IDoc types; however, you need a one-to-one relationship for distribution via ALE.
regards,
srinivas
*reward for useful answers*</b> -
How to Create material master workflow
Hi All,
Can anybody tell me how to create material master workflow?
i need to customize the workitem for creating data in different views in MM01 transaction with restriction to particular user.
Regards,
PritiHi,
This link is to display a material.My requirement is to create a workflow which will allow a responsible person to enter data for specific department data e.g Purchase,Accounting etc.Initially anyone can create data using basic data1 and basic data2 views.After this my workflow will be triggered and it will go to next person who is responsible to enter Purchase data and then Accounting data.
Plz help me to create different views with respect to person.
Thanks in advance. -
Requesting all to help me how to create lsmw using idoc method
hi
thanx for ur answer
requesting every body in the forum to help me how to create lsmw using idoc method.
regards,
balajiHi Balaji,
LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
Hope this is what you are looking for. If helpful then dont forget to reward me for that
Darshan -
How to create material using BAPI Methods?
hi,
how to create material master dat using BAPI?
could u guide me
i will be waiting for reply.
REGARDS
ESWAR.Hi eswar,
Try this code to create gods mmovement...
DATA: GOODSMVT_HEADER LIKE BAPI2017_GM_HEAD_01,
" Material Document Header Data
GOODSMVT_CODE LIKE BAPI2017_GM_CODE,
" Assign code to transaction for BAPI goods movement
MATERIALDOCUMENT LIKE BAPI2017_GM_HEAD_RET-MAT_DOC,
" Number of Material Document
GOODSMVT_ITEM LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER
LINE,
" Create Material Document Item
RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE
" Return table for messages
*Fill values in header
GOODSMVT_HEADER-PSTNG_DATE = '20030825'.
GOODSMVT_HEADER-DOC_DATE = '20030802'.
*Fill GOODSMVT_CODE
GOODSMVT_CODE-GM_CODE = '05' .
*Fill Item Table
GOODSMVT_ITEM-MATERIAL = '100-100'.
GOODSMVT_ITEM-PLANT = '1000'.
GOODSMVT_ITEM-STGE_LOC = '0001'.
GOODSMVT_ITEM-MOVE_TYPE = '501'.
GOODSMVT_ITEM-ENTRY_QNT = '50'.
GOODSMVT_ITEM-ITEM_TEXT = 'Test Sanket'.
*GOODSMVT_ITEM-COSTCENTER = '1000'.
APPEND GOODSMVT_ITEM.
*Create Good's movement
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = GOODSMVT_HEADER
GOODSMVT_CODE = GOODSMVT_CODE
IMPORTING
MATERIALDOCUMENT = MATERIALDOCUMENT
TABLES
GOODSMVT_ITEM = GOODSMVT_ITEM
RETURN = RETURN.
*Commit BAPI
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
*Display Goods movement number
FORMAT COLOR 6 INVERSE ON.
READ TABLE RETURN WITH KEY TYPE = 'E'.
IF SY-SUBRC = 0.
WRITE: /,'ERROR! Goods movement not created'.
ELSE.
WRITE: /,'Goods movent number',MATERIALDOCUMENT COLOR 5,
'posted for material',GOODSMVT_ITEM-MATERIAL.
ENDIF.
FORMAT COLOR OFF INVERSE OFF.
try this on report program and create a goods movement.
Sanket. -
How to create an unsolved cube with awm???
hi all,
I readed the "Oracle Olap developer's guide to the Oalp api" and I found there's 2 type of Cube: Solved and Unsolved Cubes. And this document says: "... if all the data for a cube is specified by the DBA, then the cube is considered to be Solved. If some or all of the aggregate data must be calculated by Oracle OLap, then the cube is unsolved ..."
I tried with awm 10.2.0.3.0A to create an unsolvedCube but I can't. All cubes I created are solvedCube. To know if a cube is solved or unsolved, I wrotte an program in Java to read informations of package mtm.
Some one can tell me how to create an unsolved cube with AWM ou other soft please!SH is not a relational OLAP data model which is quite different from the GLOBAL schema which is based on an Analytic Workspace.
If you change the aggregation method you will need to re-compute the whole cube which can be a very big job! You might be able to force the unsolved status be de-selecting all the levels on the Rules tab in AWM. However, I think by default analytic workspace OLAP models always provide a fully solved cube to the outside world. This is the nature of the multi-dimensional model.
Relationally, as keys are located in separate columns a cube can be unsolved in that the key column only contains values for a single level from the corresponding dimension tables. If more than keys for different levels within the same dimension appear within the fact key column then the cube is deemed as being solved.
Therefore, I am not sure you are going to get the information you require from the API. To changes the aggregation method you will have to switch off all pre-compute options and also disable the session cache to prevent previously calculated data being returned when you change the aggregation method.
Hope this helps
Keith Laker
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Samples: http://www.oracle.com/technology/products/bi/samples/ -
1. How to create an explain plan with rowsource statistics for a complex query that include multiple table joins ?
When multiple tables are involved , and the actual number of rows returned is more than what the explain plan tells. How can I find out what change is needed in the stat plan ?
2. Does rowsource statistics gives some kind of understanding of Extended stats ?You can get Row Source Statistics only *after* the SQL has been executed. An Explain Plan midway cannot give you row source statistics.
To get row source statistics either set STATISTICS_LEVEL='ALL' in the session that executes theSQL OR use the Hint "gather_plan_statistics" in the SQL being executed.
Then use dbms_xplan.display_cursor
Hemant K Chitale -
How to create a Sales order with ref to Contract using Function Module
How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?
We have a unique situation where we like change the sold-to customer of the sales order
once order has been created. These orders have been created using either by function module
BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
These two processes work abosolutely fine except someone might have change the sold-to
customer of the ship-to customer of the original sales order. If this the case then the new
sales order will be created with the old sold-to and with not the new sold-to.
We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
the returned parameteres of the BAPIs and they are all successful but sold-to remains the
same old one.
Any help would be much more appreciated. -
How to create a pdf file with CS5
Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts. Can someone please help me with this ? The "help" button in CS5 doesn't seem to cover this question. Nor do the FAQs.
Thank you very much.Save As... Photoshop PDF.
-
How to create a test plan with specific transactions (or program)
Hello,
I'm a new user in Sol Man !
How to create a test plan with specific transactions (or program).
In my Business Blueprint (SOLAR01) I've created in 'transaction tab' the name of my specific transactions and linked it.
In my test plan (STWB_2) those specific doesn't appear to be selected !
Thanks in advance.
Georges HUYNENHi
In solar01 you have defined but you have to assign the test case in solar02 for this test case in the test cases tab.
When you do so expand the business sceanario node in test plan generation of STWB_2 transaction and now that will appear.
Also visit my weblog
/people/community.user/blog/2006/12/07/organize-and-perform-testing-using-solution-manager
please reward points. -
How to create a web template with company logo
how to create a web template with company logo . can any one help me with the steps. or any notes. thnaks in advance .
2. i have 25000 articles and client want to have a selection feild to see top article ex:50,10,20, 100, 1000 etc . same for bottom articles . plz let me know how to do it . thanks for replay . i am new bw so plz .
thanks to you allHi
1) Please read
http://help.sap.com/saphelp_nw04/helpdata/en/4a/c8353c51aab32be10000000a114084/frameset.htm
2) Create a condition in the Query Designer: Use a formula variable
See http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm
Heike -
How to create a transport request with query and only with its structure.
HI guru,
how to create a transport request with query and only with its structure.transport request should not include any other query items like ( variables, conditions...etc)
thanks in advance.
venkataHi,
Goto RSA1 and then Transport Connection -> In SAP Transports select Object Types-> Query Elements -> Then select Query->Give Technical name of the query and then select for transfer. In the right side you can choose the components which you wanted to transport.
Regards,
anil -
How to create a csv file with NCS attributes?
Hi
i installed Cisco Prime NCS and trying to perform bulk update of device credentials with csv file.
How to create a csv file with all required attributes?
This is part of NCS online help talking about this topic:
Bulk Update Devices—To update the device credentials in a bulk, select Bulk Update Devices from the Select a command drop-down list. The Bulk Update Devices page appears.You can choose a CSV file.
Note The CSV file contains a list of devices to be updated, one device per line. Each line is a comma separated list of device attributes. The first line describes the attributes included. The IP address attribute is mandatory.
Bellow is test csv file i created but does not work:
10.64.160.31,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
10.64.160.31,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
The error i am getting while importing this file:
Missing mandatory field [ip_address] on header line:10.64.160.31,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
Assistance appreciated.It looks like the IP address field is incorrectly set.,
It should be as follows
{Device IP},{Device Subnet Mask}, etc etc
so a practical example of the aboove could be (i dont know if this is completely correct after the IP address / Subnet Mask)
10.64.160.31,255.255.255.0,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
below is a link to the documentation
http://www.cisco.com/en/US/docs/wireless/ncs/1.0/configuration/guide/ctrlcfg.html#wp1840245
HTH
Darren
Maybe you are looking for
-
Why can't I download Adobe Flash player since I upgraded to Yosemite?..
I have not been able to download Adobe flash player since I upgraded to Yosemite on my 13 in MacBook Pro purchased in Early 2011 Processor 2.3 GHz i5 Please Help!!
-
Howto: multiple sql-commands in oracle-xe
Hi, just installed the oracle-xe. Now I want to create tables, indexes etc within the sql-command tool. For example: CREATE TABLE ZUSTAENDIGKEIT ( INSTITUTION_ID VARCHAR2(30) NOT NULL, FUNKTION_ID NUMBER(4) NOT NULL, LIEGENSC
-
The Advantages of Hardware Encryption
If you're looking for instructions on how to use the Hardware Encryption feature of Crucial SED's, Brad_TheCru has posted a video and a written a guide to using BitLocker with Crucial SED An SSD that has encryption built into the hardware is more com
-
When selecting "Rotate Pages" from the "Document" drop down menu Acrobat 8 Professional 8.1.2 crashes. Every time, no error mesage. Have run "Repair Acrobat Installation" with no success. Any suggestions? Thanks.
-
DB2 stored proedure CF and DB GROUP
i am new to cf and in a previous post i explained ny current problem which is that CFMX7 is not finding my stored procedure. I am using Dreamweaver 8. i am now looking at the database group and under stored procedures i have "NONE". under the tables