Quantcast
Channel: SCN : Discussion List - SAP ERP - Logistics Materials Management (SAP MM)
Viewing all 7060 articles
Browse latest View live

SAP Script recording and play back error - unterminated string constant

$
0
0

Hello All ,

 

I am trying to upload source list records with ME01.

 

I know I can utilize LSMW to do so....but I am trying with SAP script and recording.

 

Below is the VB code for the same, and getting error while execution such as "unterminated string constant"

 

I am not able to rectify the error, I checked the code if I missed any quotation mark in the string but not the case.

 

Kindly suggest if you have faced similar issues before....

 

I reffered the document created by Mariano Cabalen

-----------------------------------------------------------------------------------------------------------------------------------------------

If Not IsObject(application) Then

   Set SapGuiAuto  = GetObject("SAPGUI")

   Set application = SapGuiAuto.GetScriptingEngine

End If

If Not IsObject(connection) Then

   Set connection = application.Children(0)

End If

If Not IsObject(session) Then

   Set session    = connection.Children(0)

End If

If IsObject(WScript) Then

   WScript.ConnectObject session,     "on"

   WScript.ConnectObject application, "on"

End If

session.findById("wnd[0]").maximize

REM ADDED BY EXCEL *************************************

Dim objExcel

Dim objSheet, intRow, i

Set objExcel = GetObject(,"Excel.Application")

Set objSheet = objExcel.ActiveWorkbook.ActiveSheet

For i = 2 to objSheet.UsedRange.Rows.Count

COL1 = Trim(CStr(objSheet.Cells(i, 1).Value)) 'Column1

COL2 = Trim(CStr(objSheet.Cells(i, 2).Value)) 'Column2

COL3 = Trim(CStr(objSheet.Cells(i, 3).Value)) 'Column3

COL4 = Trim(CStr(objSheet.Cells(i, 4).Value)) 'Column4

COL5 = Trim(CStr(objSheet.Cells(i, 5).Value)) 'Column5

COL6 = Trim(CStr(objSheet.Cells(i, 6).Value)) 'Column6

COL7 = Trim(CStr(objSheet.Cells(i, 7).Value)) 'Column7

REM ADDED BY EXCEL *************************************

session.findById("wnd[0]/tbar[0]/okcd").text = "/nME01"

session.findById("wnd[0]").sendVKey 0

session.findById("wnd[0]/usr/ctxtEORD-MATNR").text = COL1

session.findById("wnd[0]/usr/ctxtEORD-WERKS").text = COL2

session.findById("wnd[0]/usr/ctxtEORD-WERKS").setFocus

session.findById("wnd[0]/usr/ctxtEORD-WERKS").caretPosition = 4

session.findById("wnd[0]").sendVKey 0

session.findById("wnd[0]/usr/tblSAPLMEORTC_0205/ctxtEORD-VDATU[0,0]").text = COL3

session.findById("wnd[0]/usr/tblSAPLMEORTC_0205/ctxtEORD-BDATU[1,0]").text = COL4

session.findById("wnd[0]/usr/tblSAPLMEORTC_0205/ctxtEORD-LIFNR[2,0]").text = COL5

session.findById("wnd[0]/usr/tblSAPLMEORTC_0205/ctxtEORD-EKORG[3,0]").text = COL6

session.findById("wnd[0]/usr/tblSAPLMEORTC_0205/ctxtEORD-AUTET[10,0]").text = COL7

session.findById("wnd[0]/usr/tblSAPLMEORTC_0205/ctxtEORD-AUTET[10,0]").setFocus

session.findById("wnd[0]/usr/tblSAPLMEORTC_0205/ctxtEORD-AUTET[10,0]").caretPosition = 1

session.findById("wnd[0]").sendVKey 0

session.findById("wnd[0]/tbar[0]/btn[11]").press

REM FINALIZATION CONTROL CHECK ************************

aux=col1 & " " & col2 & " " & col3 & " " & col4 & " " & col5 & " " & col6 & " " & col7

