BAPI or FM for Supply Area - PK05 using LSMW
Hi Folks,
I am transfering Supply area records (T-code PK05) to SAP using LSMW Recording method. But I am getting some errors.
Can any one mention any FM or BAPI or IDoc or any Batch Input or Direct Input Program for Supply area?
Thanks in Advance,
Asif Ali Khan
Hi,
Here is the thread which will give you the BAPI as well as the Function module
BAPI for CJ02
Regards
Sudheer
Similar Messages
-
Inbound Delivery For Scheduling Agreement Lines using LSMW
Hi,
We need to create inbound deliveries for scheduling agreements. Our scheduling Agreements are too big with 200 lines. But the vendor used to send only few discrete lines in his ASN. Is it possible to create inbound deliveries for the Scheduling agreement using LSMW? Is there any standard BAPI or IDOC available to handle this in LSMW? Has anyone done this before?
Our requirement is as follows.
1. Create Inbound Delivery for few lines of the Scheduling Agreement
2. The delivery quantity of the inbound delivery will be a partial quantity of the Scheduling Agreement
3. Materials are batch managed and the batch number for each inbound delivery item need to be captured.
4. Vendor's ASN Number and its item number need to be captured at inbound delivery header and item level respectively.
Note: Delivery Schedule of the Scheduling Agreement is not used in the above scenario.
If you have any input, it will be really appreciated.
Regards,
SP0526Hi,
You can give your scheduling agreement number in the field Purchase Order.
If you want select from the list, you can click on PO tree (just under create inbound delivery). There selet document category as "L". You will get the scheduling agreement list.
Regards,
Prabu -
Problem for uplaoding sales text using LSMW
Hi,
I have use LSMW for uplaoding material masters sales and purchase order text , first I have done for purchase order text with object : MATERIAL and ID : BEST it works fine for this after that when I am trying same for uploading sales text OBJECT : MVKE and ID : 0001 it is picking file proerly and till final BDC step it is not giving any error but in material master sales text is not getting updated for that material.
what canb be the problemm
also for pO text for matnr i have given only material code 18 Chr.
and for sales text i hva egiven MATNR + SALES ORG. + DISTRIBUTION CHANNEL as it required for sales text.
regards,
zafarDear Zafar,
I found a similar problem while uploading Porduction order long text. May be this information is useful for you.
The common task of changing the long text of a production orderu2019s operation can bring some surprises.
The first problem that is usually encountered is that after updating the long text with the function SAVE_TEXT, the new text is not visible in standard SAP transactions like CO03. The new text can be read with the function READ_TEXT though. The trick is that SAP uses the u201Clong text existsu201D indicator, the field TXTSP in the table AFVC. To make the text u201Cvisibleu201D to standard transactions, we have to set the TXTSP value to the current language (or the textu2019s language). Unfortunately, this has to be done with the direct UPDATE on the AFVC u2013 there are no known workarounds.
Another problem can be seen when the same order is processed by users that use different languages. While SAP allows to store the long text for the same operation in several languages, actually, only one text object will be active at the same time in regard to standard transactions u2013 the object in the last saved language. That means, when SAP writes the text back, the TXTSP will be overwritten with the current language (say, language A). If the next user is working in another language (language B), SAP will present the text in the u201Cfirstu201D language (A) in the CO03 (even if the text in language B exists!). But after saving, the text will be written in the new language and TXTSP will be set accordingly.
So, when working with long texts directly, you have to read with READ_TEXT using the language stored in TXTSP, NOT with the current language. When saving, you save in the current language and set the TXTSP to the current language. This way you are consistent with what SAP does and this will prevent you from surprises in a multilingual environment.
Regards,
Kamal -
BAPI or FM for Outbound Delivey Split using VLSP transaction
Hello All,
We are developing a application in Portal.In that,One of the requiremnt is ,we need to do a Delivery Split for the outbound delivery same like VLSP transaction from Portal.Please let me know is there any Function Module or BAPI available to do Outbound Delivery Split.
Thanks in Advance,
Vigneswaran SHi,
I need to create a new split delivery from the existing outbbound delivery.But this BAPI does not return any new split delivery.
Regards,
Vigneswaran S -
What is the standard program for Material Master upload using LSMW
Dear All
I am trying to use the MM upload using DATMIG_INF4. I want to know what are the different standard projects that are used for Material master upload.Hi Amol,
You can load the material master using direct input method in LSMW ,details of which are as follows:
Object 0020 Material master
Method 0000
Program name RMDATIND
Program type D Direct input
Please revert back in case of any doubt.
Cheers
VJ -
Supply area assignment in Production order
Hello All,
Is there supply area available in production order? As per my understanding the storage locations ( either issue or receiving ) data is available in the BOM of the Production order. But is there any field for capturing the supply area in the production order. If so from where is this supply area picked, is it from the Default supply area in the production version maintained in Material master?And in which tab can i see this supply area information in the Production order.
Regards
DivyaDivya,
There is no field for supply area that can be found in production order. However this filed is available in Work center Master data. WC is displayed in the operation screen of production order.
Supply area (SA) is used in the context of material replenishment area and is situated directly on the shop floor. Many work centers (WC) could be located within a single SA. This field is available in WC so that location of WC can be displayed easily on a large shopfloor.
I am sure this helps. For more questions please come back.
thanks,
Ram -
Production supply area (PSA) and supply area
Hi,
Is there any difference between supply area and Production supply area. it woul be good if you could explain me the difference.
Thanks,
MaxxBoth are same
Production Supply Area is the link between Warehosue Management and Production function.
Production supply areas (PSAs) are used for material replenishment and are situated directly on the shop floor in the production department. The supply area groups work centers near production storage bins based on the material staging methods. You need to enter the PSA in the work center master data.
http://help.sap.com/saphelp_46c/helpdata/en/c6/f8412f4afa11d182b90000e829fbfe/frameset.htm
Hope this helps.
An area on the shop floor where material is provided that can be directly used for production.
The supply area is used, for example, in KANBAN production control and for material staging using Warehouse Management (WM).
Proposed Supply Area in Material Master Record
The supply area is used as an interim storage area on the shop floor
which is used to provide materials directly at the production line.
The proposed supply area is mainly used for KANBAN materials that are
only or usually provided at one supply area in a plant. Here, this supply
area can be easily saved in the system.
The proposed supply area is used, for example, to determine the supply
area for the dependent requirements of a material.
The supply area in the dependent requirements of a material is required:
o to enable the system to calculate the KANBAN control cycles
automatically
o to enable you to select requirements in the pull list with reference
to a supply area -
Tips for lightening areas of a photo without masks
Hi guys, In the exmaple below there is an image that lightens areas in contrast to others. I know set up allowed for much of this to be performed before post processing, but the blends are really nice along with the hair.
I've tried using a luminosity mask for certain areas by using the channel mixer and then adjusting the blend if sliders. For any process I try I always end up using a lot of masks to control the adjusted areas.
Any tips for achieving this without the harshness of masks? Painting on masks or using the adobe mask edge dectection does not leave me with a realistic results.
Thanks so much!Personally, I'm very fond of the Dodge Tool.
I suggest you work at 16 bits/channel so you don't accumulate pixel error.
It takes a while to get to know the tool, e.g., how it responds to different image tones with Shadows, Midtones, or Highlights set. And don't try to reach your goal all in one stroke. Set the Exposure to a fairly low value and build up the effect with multiple strokes.
-Noel -
Which FM to use while creating a Profit Center using LSMW BAPI
Which FM to use while creating a Profit Center using LSMW using BAPI: BUS0015
Hi,
For creating Profit centre using LSMW bapi method.
You need to give this values in the 1st step of LSMW.
Business Object BUS0015
Method CREATE Create
Message Type PROFITCENTER_CREATE Create profit center
Basic Type PROFITCENTER_CREATE01 Create Profit Center
In We20 port creation use process code as BAPI
Regards,
Shan -
K8N Neo Platinum users (with stable systems!): what power supply are you using?
Please post its specs, namely the 12V rail.
Thanks!
EDIT: Users with a 6800 ESPECIALLY please post! =)Quote
Mr Woo- I think the question we should all be asking is who is using a high end PSU (30ish 12v amps) and also getting stability problems.
sorry mr woo This thread has been set up by k3nt to acess a specific prob he's having.
Quote
what PSU are you using?
K8N Neo Platinum users (with stable systems!): what power supply are you using?
Please post its specs, namely the 12V rail.
Thanks!
EDIT: Users with a 6800 ESPECIALLY please post! =)
and
Quote
I might be having to replace my Antec Truepower 480. Apparently its 22A on 12V rail is questionable considering my system? See my specs below in sig.
I feel if the thread was as u suggested would just be a mirror of this one
Worst PSU that works on an A64-system? -
Issues in using LSMW IDOC method for Article Hierarchy
Hi Experts,
I am working on a scenario for uploading article hierarchy using LSMW idoc method.
Details:
Message type WMATGRP
IDoc type WMATGRP01
But as per my understanig, for processing, there should be a inbound Function module/Process code. But I am unable to find out any process code for this in tcode WE42/We60.
Could you please help in this problem.
Regards
Krishan KumarHi Saeed,
For example if you want t create bom through lsmw then we will *** two files one header and other item one.In the same way .In lsmw start by keeping the idoc method i will only propose at second step how many files it need. Just map the idoc and see. Post if need more help.
Regards,
Madhu. -
Upload sales text for material master using LSMW direct input method
Hello Experts,
I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file
Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTH .
/SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file
Legacy Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File
ZLONG_TEXT Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
Step 10 -> Display converted data
1 /SAPDMC/LTXTH 1MVKE MATERIAL1 0001E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench
Project: ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty.
Please help me with the same.
Regards,
Ranjith NHello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure
/SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file Legacy
Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File ZLONG_TEXT
Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
tep 10 -> Display converted data
1 /SAPDMC/LTXTH 1 MVKE MATERIAL1 0001 E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench Project:
ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
Regards,
Ranjith N -
Convert Production Order using LSMW
Hi, we want to create Production Orders from a legacy system, and are exploring using LSMW. Has this been done before?
If we choose Batch Input Recording, handling different number of operations/components will be a problem. If we chooseStandard Batch/Direct Input there is no Object called Production Order. If we choose IDOC, it seems there are limitations on the use of message type LO1PRO. BAPI BAPI_PRODORD_CREATE cannot be used because ALE message type does not exist..
Please advise whether this is possible using LSMW....thanks!!!!!Hi all,
yes we have no problem coming up with a flat text file containing all the data. My question is:
since Production Order has both header and operation line items and component line items,
is this handled in LSMW? Because I do not see an object in LSMW called Production Order that
seems usable...
Of course we're looking at standard tools like LSMW first, before considering ABAP programs..
tks. -
I would like to do Pricing updation using VK11 Tocde.for this can I use LSMW ..?
otherwise which one will be better for pricing updation data load?Hi
You can use BDC or LSMW or BAPI deopending on your convenience
it is the programmer choice
Final aim is right data has to be uploaded to SAP for the transactions to happen.
So depending on your easiness you use any one of the above
see the sample bdc for the VK11.
report ZSDBDCP_PRICING no standard page heading
line-size 255.
include zbdcrecx1.
*--Internal Table To hold condition records data from flat file.
Data: begin of it_pricing occurs 0,
key(4),
f1(4),
f2(4),
f3(2),
f4(18),
f5(16),
end of it_pricing.
*--Internal Table To hold condition records header .
data : begin of it_header occurs 0,
key(4),
f1(4),
f2(4),
f3(2),
end of it_header.
*--Internal Table To hold condition records details .
data : begin of it_details occurs 0,
key(4),
f4(18),
f5(16),
end of it_details.
data : v_sno(2),
v_rows type i,
v_fname(40).
start-of-selection.
refresh : it_pricing,it_header,it_details.
clear : it_pricing,it_header,it_details.
CALL FUNCTION 'UPLOAD'
EXPORTING
FILENAME = 'C:\WINDOWS\Desktop\pricing.txt'
FILETYPE = 'DAT'
TABLES
DATA_TAB = it_pricing
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7.
WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.
OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.
if sy-subrc ne 0.
write : / 'File could not be uploaded.. Check file name.'.
stop.
endif.
CLEAR : it_pricing[], it_pricing.
DO.
READ DATASET P_FNAME INTO V_STR.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
write v_str.
translate v_str using '#/'.
SPLIT V_STR AT ',' INTO it_pricing-key
it_pricing-F1 it_pricing-F2 it_pricing-F3
it_pricing-F4 it_pricing-F5 .
APPEND it_pricing.
CLEAR it_pricing.
ENDDO.
IF it_pricing[] IS INITIAL.
WRITE : / 'No data found to upload'.
STOP.
ENDIF.
loop at it_pricing.
At new key.
read table it_pricing index sy-tabix.
move-corresponding it_pricing to it_header.
append it_header.
clear it_header.
endat.
move-corresponding it_pricing to it_details.
append it_details.
clear it_details.
endloop.
perform open_group.
v_rows = sy-srows - 8.
loop at it_header.
perform bdc_dynpro using 'SAPMV13A' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RV13A-KSCHL'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RV13A-KSCHL'
it_header-f1.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_CURSOR'
'KONP-KBETR(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'KOMG-VKORG'
it_header-f2.
perform bdc_field using 'KOMG-VTWEG'
it_header-f3.
**Table Control
v_sno = 0.
loop at it_details where key eq it_header-key.
v_sno = v_sno + 1.
clear v_fname.
CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.
perform bdc_field using v_fname
it_details-f4.
clear v_fname.
CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.
perform bdc_field using v_fname
it_details-f5.
if v_sno eq v_rows.
v_sno = 0.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
endif.
endloop.
*--Save
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
perform bdc_transaction using 'VK11'.
endloop.
perform close_group.
<b>Reward points for useful Answers</b>
Regards
Anji -
Initial inventory upload using LSMW,BDC
Dear Friends,
I am trying to upload data for Initial inventory capturing of valuation type for t.code MB1C using LSMW,BDC BECAUSE of valuation type it is not capturing
please guide me.I am using SAP Ecc 5 version.
Thanks in advance.
Rafeeq ahmedHi Sameer,
Have a look at these threads, they might help you
Chart of Accounts Upload
Problem: LSMW with transaction FS00 create account (BI is not generated)
Thanks
Janani
award points if helpful
Maybe you are looking for
-
I think i deleted my Isight and my camera isn't working. How do I fix it?
I deleted my isight i think and now i cant get my camera to work at all. Can i fix it myself or do i have to bring it into the apple store?
-
After restoring, computer won't start up.
Okay, here's what I've done. I inserted the Snow Leopard (in my case USB) and started up my computer from that. Under Utilities, I hit Restore from backup, chose my backup, restored fine. After 45 minutes, it says it's done and asks me to restart the
-
Classloader problem on deployment in OC4J...
When I try to deploy a bean with OC4J, I get a java.lang.NoClassDefFoundError because it can not find class located in the JDOM.jar. The jar is referenced from the ejb.jar manifest file, and the jar located in the ear file. I thought OC4J should find
-
Adobe InDesign CS6 stopped working
Up until late last year I was able to export to EPUB format without problems. Later on, when attempting to export to EPUB, I began receiving the error "Adobe InDesign CS6 has stopped working". Even after reinstalling InDesign, the error persists. A
-
I have set up my Apple ID and it is not allowing me to Choose "None" as the credit card information. It is making me key in a credit card and I have processed other apple IDs with no credit card on file? What is worng?