How do I input data for a switch parameter?
Complete newbie to powershell...I have set a parameter to be mandatory, but I am not familiar with the input format to make it work. My parameter looks like this
[Parameter(Mandatory = $true)[switch] $isValid
now when I run my code and it asks for the input value for $isValid, what is the right syntax? So far i have tried just typing "$true", "false", "1", "0", '-isValid"(all without the quotes), but it doesn't accept
anyone I have tried to put in. Any Ideas how I can get my code to accept the input?
A switch statement is typically $False when not being used and $True when you use it and have not set the value of it to $True in the parameter.
Function Foo {
[Cmdletbinding()]
Param (
[parameter()]
[switch]$Switch
Write-Verbose "Switch: $Switch"
If you want it to be $True by default:
Function Foo {
[Cmdletbinding()]
Param (
[parameter()]
[switch]$Switch = $True
Write-Verbose "Switch: $Switch"
Then you would need to use: Foo -Switch:$False
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book
Similar Messages
-
Error message 00 344 : No batch input data for the screen SAPMF02D 0324
Hi Experts,
We are working with SAP CRM 4.0 and SAP R/3 6.20
We have an important number of BDocs (type 'BUPA_MAIN' ) in status E02 with the error message
00 344 : 'No batch input data for the screen SAPMF02D 0324'.
Can any one help us to explain the cause of this message and how to resolve it ??
Thanks you in advance for your help !
Best regards,
Nabil.Any ideas ?
We really appreciate your help ! -
BDC - Session Method - No batch input data for screen SAPMZ_TPSCREEN02 100
Hi ABAP Experts,
I have written a Dialog Program For a Screen Which contains 5 fields namely,
carrid,
connid,
fldate,
price,
planetype.
I have written the PAI logic to insert whatever entries entered in the fields, into Database Table SFLIGHT.
I created a Transaction and Tested whether the entries are succesfully entetered into the Database Table and it works just fine.
Now i planned to write a BDC program for the above Transaction so that i can upload data to the Database table from a flat file.
I went to SHDB transaction and created a new recording and transferred the program to generate a source code.
include bdcrecx1.
start-of-selection.
loop at itab.
perform open_group.
perform bdc_dynpro using 'SAPMZ_TPSCREEN02' '1000'.
perform bdc_field using 'BDC_OKCODE'
'=CREA'.
perform bdc_field using 'BDC_CURSOR'
'SFLIGHT-PLANETYPE'.
perform bdc_field using 'SFLIGHT-CARRID'
'AA'.
perform bdc_field using 'SFLIGHT-CONNID'
'0017'.
perform bdc_field using 'SFLIGHT-FLDATE'
'11/01/2007'.
perform bdc_field using 'SFLIGHT-PRICE'
'767'.
perform bdc_field using 'SFLIGHT-PLANETYPE'
'A310-200F'.
perform bdc_transaction using 'Z_TPSCREEN02'.
perform close_group.
Then i defined an internal table which contains the same fields as those in my Screen and Transaction.
I populated the internal table from a flat file using GUI_UPLOAD function module.
I want to clarify - I got this flat file by using the GUI_DOWNLOAD module and later i uploaded the same file using GUI_UPLOAD.
I tested whether the internal table is populated or not using LOOP AT ITAB. WRITE Statements.
Its working just fine.
Finally my code look like this.
report ZVMREC
no standard page heading line-size 255.
TABLES: sflight.
DATA: BEGIN OF itab OCCURS 0,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
price TYPE sflight-price,
planetype TYPE sflight-planetype,
END OF itab.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:\users\vamc\documents\flightinfo.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
tables
data_tab = itab.
include bdcrecx1.
start-of-selection.
loop at itab.
perform open_group.
perform bdc_dynpro using 'SAPMZ_TPSCREEN02' '1000'.
perform bdc_field using 'BDC_OKCODE'
'=CREA'.
perform bdc_field using 'BDC_CURSOR'
'SFLIGHT-PLANETYPE'.
perform bdc_field using 'SFLIGHT-CARRID'
'AA'.
perform bdc_field using 'SFLIGHT-CONNID'
'0017'.
perform bdc_field using 'SFLIGHT-FLDATE'
'11/01/2007'.
perform bdc_field using 'SFLIGHT-PRICE'
'767'.
perform bdc_field using 'SFLIGHT-PLANETYPE'
'A310-200F'.
perform bdc_transaction using 'Z_TPSCREEN02'.
perform close_group.
endloop.
I checked for errors, activated and executed.
I gave session name and executed, it generated same number of sessions as number of records.
I went to SM35 and Processed one of the sessions in foreground.
It brought my screen up with all fields fill up by the fields of first record in the internal table and with
OK Code popping up.
I check the OK Code.
Now the problem has come up, its says
*No batch input data for screen SAPMZ_TPSCREEN02 1000 *
My session was now incorrectly processed,
Please help me to fix this problem.
I searched so many forums and google it a lot.
But i didn't find any clue.
Kindly take your time and have a look at this problem and let me know how can i fix it.
Thank you very much all.
Shiv
Edited by: Sivaram Naga on Apr 15, 2008 5:57 AMI used this code to convert the date format. I'm still getting the short dump.
DATA: v_yyyy(4) TYPE c,
v_mm(2) TYPE c,
v_dd(2) TYPE c,
v_date(8) TYPE c.
v_yyyy = itab-fldate(4).
v_mm = itab-fldate+4(2).
v_dd = itab-fldate+6(2).
concatenate v_yyyy v_mm v_dd into v_date.
I'm once again, putting my code.
report ZVMREC
no standard page heading line-size 255.
TABLES: sflight.
DATA: BEGIN OF itab OCCURS 0,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
price TYPE sflight-price,
planetype TYPE sflight-planetype,
END OF itab.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:\users\vamc\documents\flightinfo.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
tables
data_tab = itab.
include bdcrecx1.
start-of-selection.
loop at itab.
DATA: v_yyyy(4) TYPE c,
v_mm(2) TYPE c,
v_dd(2) TYPE c,
v_date(8) TYPE c.
v_yyyy = itab-fldate(4).
v_mm = itab-fldate+4(2).
v_dd = itab-fldate+6(2).
concatenate v_yyyy v_mm v_dd into v_date.
perform open_group.
perform bdc_dynpro using 'SAPMZ_TPSCREEN02' '1000'.
perform bdc_field using 'BDC_OKCODE'
'=CREA'.
perform bdc_field using 'BDC_CURSOR'
'SFLIGHT-PLANETYPE'.
perform bdc_field using 'SFLIGHT-CARRID'
ITAB-CARRID.
perform bdc_field using 'SFLIGHT-CONNID'
ITAB-CONNID.
perform bdc_field using 'SFLIGHT-FLDATE'
V_DATE.
perform bdc_field using 'SFLIGHT-PRICE'
ITAB-PRICE.
perform bdc_field using 'SFLIGHT-PLANETYPE'
ITAB-PLANETYPE.
perform bdc_transaction using 'Z_TPSCREEN02'.
perform close_group.
endloop.
Kindly take a look at it and please help me out. I tried very hard. But i dont understand why?
Thanks
Shiv
Edited by: Sivaram Naga on Apr 15, 2008 5:46 PM -
No batch input data for screen SAPMSSY0 0120 when running BDC in background
Hi Experts,
I am facing an issue "No batch input data for screen SAPMSSY0 0120" when running a BDC for VA01 in background.
The scenario is like we have EDI orders coming into SAP in the form Idocs. These EDI orders are processed by Function module
IDOC_INPUT_ORDERS. This FM module internally calls VA01 (Call Transaction) to create Sales Orders in SAP.
Now we have a scenario in which we want a popup screen to come up & ask for selection of record from list of records displayed on popup screen. In background since we can not show up a screen, we are programatically selecting the record we want & going ahead.
Now what is happening is during foerground the functionality is working abosultely fine, that is incoming idoc is getting posted successfully in SAP with status of 53. Incase of back ground processing of the same we are getting an error
No batch input data for screen SAPMSSY0 0120
I have checked this screen through screen painer(SE51) & i did not find any element on this screen but Element list
shows one field Syst-Xcode.
Kindly guide me how to fix the issue so that the same can work as expected in background.
Regards,
Chetan.Hi Chetan,
List screens utilize SAPMSSY0/0120. Please check within your ABAP coding if you have any customer exit that tries to issue WRITE statements. If so, either remove them or add logic to not issue them in background (e.g. SY-BATCH = 'X'). Another culprit might be a SUBMIT statement in a user exit, which triggers a report with list output. I'm not completely sure, but I think the screen is also used for some value helps (do you have any coding forcing a value help popup?).
Hope this helps, harald -
No batch input data for screen SAPMSSY0 0120 in LB13
Hi,
I am trying to post TO in background using transaction LB13.
I am getting error 'No batch input data for screen SAPMSSY0 0120' when I execute the transaction.
I found out that this is the problem arising due to not passing data to one of the screen not passed to BDC.
How should I solve this error?
Thanks/Regards,
Abhijit Anandgaonkar.Hi
You pl.run BDC in fore ground, identify the data which is not passing & analyse this with programmer & correct the same.
REgards
YMREDDY -
No batch input data for screen SAPMSSY0 0120 error while running LSMW
I created Batch Input Recording for custom check register screen. I completed all the necessary steps but when I process the batch input session, my upload fails and gives me the following error:
No batch input data for screen SAPMSSY0 0120
I ran the Batch input in foreground to see what data am I missing and found out that one of the screen required a "DOUBLE CLICK" as user input and seems that LSMW is not able to process the "DOUBLE CLICK" (even though Batch Input recording captured the "DOUBLE CLICK") to move forward with the transaction.
Does anyone one know How can I overcome this issue or any other workaround.
Thanks NirankarHi Chetan,
List screens utilize SAPMSSY0/0120. Please check within your ABAP coding if you have any customer exit that tries to issue WRITE statements. If so, either remove them or add logic to not issue them in background (e.g. SY-BATCH = 'X'). Another culprit might be a SUBMIT statement in a user exit, which triggers a report with list output. I'm not completely sure, but I think the screen is also used for some value helps (do you have any coding forcing a value help popup?).
Hope this helps, harald -
NO BATCH INPUT DATA FOR SCREEN SAPMV50A ERROR FROM BDC
HI
I get the following error when my program runs inforeground, using a BDC(VL02N)- 'NO BATCH INPUT DATA FOR SCREEN SAPMV50A SCREEN 1000.'
i am trying to attach a serial number to the sales order and it seems that the warning message is causing the error. i have recorderd the transaction to death, and as mentioned, when i run in debug mode, it works fine.
Can anyone tell me how i can overcome\suppress the warning message? i have inserted 2 okcodes before the warning is Issued and that did not help Please see below for an excerpt of the coding:.
PERFORM bdc_dynpro USING 'SAPLIPW1' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RIPW0-SERNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'BDC_OKCODE' '=RWS'.
PERFORM bdc_field USING 'RIPW0-SERNR(01)' itab_chas_data-chas_no .
PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'BDC_OKCODE' '=ENTE'.
PERFORM bdc_dynpro USING 'SAPLIPW1' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RIPW0-SERNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=RWS'.
Thanks a Million..Hi,
Try this link.
No batch input data for screen SAPMP50A 1000
Thank you, -
Error Message "No batch input data for screen SAPMF05A 0700" for FV60&FB60
Dear All,
I doing a BDC Upload program for Create Vendor Invoice and Park using FV60 ,But i can't upload successfully by Batch Input method and i am gettin the Error Message "No batch input data for screen SAPMF05A 0700'.I tried using FB60 and got the same error message. When i do in the direct method i can able to do it ,But can't park the document successfully and can do it untill sumilate only.
How to overcome this issue and if you already encounter this kind of problem please advice me.
Thanks in Advance.
DeesanthHi,
Below is my recording.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'INVFO-ACCNT' gwa_inv_up-lifnr.
perform bdc_field using 'INVFO-BLDAT' gwa_inv_up-bldat.
perform bdc_field using 'INVFO-XBLNR' gwa_inv_up-xblnr.
perform bdc_field using 'INVFO-BUDAT' gwa_inv_up-budat.
perform bdc_field using 'INVFO-MONAT' '9'.
perform bdc_field using 'INVFO-BLART' gwa_inv_up-blart.
perform bdc_field using 'INVFO-WRBTR' gwa_inv_up-dmbtr.
perform bdc_field using 'INVFO-WAERS' gwa_inv_up-waers.
perform bdc_field using 'INVFO-XMWST' gwa_inv_up-xmwst.
perform bdc_field using 'INVFO-MWSKZ' 'P0'.
perform bdc_field using 'INVFO-SGTXT' gwa_inv_up-sgtxt.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE' '=PAYM'.
perform bdc_field using 'INVFO-GSBER' gwa_inv_up-gsber.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE' '=BS'.
perform bdc_field using 'INVFO-ZLSCH' gwa_inv_up-zlsch.
cnt = 1.
cnt1 = 1.
clear gwa_inv_line.
loop at gt_inv_up into gwa_inv_line where indic = 'D'
and count = gwa_inv_up-count.
if cnt1 gt 1.
concatenate 'ACGL_ITEM-MARKSP(' cnt ')' into fld.
perform bdc_field using fld 'X'.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE' '=0005'.
endif.
concatenate 'ACGL_ITEM-HKONT(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-lifnr.
concatenate 'ACGL_ITEM-SHKZG(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-shkzg.
concatenate 'ACGL_ITEM-WRBTR(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-dmbtr.
concatenate 'ACGL_ITEM-MWSKZ(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-mwskz.
concatenate 'ACGL_ITEM-SGTXT(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-sgtxt.
concatenate 'ACGL_ITEM-GSBER(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-gsber.
concatenate 'ACGL_ITEM-KOSTL(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-kostl.
concatenate 'ACGL_ITEM-PROJK(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-posid.
concatenate 'ACGL_ITEM-FISTL(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-fistl.
concatenate 'ACGL_ITEM-FIPOS(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-fipos.
concatenate 'ACGL_ITEM-GEBER(' cnt ')' into fld.
perform bdc_field using fld gwa_inv_line-geber.
perform bdc_field using 'BDC_CURSOR' fld.
cnt1 = cnt1 + 1.
endloop.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE' '=BS'.
perform bdc_dynpro using 'SAPMSSY0' '0120'.
perform bdc_field using 'BDC_OKCODE' '=BP'.
call transaction 'FB60' using gt_bdcdata mode 'N' pdate 'S'
messages into gt_bdc_messages.
Thanks,
Deesanth -
No batch input data for screen SAPMF05A 0614
Hello,
We are encountering an error in automatic clearing (FB05) of inbound IDOC type PEXR2002 (Remitance Advice). The error message is "No batch input data for screen SAPMF05A 0614" and it relates to the fact that we are clearing multiple accounts (Customer Account & A/P Rebate Account). We have added the "Cash-Flow Relevent" setting to all of the GL Accounts involved as per OSS note 25200. However in automatic clearing when the program is populating the "Assign payment amounts" screen 0614 it is only poplulating the Payment amount with the net payment amount instead of the gross payment amount. Because there is still an amount "To be assigned" the screen is expecting some further action.
Has anyone encountered this problem? And if so how did you go about resolving it?
Thank you in advance.
Mark Fleckles
Manager, Financial Systems
Sephora USA, Inc
[email protected]Hello Naveen,
The error message appears in the IDOC Status record and there is nothing in SM35. We were able to step through the program code to determine exactly where the error is occurring. And it is on screen SAPMF05A 0614. There is an OSS note 25200 which addresses this problem but after following the steps to assign "Relevant to cash flow" setting to all GL accounts involved the problem still exists. Somehow it is not recognizing the Rebate account when the system populates the "Payment amount". It only recognizes the Customer A/R Account. We are not sure how to resolve...
Thanks,
Mark Fleckles -
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
No batch input data for screen for VF01
Hi All,
Iam trying to to create billing document using BDC for VF01 with sales order. For single line item it is working fine and that to in Mode 'A'. But while creating invoices using multiple sales orders , Iam getting the following error.
No batch input data for screen 'SAPMV60A' '0102' . Error - 0344.
Kindly help me as I was strucked here.
My code .
PERFORM bdc_dynpro USING 'SAPMV60A' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR'
'KOMFK-VBELN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'KOMFK-VBELN(01)'
gwa_bdc-vbeln.
PERFORM bdc_dynpro USING 'SAPMV60A' '0104'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VBRK-FKART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMV60A' '0104'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VBRK-FKART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
REFRESH messtab[].
CALL TRANSACTION 'VF01' USING bdcdata
OPTIONS FROM wa_options
MESSAGES INTO messtab.
Please <removed by moderator> help.
Thanks ,
Srikanth.A
Edited by: Thomas Zloch on Sep 15, 2011 1:47 PMHi Jurgen
LOOP AT git_bdc INTO gwa_bdc.
refresh messtab[].
PERFORM bdc_dynpro USING 'SAPMV60A' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR'
'KOMFK-VBELN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'KOMFK-VBELN(01)'
gwa_bdc-vbeln.
PERFORM bdc_dynpro USING 'SAPMV60A' '0104'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VBRK-FKART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMV60A' '0104'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VBRK-FKART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMV60A' '0104'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VBRK-FKART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
REFRESH messtab[].
CALL TRANSACTION 'VF01' USING bdcdata
OPTIONS FROM wa_options
MESSAGES INTO messtab.
Error message population....
REFRESH bdcdata[].
ENDLOOP.
Thanks,
Srikanth.A -
No batch input data for screen SAPMSSY3 0131 in Sales order IDOC
I am processing Sales order IDOCS in status 64 using RBDAPP01 .Some of them error out to status 51 with the message -
No batch input data for screen SAPMSSY3 0131 .
I know the standard IDOC inbound process tries to simulate the posting in a BDC like process.
Now, I went to we19 and the screen hangs up in a pop up in the partners tab with partner type 'WE' and my shipto (which is actually filled in the IDOC), missing..upon repeatedly hitting enter, it goes thru and an idoc is posted in status 53. But still unable to get through the root of this issue.
Any, insight will help.Hi,
I think the pop-up is generated through and user-exit for which recording is missing. This is why your idoc stays in status 64...
Handle the screen recording in the user exit IDOC_INPUT_ORDERS
user exit routine
PERFORM customer_function_dynpro.
FORM CUSTOMER_FUNCTION_DYNPRO.
CALL CUSTOMER-FUNCTION '002'
EXPORTING DXVBAK = XVBAK
DVTCOMAG = VTCOMAG
DLAST_DYNPRO = LAST_DYNPRO
DXMESCOD = IDOC_CONTRL-MESCOD
TABLES DXBDCDATA = BDCDATA
DXVBAP = XVBAP
DXVBEP = XVBEP
DYVBEP = YVBEP
DXVBADR = XVBADR
DYVBADR = YVBADR
DXVBPA = XVBPA
DXVBUV = XVBUV
DIDOC_DATA = IDOC_DATA
DXKOMV = XKOMV
DXVEKP = XVEKP
DYVEKP = YVEKP
EXCEPTIONS
USER_ERROR = 01.
Regards,
Krishnakumar -
Error in LSMW for MM41 - "No batch input data for screen SAPLMGMW 0100"
I'm trying to create an LSMW for MM41 to create new Retail articles en Mass. This will be used to only create the Basic view as other LSMW's already exist to maintain the other views. I've created the Recording and setup the LSMW already. My data is read correctly from the source file. When I execute the batch session it fails with the following error - "No batch input data for screen SAPLMGMW 0100".
I assume the fields in MM41 screen are not setup for batch processing. Could someone with more knowledge or experience in SAP Retail please confirm my assumption and explain where this is setup or provide an alternative to creating new articles en Mass via MM41? The direct input method is more suited for MM01 and not MM41.
Regards
FawaazHi Guys,
Thanks so much for all the prompt responses. My issue is now resolved.
The issue, I'm sure, was my default settings in the MM41 screen which the recording probably took into account or the batch program didn't like. I deleted my recording and created a new one but before I started the recording, I went into the MM41 screen and removed all default values AND view selections. I made my Basic view selection constant in my recording and also in my field mapping. My LSMW for MM41 is now working perfectly.
Just to answer some of the questions above, my LSMW was Reading and Converting the data in my source file fine. When I display the Read and Converted data, it shows the data fields in the correct place.
Thanks again.
Regards
Fawaaz -
"no batch input data for screen SAPLMR!M 6220 in BDC while holding Invoice
Hi
I am facing a problem while uploading Invoice data and to hold the data in miro transaction I am getting the error
"no batch input data for screen SAPLMR!M 6220 " . It is for non PO data only I am facing this problem using BDC.
But for Po based Invoice I am getting Invoice number while holding the Invoice. I am Using SHBDB to record the
transaction details
Please give me some solution regrading this.
SamirKrish ,
I am doing it in same transaction MIRO for both PO and NON-PO. I am able to generate an Invoice number while holding the Invoice For NON-PO taking vendor as invoice Party .While I am recording it in SHDB and trying to use the
same in my BDC Programe it is throughing this error and also by testing the program which has been generated by the
SHDB trnasaction i am getting the same Error . Is there any diferrent trnasaction that is used to hold NON_PO invoice ?
Where Invoice number will be generated automatically ?
Maybe you are looking for
-
CreativeCloudSet-Up.exe refuses to install
Trying to fix an issue with one of my CC apps, I ran the CC cleaner tool and cleared my entire install. I downloaded Creative Cloud Desktop manager, the app that manages all installs. I click on CreativeCloudSet-Up.exe to be greeted with "There was a
-
Error when accessing a custom RFC from the ISA framework
Hi, I am trying to add new functionality to Ecommerce 5.0 by providing my own custom actions and calling a custom RFC. I followed the procedure given in "Development and Extension Guide u2013 SAP E-Commerce 5.0" i.e., "Extension Demo 6: Copy-Template
-
Invisible user folder fixed, but now its a package?
I had the problem described in http://docs.info.apple.com/article.html?artnum=307033 I ran the chflags nohidden ~/ command and now my user directory is visible again, but the Finder identifies it as a package rather than a Folder. How do I fix that?
-
Reinstall Elements - "Rolling Back Action" Error
I am trying to reinstall Elements 7. I need to do this because I had a system problem and I needed to do a clean new Windows XP install. As a result of the XP reinstall, I have had to reinstall all my programs. What happens with Elements is that I
-
"RUNSTATS and REORGCHK for single table" in DB13
Hello, Our system is ECC 6.0, SAP_BASIS is SAPKB70011. "RUNSTATS and REORGCHK for single table" in DB13, I found the parameter, "Parallel Jobs". Why there is this parameter? Can we execute parallel runstats for single table in SAP environment? Thank