CreateObject("WScript.Shell").run("cmd /c @echo %date% %time% " & aux & " >> C:\SCRIPT

\PlOrCreationLog.txt")

next

msgbox "Process Completed"

REM FINALIZATION CONTROL CHECK ************************


Procurement KPI's

$
0
0

Hello everybody!

 

Please help me to find the following information - each mobth I need to make a report that includes the following information:

  1. Quantity of PR's created and released per period
  2. Quantity of PO's created per period
  3. Quantity of PO's that went for reapproval per period
  4. Quantity of open PO's per period

 

May be I can get this information throught some report or table?

 

Thanks for help

Exchange Rate difference at the time of MIRO posting to Inventory instead of Exchange Gain/loss

$
0
0

Hello Gurus,

 

I have a scenario where PO is in foreign currency say USD and my local currency is ZAR. I want to post the exchange rate difference to exchange gain and loss which arises due to the timing difference between GR and Invoice receipt  instead of inventory account provided my inventory is at V- Moving average.

 

I understand the OBYC setting KDM will work or I need to some other settings.

 

One example below:

 

There is a PO of 10 Units for 10 USD each hence total will be 100 USD. (no fixed exchange rate used)

 

Goods receipt done on 01.02.2016 when the rate was 10 ZAR to 1 USD

 

Local currency entry will be :

 

Stock Account       DR      1000 ZAR

To GR/IR Account CR.     1000 ZAR

 

 

 

Now on 01.03.2016 I received the invoice when the rate was 11 ZAR to 1 USD

 

GR/IR                          DR     1000 ZAR (original posted amount)

Vendor Account           CR     1100 ZAR (current exchange rate)

Inventory Account           DR     100 ZAR (exchange rate diff.)

 

 

But now I want system to post that 100 ZAR exchange rate difference to exchange gain and loss and not to inventory account even though my stock account is at moving average proce control.

 

Please advise

 

Thanks in advance for your valuable advise.

 

Regards

Rohit

Book quantity coming Zero

$
0
0

Hi,

Inspite of getting rejected for my previous post from the admin here, I cudnt find the proper result.

 

I do not know on what basis one can say that Physical Inventory count can never be zero whereas I did testing on matls and obvious the count can be zero.

 

But currently the issue is one material in MMBE showing 1. After that when I am going for MI01, MI04 opting for Zero count and then to MI20....the book qty of that same material showing Zero.

 

Seriously if possible can anyone suggest the right way to guide or any clue would be very much anticipated and appreciated as well.

M7019- Combination of movement type 122 (note 306919) & function selected not possible

$
0
0

Hi Experts,

 

Getting a wired error in production, but could not replicate in test system.

 

While doing return delivery using material document in MIGO & it will be posted thru 122 MT.

 

Already checked the note 306919, but not much useful.

 

M7019- Combination of movement type 122 (note 306919) & function selected not possible.

 

 

Thank you,

Ravi

Prerequisite of running MRP

$
0
0

Hi, friends,

 

I am new in MM, here is a question confused me .

 

according to SCM 500,  before running MRP, we need "activate material requirements planning" and "carry out overall maintenance of plant parameters"

 

But according to TAMM40, We need "set up planning file" instead of " carry out overall maintenance of plant parameters"

 

what's the relationship between them,  are they talking about the same thing?

 

Thanks

 

TANG

Sub-division of batch

$
0
0

Hi experts,

I have received a requirement where the user want to sub-divide his existing batch for materials as Slow moving or No Moving. That is when we check stock of material in MMBE or any other Tcode, it should show additional line below batch in particular storage location as shown below.

 

                                                              Unrestricted stock | Quality inspection | ........

Company code ---------------------------------------100.00

.....Plant -------------------------------------------------100.00

.............Storage location--------------------------100.00

......................Batch--------------------------------100.00

.............................Slow moving--------------80.00

.............................No moving-----------------20.00

 

The user does not want a separate storage location, and no other settings from MSC2N (restricted / un-restricted). Is there any standard functionality or modifications available for this? Please suggest.

 

Thank you in advance.

Service entry sheet quantity should not copy from PO

$
0
0

Dear SCN's,

 

While doing service entry sheet in ML81N we give PO number and click adopt services icon then system copies every line item in PO in service entry sheet screen. Now the client requires the PO quantity in SES screen should not copy open PO qty and it should be blank so that user can enter the quantity, is there any possible solution to fulfill the requirement.


transfer posting 301mvt with two different profit centers

$
0
0

Hello All

Our business need to close the active plant (PLNT1) because of legal issue.

So they decided that existing stock will move with 301 mvt to another plant (PLNT2).

but here the problem is with diffrent profit centers.

it meas PLNT1 is having PRFCNTR1

            PLNT2 is having PRFCNTR2

 

please suggest in this case how we will move the materials from PLNT1 to PLNT2??

What will be the risk when transferring materials with 2 profit centers??

Please advice.

 

Regards

Pabbati Obulesu

Invalid factory calendar or error in the factory calendar BE

$
0
0

Hello Experts,

 

We are getting below error while creating purchase order-

"Message no. 61063

Invalid factory calendar or error in the factory calendar BE"

 

 

We checked assigned factory calendar to plant 1003 is BC then why system is shooting error for factory calendar BE? Refer below screen shot.

 

Please advise.

 

Thanks and Regards,

Anurag

Message no: M7001 Check table YEBEFU_CR: entry in MBRL

$
0
0

Dear experts,

 

While  use tcode MBRL return goods to vendor, with respect to Purchase Order, we have been getting below message;

 

Check table YEBEFU_CR: entry  4500000007 00010 does not exist

Message no. M7001

Diagnosis

In table YEBEFU_CR the entry  4500000007 00010 is missing.

 

I try to check table YEBEFU_CR but there is no table with that name.

 

 

i have check the link http://scn.sap.com/thread/1408073

 

But It does not help me.

 

How can I resolve this situation?

 

Best regards,

PO and GR not matching with price.

$
0
0

Hi Gurus,

 

I came to see one scenario where Non-stock PO created with 9 pieces of  3600 value each total 32400 AUD, GR is done for it but AP has posted correct value 3600 instead of 32400 value.

Later it was identified and cancelled the GR and modified PO with price per unit 400 to 9 pieces with 3600 value with tax it is 3960 .

After doing the GR the price is not matching with PO price it is coming up with 6800.Even though cancelled the GR but it is not picking the correct value.

 

Invoice Receipt is done for 3600 with QTY 1, but actual qty is 9 and it is posted from opentext. Please refer  the below screenshot and help how to correct the value of GR.

 

I wanted GR to be correct with PO value and IR should be matching with total QTY. Please advice what can be done for this.

 

PO screen.png

Regards,

 

Harsh

Gr reversal After invoice is been posted

$
0
0

Hi,

I have a PO for which GR is done .

then invoice is been posted for the GR.

 

but even after posting invoice , i am able to cancel the GR.

 

I undrstood that , after u post invoice , u cannot cancel GR without canceling invocie.

 

then why this is happening?

 

Please help .

 

Thansk in advance

 

Akkshaya

Subcontracting accounting entries mismatch MIGO vs MIRO

$
0
0

Hi,

 

There is a situation in subcontracting we are having Freight condition FRC1 for the purchase order, since the fright has been introduced in accounting document we have FR1 and the FRN entries, but during the MIRO the entries are mismatching with the MIGO entries, i will put up the screenshots of the MIGO and MIRO, kindly help me out to understand this issue.

 

 

 

MIGO

 

4.jpg

MIRO

 

5.jpg

 

Regards

Vendor Evaluation

$
0
0

Hi Experts,

 

Struggling on vendor evaluation fulfilling organization requirements. Request you to have a look at the attachment.

 

BR

 

Nader


Changeabilty in Release Indicator in Purchase Order

$
0
0

Dear SAP Expert,

 

I'm a newbie is SAP MM and currently doing support for Logistics team. I would like to ask few questions regarding changeability in release indicator that we used in release strategy in PO. Currently I having a doubt with my existing release strategy for PO.

 

Existing configuration used changeability 2 - "Changeable, no new determination strategy" in the release indicator R (Released), which means after all approvers approved the PO any changes are allowed in the PO including values and quantity and system will not retrigger the release strategy.

 

This will allow buyers to change values and quantity again after the PO approved without approvers knew it and send it to vendor which is for me is wrong process and how SAP tackle this issue.

 

Thus I would like to know actually what is the use of changeability 2 in the PO release indicator.

 

Thank you.

 

Best regards,

Hafiz

Subcontracting Purchase Order with Delivery Cost

$
0
0

Hello Experts,

 

I am facing issue during Goods Receipt against Subcontracting Purchase Order.

 

 

Note:

a) Subcontracting PO has delivery cost given 200 /pc.

