Lsmw for me21n transaction
Hi ,
I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
Thanks & Regards,
sreehari
Moderator Message: Search for available information on the web before posting
Edited by: kishan P on Sep 3, 2010 9:51 AM
Hi ,
I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
Thanks & Regards,
sreehari
Moderator Message: Search for available information on the web before posting
Edited by: kishan P on Sep 3, 2010 9:51 AM
Similar Messages
-
Lsmw for mb1b transaction.
hello,
is it possible to do lsmw for mb1b transaction.
if possible then how ?
any suggestions please.Hi
you can use the LSMW for the transaction MB1B .
Or
use the program to stock transfer from plant to plant :
REPORT YMBIE096 LINE-SIZE 80.
* Program: YMBIE096
* Author: Sheila Titchener
* Date: Mar 1999
* Purpose: To move stock to new plant
TABLES: MCHB.
* internal table
DATA: BEGIN OF I_MCHB OCCURS 0,
MATNR LIKE MCHB-MATNR,
LGORT LIKE MCHB-LGORT,
CHARG LIKE MCHB-CHARG,
J_2CTRNR LIKE MCHB-J_2CTRNR,
J_2CELNG LIKE MCHB-J_2CELNG,
CLABS LIKE MCHB-CLABS,
END OF I_MCHB.
*-----------------------new code smt nov 98-----------------------------
* batch input tables
DATA BEGIN OF BDCDATA OCCURS 100.
INCLUDE STRUCTURE BDCDATA.
DATA END OF BDCDATA.
DATA BEGIN OF MESSTAB OCCURS 10.
INCLUDE STRUCTURE BDCMSGCOLL.
DATA END OF MESSTAB.
SELECT-OPTIONS S_MATNR FOR MCHB-MATNR.
PARAMETERS: P_DISP AS CHECKBOX.
DATA W_MODE.
DATA W_MESSAGE LIKE MESSAGE.
START-OF-SELECTION.
SELECT MATNR LGORT J_2CELNG CHARG CLABS J_2CTRNR FROM MCHB
INTO CORRESPONDING FIELDS OF TABLE I_MCHB
WHERE MATNR IN S_MATNR
AND WERKS = 'BT'.
END-OF-SELECTION.
LOOP AT I_MCHB.
CHECK I_MCHB-J_2CELNG NE 0.
CHECK I_MCHB-J_2CELNG = I_MCHB-CLABS.
PERFORM MOVE_STOCK.
ENDLOOP.
*& Form MOVE_STOCK
* Call transaction MB1B to transfer stock
FORM MOVE_STOCK.
DATA: W_QTY(10).
WRITE I_MCHB-J_2CELNG TO W_QTY DECIMALS 0.
REFRESH: BDCDATA, MESSTAB.
PERFORM DYNPRO USING:
'X' 'SAPMM07M' '0400',
' ' 'RM07M-BWARTWA' '301',
' ' 'RM07M-WERKS' 'BT',
' ' 'RM07M-LGORT' I_MCHB-LGORT,
' ' 'BDC_OKCODE' '/0',
'X' 'SAPMM07M' '0421',
' ' 'MSEGK-UMWRK' '94',
' ' 'MSEGK-UMLGO' I_MCHB-LGORT,
' ' 'BDC_OKCODE' 'NLE',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0',
'X' 'SAPMM07M' '0421',
' ' 'MSEG-MATNR(1)' I_MCHB-MATNR,
' ' 'MSEG-ERFMG(1)' W_QTY,
' ' 'MSEG-CHARG(1)' I_MCHB-CHARG,
' ' 'BDC_OKCODE' '/0',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0',
* 'X' 'SAPMM07M' '0410',
* ' ' 'BDC_OKCODE' '/0',
*CODING BLOCK
* 'X' 'SAPLKACB' '0002',
* ' ' 'BDC_OKCODE' '/8',
*CODING BLOCK
* 'X' 'SAPLKACB' '0002',
* ' ' 'BDC_OKCODE' '/8',
'X' 'SAPLJ2CW' '0190',
' ' 'J_5C7-UMCHA' I_MCHB-CHARG,
' ' 'BDC_OKCODE' '/7',
'X' 'SAPMM07M' '0421',
' ' 'BDC_OKCODE' '/11',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0'.
IF P_DISP = 'X'.
W_MODE = 'A'.
ELSE.
W_MODE = 'N'.
ENDIF.
CALL TRANSACTION 'MB1B' USING BDCDATA MODE W_MODE UPDATE 'S'
MESSAGES INTO MESSTAB.
WRITE: / I_MCHB-MATNR, I_MCHB-CHARG, I_MCHB-LGORT,
I_MCHB-J_2CTRNR, I_MCHB-J_2CELNG.
IF SY-SUBRC NE 0.
* what to do if there's an error????
LOOP AT MESSTAB.
SY-MSGNO = MESSTAB-MSGNR.
CALL FUNCTION 'WRITE_MESSAGE'
EXPORTING
MSGID = MESSTAB-MSGID
MSGNO = SY-MSGNO
MSGTY = MESSTAB-MSGTYP
MSGV1 = MESSTAB-MSGV1
MSGV2 = MESSTAB-MSGV2
MSGV3 = MESSTAB-MSGV3
MSGV4 = MESSTAB-MSGV4
MSGV5 = MESSTAB-MSGV4
IMPORTING
* error =
MESSG = W_MESSAGE
* msgln =
EXCEPTIONS
OTHERS = 1.
WRITE: / W_MESSAGE.
* message id messtab-msgid type 'I' number messtab-msgnr.
ENDLOOP.
ENDIF.
ENDFORM. " CHANGE_BILLING_TYPE
* FORM DYNPRO - new form smt nov 1998
* > DYNBEGIN
* > NAME
* > VALUE
FORM DYNPRO USING DYNBEGIN NAME VALUE.
IF DYNBEGIN = 'X'.
CLEAR BDCDATA.
MOVE: NAME TO BDCDATA-PROGRAM,
VALUE TO BDCDATA-DYNPRO,
'X' TO BDCDATA-DYNBEGIN.
APPEND BDCDATA.
ELSE.
CLEAR BDCDATA.
MOVE: NAME TO BDCDATA-FNAM,
VALUE TO BDCDATA-FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM.
Edited by: raj on Jun 5, 2009 7:55 AM -
LSMW - for Customised Transactions
Hi,
I had read that LSMW is used for SAP Transactions but since we have BDC recording option in LSMW,cant we use LSMW for Custom Transactions ?/
Regards,
Chitwanjit SinghWell, I'll close my query here. I got the answer on internet.
Regards,
Chitwanjit -
How to create LSMW for a transaction having scroll bar
Hi all,
I am trying to create an LSMW for MP)! transaction for Uploading AMPL (Approved Manufacturer Parts list data) data.
For this LSMW is not working fine when i need to upload more number of records. Suggest me some way to solve it out,Also provide me some code samples and process if it can be handled with BDC.
Thanks,
Pavan.you can solve it with bdc:
e.g. a table control contains only 10 entries , you've to program the dynpro-change ( in german "Bildwechsel")
with sth like this:
ERG = BUZEI MOD 10 .
IF ERG = 1.
Dynpro darf nur alle 10 Zeilen prozessiert werden -
PERFORM BDC_DYNPRO USING 'SAPMF10B' '0150'. "ins
ENDIF.
add 1 to buzei.
A. -
Dear All,
I have a requirement to create PO using transaction ME21N. I had written a code to create PO using BDC for transaction ME21. But the user wants it to be modified to ME21N. The user wants the PO created in the foreground like the one i created fro ME21. But is it possible to use BDC for ME21N or is there any other way i can change the BAPI to foreground processing like in BDC?
Regards,
KarthikHi Raghavender,
This is a report to display and validate the RFQ's. And once the user selects the RFQ and clicks on Create PO from RFQ push button, it should go to transaction 'ME21N' with values from RFQ. ( similar to what we do in ME21N, when we drag RFQ from the documents overview and drop it into cart, the values are populated). I want the similar functionality to happen when the user clicks on clicks on Create PO push button. But it should happen only in the foreground and not background.
Regards,
Karthik -
Error in ecatt testing for me21n transaction.
Hi All,
I have created Test script, test data container and Test configuration for ME21N (create purchase order) transaction
While executing test configuration, I got below error message.
S00349 Field COBL-KOSTL. does not exist in the screen SAPLMEGUI 0014
Please help me for further action.
Many thanks
VikasHi Vikas,
Before running the test configuration, Please check ME21N transaction manually and find out the field
COBL-KOSTL and check whether it is mandatory or not.
If it found check your script whether that field is properly recorded or not.
May be this field is newly added as mandatory for that transaction
Regards,
Santosh.
Edited by: ABAP Santosh on Oct 19, 2009 9:17 AM -
BDC or lsmw for ABT1N Transaction
Hi gurus,
last day i got some problem when i do a lSMW for ABT1n Tran.i am thankful to u if u please help me that how can i do it.please give me a complete document for that trans and also a text file so that i properly update it.
if u do any BDC program for that transaction please give me that program .it's very urgent for me....
Thanks in advance....Hi Steve,
BAPI_HU_CREATE itself creates HU. You can refer the HU number genrated by this BAPI itself. I hope you are calling bapi as below:
CALL FUNCTION 'BAPI_HU_CREATE'
EXPORTING
HEADERPROPOSAL = L_WA_HU_HEAD
IMPORTING
HUHEADER = L_WA_HU_HEADER
HUKEY = L_V_HU_NUMBER
TABLES
ITEMSPROPOSAL = L_I_HU_ITEM
RETURN = I_HU_RETURN
HUITEM = L_I_CREATE_HU.
Here, L_V_HU_NUMBER is the HU generated.
Thanks,
Archana
Edited by: Archana Pawar on Sep 29, 2010 7:47 AM -
User_Exit (Condition Class) for ME21N Transaction
Hello Gurus !!.
I need one User_Exit for the ME21N Transaction what
is activate into the moment of Conditions Class input
(tax), the idea is to take one value of one Z table, make
one calculate betwen Z table Value and Condition Class tax
whose result will be return to the Value of Condition.
Thank Very Much for yours help.Hi,
You can try any one of the user exit;
MM06E005 - Customer fields in purchasing document
MEQUERY1 - Enhancement to Document Overview ME21N/ME51N
Bye,
Muralidhara -
LSMW for MSC1N Transaction to Create Batch
Hi,
I want to create Multiple batches for Large number of Materials.
Could any body Please suggest me how to write LSMW for MSC1N.
Thanks
Bhuvanathe very first step of LSMW gives you the option to choose the import method.
SAP provides 2 import methods ready for use:
BAPI method:
BUS1001002
SAVEREPLICA
BATMAS
BATMAS03
and IDOC method
BATMAS
BATMAS03 -
Dear all,
For the migration data project , to migrate sales transaction(contract) from our legacy system to SAP in a huge amount, we use LSMW with I doc processing, we upload the data with three steps :
1. first we upload the sold to party, 2.then we upload the ship to party,3.we upload the bill to party.
When im upload the sold to party, the system otomatically generate ship to party and bill to party with the same number BP as sold to party, so when i upload the ship to party, my contract become have two ship to party, and its also happen when i upload the bill to party. We have use the same method 6 month ago to our system and this situation doesn't happen back then(back then the system dosen't otomatically generate ship to party and bill to party with the same number BP as sold to party). Could anyone tell me what could be the problem? Thank you.
Regards
IndahDear Glenn,
I'm doing LSMW in CRM, just for information i already done building relationship for sold to party, bill to party and ship to party, one sold to party may have many ship or bill to party. And the data is really huge so i can't mantain which the main partner for sold to party each time, because they could have different ship to party,do you have another solution??
Thank you
Regards
Indah Puspita
Edited by: Indah Puspita on Jan 7, 2008 8:38 AM -
Regading LSMW for VD01 transaction
HI,
This is KSR Saireddy. i am getting the problem in LSMW at the the STEP Create Batch Input Session.i am executing this step,now i am getting the file name as ZIMS_91_ZIMS_91_MIGRT_CUSTOMER.lsmw.conv after excuting it is giving the message that Transaction VD01 not supported can any body please give me answer why VD01 is not supported .Hi Selva,
LSMW is a detailed 15 Step process to transfer Data from Flat file to SAP System.It is fairly simple provided you have some hand holding for the first time with some ABAP team member.
Please go through the details as mentioned in the [thread|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf].We can discuss it in detail once you are through.
Broadly speaking our purpose in LSMW is to do :
RECORDING PROGRAM:A screen by screen recording of a transaction that we intend to use ( for eg.QP01). These screen by screen records are stored and served as a reference later on.
SAMPLE TXT FILE: This recording gives us a txt file with fields that nees to be replaced with upload file in the same format
UPLOAD FILE: Add all information in the file that you need to upload in SAP in separate rows
EXECUTE BDC:The recording program executes screen by screen in same sequence and uploads the data as in the UPLOAD File.
This description is very simplistic view of LSMW based on my exposure. I am sure that there are many more features than just this (like Filtering, Conversion etc.)
Open up a new thread. We can discuss this in further detail if required.
Thanks,
RAVI. -
User exit or Badi for ME21N transaction
Hi Gurus,
In ME21N tranasaction i need to make the field 'Free Item' ( checkbox ) as a mandatory field at item over view level for specific document types. so that user can't save the PO order with out checking the checkbox.
So is there any exit or badi to achieve the functionality.
Thanks in advance.
Regards,
krisc.Hi gurus,
Thank you very much for your replies.
I resolved this issue my self.
Thanks,
krisc. -
LSMW for transaction PA30.
Hi Experts,
I want to know the steps to create LSMW for Transaction code PA30 (recording).Please dont send me LSMW for other transactions.....I need the steps only for PA30 transaction. Points will be rewarded.Check this site for LSMW document..
http://www.erpgenie.com/abap/index.htm
Check this link for Step-by-Step Guide for using BAPI in LSMW with screen shots
http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
Check these threads.
Inbound Idoc With LSMW
LSMW Using IDOC
Also check this link too
http://www.abapprogramming.blogspot.com/2007/08/difference-between-conversion-and.html
regards. -
LSMW for transaction code -TRS_SEC_ACC- Securities Accounts
Hi Experts,
I have to create a LSMW for the transaction code TRS_SEC_ACC.please help me to find out any standard method for the above to create the Securities Accounts.
Regards
SwarajI have never worked with the transaction
TRS_SEC_ACC
but F4 search help in Bapi method in LSMW gives me
BUS5200
CREATE
maybe OSS Note 777320 - CMS 3.0: Data migration from CML to CMS
can help you further -
Hi,
Need your help for solving an issue related to ME21N ( Purchase Order Creation)
I am having ZVRL(say) condition type that is mandatory and is defined in pricing schema ZVVA01(say).ZVVA01 is further attached to purchase organisation 4000 (say).
I am having a document type ZVVN . I want to save the purchase order without ZVRL (Defined as Mandatory condition) for particular document type ZVVN. But as ZVRL is mandatory condition , So system does not allow me to save the purchase order.
For solution following option have been ruled out by the client-
1) Through a separate vendor schema with different purchase organization.
2) Entering any value like .01 or .002 for the mandatory condition type that is for ZVRL.
Other than above two, Can anyone please tell me if there is any exit/badi/ or pricing routine available through which we can avoid mandatory ZVRL condtion for particular document type ZVVN at the time of saving and changing the Purchase order.
Thanks
Deepak GuptaHi,
Check all user exit for ME21N
Transaction Code - ME21N Create Purchase Order
Exit Name Description
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processin
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
See which is suitable for your requirement.
Maybe you are looking for
-
I have 4 children under the age of 11. I would love it if there was an app that said you have to do a certain amount of minutes on educational apps first THEN you could do fun games. At the very least have a running total at the end of each day and w
-
IPOD Shuffle not recognized by computer, and caused a USB power surge
Device is not recognized by computer, and I tried the listed support recommendations. The problem originated when I plugged the IPOD shuffle directly into the computer USB ( not using a hub), and this caused a warning window to appear saying unknown
-
Hi, I have a File ---> SAP PI ---> JMS (SonicMQ) scenario. I have done the settings and the message is passed successfully to the SonicMQ broker. However the end system is complaning that the received message is a text file and not a xml file. How sh
-
i cant change my card info in the system my other card was expired and i forgot to change it what do i do
-
Script Object when rendering to HTML
Hi, I am developing a form that requires the same script to be reused many times. This form is going to be rendered out to HTML through Workflow, and I'm not sure how to access a script object when rendering to HTML. The root of my form is MISForm so