b) Condition type Z001 for Delivery has Condition Category "B" with accrual checked.

c) Pricing Procedure has Accrual Key FR1 with condition type Z001

d) Condition Z001 is common for Standard Item Category PO and Subcontracting PO for delivery cost.

 

During Goods receipt, system generates following accounting.

 

BSX     Inventory-SemiFinish     M     S     521.12

WRX     GRIR Clrg-Mat A/c     S     H     100.00-

BSV     Inc/Dec. in Semi-F     S     H     521.12-

FRL     Job Work                          S     S     100

FRN     Freight Clearing A/c     S     S     100

FR1     Freight Clearing A/c     S     H     100.00-

BSX     Inventory-RM(Domest)     M     H     321.12-

GBB     RM Consumed-Domestic     S     S     321.12

 

As shown above FRN is the account which is the resultant of Devliery cost during Subcontracting. Entry of this Key is not completely knocked off in this transaction and next transaction for invoice verification MIRO.

 

My query:

A) Can we stop account posting for FRN.

B) If not How will FRN entry be knocked off, (Entry for FR1 gets set off during MIRO- Invoice verification.)

C) In case B is not possible, Posting in account  assigned to FRN Key will always show values.

 

Can any one help me to confirm that Entries above during Goods Receipt are ok, If not what sort of changes are required.

Can we use same condition types for Delivery cost for Standard Item category PO and Subcontracting PO .

 

Awaiting reply,

 

Regards,

Manish

Own Action and Reference in MIGO

$
0
0

Dear Gurus,

 

I have the following scenario in STO.

 

In MIGO for goods issue I choose "A07 Goods issue" and in next field "R01 Purchase Order" and enter the PO number.

 

Actually my company have so many STO process.

 

I want for a specific STO, to create "Z07 Goods Issue XYZ Company" and in next field "Z01 Purchase Order/Stock Transport Order" or even while creating PO for STO heading should be Stock Transport order. so that STO should dispaly as a Z01.

 

Did it is possible in the standard configuration, please reply.

 

thanks.

 

Message was edited by: Jürgen L

Regarding WE101parameter and Still to be invoiced (quantity) in ME2L Report

$
0
0

Hi Experts,

 

We need to develop BW report similar to ME2L report with WE101 parameters. I want to know what exactly is the role of WE101 parameter in ME2L report.

 

According to me, It will display those items whose Quantity of Goods Received < Scheduled Quantity from the table EKET and those whose Delivery Completed Indicator is not checked in EKPO table. Please correct me if I'm wrong.

 

Also I can see two fields in table EKET - Quantity of Goods Received and Issued Quantity. What is the difference between these two fields.

 

When I checked in SPRO for WE101 setting, its showed as below-

Capture.PNG

What does the above setting indicates. Do I have to consider this into account for understanding which items to be displayed and which not in ME2L Report. Should the above all 3 highlighted conditions to be satisfied ? Kindly provide the explanation of above settings and also tell me the table names with fields in which I have to look for Delivered & Ordered quantity, Delivery Completed Indicator and Blocked Stock.

 

Also I'm looking for the table & its field in which I can find "Still to be invoiced(quantity)". The table EKBE will not be having the records for all "Purchase Order Numbers" and thus will not help.  Is there any other table which can provide this ?

 

Thanks & Regards,

Shruti Yendigeri

Different Info Records for one material-vendor-combination

$
0
0

Hey guys,

 

I need help regarding a requirement of our business.

We have seven subsidiaries. Most of them procures the same material from the same vendor, but they have partially another vendor material number or different order units.

The problem is, that the general data view of the info record is the same for all purchasing organizations and all company codes, but the fields on the general data need to be maintained differently.

Is it possible to create different info records for the same combination material/vendor, so that the subsidiaries has its own info record?

 

Thanks in advance!

 

BR
Deniz

Viewing all 7060 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>