BDC_OPEN_GROUP, group .. is invalid
Hi,
Can any one tell me what to do regarding this kind of error?
I'm using LSMW and I'm now in step 'Create Batch Input Session'.
If I execute the step without additional values in the paramenters, the system shows an error 'BDC_OPEN_GROUP, group .. is invalid'.
Please guide me on what to do.
Points will be rewarded.
Regards,
Reymar
See Re: LSMW upload
Similar Messages
-
[SOLVED] sudo: unable to set runas group vector: Invalid argument
I recently made the (idiotic) mistake of overwriting my /etc/passwd and /etc/group files, although I managed to restore them from a backup. Since restarting the machine I'm having the same issue every time I invoke sudo:
sudo: unable to set runas group vector: Invalid argument
I can't find any info on this error. Any ideas on where to start?
Thanks,
-- C. M.
EDIT: I should also note that this is a headless machine that I'm accessing via SSH.
Last edited by C. M. Harlequin (2014-06-15 10:35:33)Thanks for the reply, Amish.
It's my understanding that the 'group vector' is a term that refers to the specific set of groups to which a user has membership, rather than a specific group named 'vector'. Although, I could be mistaken.
From the sudo manpage:
The -P (preserve group vector) option causes sudo to preserve the user's group vector unaltered. By default, sudo will initialize the group vector to the list of groups the target user is in. The real and effective group IDs, however, are still set to match the target user.
Similarly, from the sudoers manpage:
By default, sudo will initialize the group vector to the list of groups the target user is in. When preserve_groups is set, the user's existing group vector is left unaltered. The real and effective group IDs, however, are still set to match the target user. This flag is off by default.
But the manpages don't offer me much, I'm still clueless as to why I'm getting the error.
EDIT: although using the -P flag seems to allow sudo to run without error
Last edited by C. M. Harlequin (2014-06-14 18:42:39) -
[svn] 4137: Optimize Group layout invalidation.
Revision: 4137
Author: [email protected]
Date: 2008-11-18 17:53:32 -0800 (Tue, 18 Nov 2008)
Log Message:
Optimize Group layout invalidation.
This change adds two Boolean flags to track if Group?\226?\128?\153s layout is invalidated. This way whenever a GraphicElement?\226?\128?\153s invalidateDisplayList() is called, the Group won?\226?\128?\153t redo the layout, but only validate that particular GraphicElement?\226?\128?\153s display list. Similar for size. Also I removed unconditional updateDisplayList() while assigning GraphicElement display objects and instead invalidate only the GraphicElements that have their sharedDisplayObject reassigned (we were already invalidating when the exclusive display object is assigned).
Additionally I added a small check in the stroke property change event handler to make sure we invalidate parent size & layout only when the stroke weight is changed, which minimizes layout passes for skin state changes, where states would change stroke color/settings.
QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Glenn
tests: checkintests, mustella (gumbo/core, gumbo/layout, graphictags, gumbo/filters)
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as
flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as -
SCCM 2012: Windows update group gives invalid update
Hi,
I have deployed an update group to some pc's (about 60 updates). Now it seems one of the updates got stuck on the client: the client tries to download it to install but it's not on the server.
The server shows the update as invalid.
Tried to download it again, it does do it but it does NOT show as downloaded. The update
kb2687413 is perfectly valid.
Removed it from the update group but the client still tries to fetch this update (even after reboot).
My questions:
*how can I find out what's wrong with this update: why it was invalid (I do know the meaning of the icons: https://technet.microsoft.com/en-us/library/hh848254.aspx?f=255&MSPPError=-2147217396), why I can't download it or the status doesn't change whereas
it downloaded succesfully.
*how do I make sure the clients continue to install the remaning updates and don't try to fetch the (removed) update
Thanks for your input.
J.
Jan HoedtHi,
Have you checked the log file PatchDownloader.log? Maybe it can give us some clues.
https://technet.microsoft.com/en-us/library/hh427342.aspx#BKMK_SU_NAPLog
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Deploy Office 2010 by using Group Policy - Invalid switch - "/config"
Hi All,
We are following steps described in this article -
http://technet.microsoft.com/en-us/library/ff602181.aspx . However it won't work and will terminate with error code 1 - "Setup ended with error code 1". Further investigations has shown that error is produced by start-up batch script due to Invalid
switch - "/config". According to the above article to trigger an install we need the following:
start /wait %DeployServer%\setup.exe /config %ConfigFile%
However it will fail with the error: Invalid switch - "/config", because obviously "/config" switch does not belong to START command
It seems to work if we will use the following (without START /WAIT):
%DeployServer%\setup.exe /config %ConfigFile%
Could anyone please elaborate on the above?
Also why would we want to use START /WAIT at all?
TYSo, you figured out that this problem occures if path to deployment share, config.xml and setup.exe has spaces in it, that is absolutely true.
But I see another workaround, not changing your share path to have no spaces in it.
I suggest changing the setup script.
Do the following:
1) Find this part of the script:
REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
2) Use quotes wisely to get something like this:
REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait "%DeployServer%\setup.exe" /config "%ConfigFile%"
echo %date% %time% Setup ended with error code %errorlevel%. >> "%LogLocation%\%computername%.txt"
As you can see, I used quotes to mark those parts of scipt that will have spaces in UNC paths when running the script in cmd.
It did the trick for me and i have spaces in my UNC path to setup share :) Hope that helps. -
AD authentication problems. Problems with groups mapping
Hi Everyone,
I have my Edge Xi R2 server up and running with AD authentication fine for the past few months. Today I added another group and got a weird error message. Now no AD works and everytime I try to re-enable it I get this message below. I have deleted all my mapped groups and I still get the message. Has anyone come across this problem before?
If the problem persists, please delete and re-map into BusinessObjects Enterprise all currently mapped groups
Thank you,
AdamThis error indicates that one or more of your mapped groups, is invalid. (check for SID's in the error or windows event viewer logs)
You can open a message with support to get help tracing your CMS, or you can try to figure out which (groups may cause hti error.
To note it's also possible that something else is preventing the CMS from communicating with AD again a good reason to open a ticket.
Regards,
Tim -
Hi All,
We need to migrate Shared services users and groups from 9.3.1 to 11.1.2.2 version. Any help would be appreciated. Can we use CSS import export utility?
Thanks in advance!!Hi John, In my another environment I have to migrate the users and groups from Hyperion HSS 11.1.1.2 to Hyperion shared services 11.1.2.2. I am using LCM for that, when I export the users and gropus from 11.1.1.2, it exports fine but when i import it to my 11.1.2.2 using LCM, I am getting the below errors.
Error when I try to import the groups:
ErrorEPMIE-00051: Failed to perform operation on role. Could not locate role matching filter {0} and filter attribute {1}. Please ensure that a role exists matching the filter with filter attribute.
EPMIE-00024: Failed to import all of the membership info for group test group. Invalid group members encountered. Please ensure the validity of members and its existence in their respective providers.
Errors when i try to import the users:
ErrorEPMIE-00051: Failed to perform operation on role. Could not locate role matching filter {0} and filter attribute {1}. Please ensure that a role exists matching the filter with filter attribute.
EPMIE-00020: Failed to update user 04668162 during import. Invalid identity for user. Please ensure that the user is available in the system with the identity specified in the import file.
Any idea?
Thanks in advance. -
DirectAccess Installation Errors Involving Security Group
So I've read that it's best practice to filter DirectAccess GPO Affects to a single Security group instead of the "All Commputers" Group in AD. So I've done this. I created a group called 'DirectAccess' and set that as the target. When I attempt
to generate the GPO in the DirectAccess Wizard, I recieve this error:
"Security Group MyDomain\DirectAccess cannot be found"
"The Operation Failed. All of the Specified Security Groups are invalid."
So it looks like the group is invisible to my Server? The only thing I can think of is my AD Structure is sitting on some 2008 R2 boxes and this server is 2012 R2 box. Is there a requirement for AD to be at 2012 Operational Level for DirectAccess to work
in 2012 server R2?
--AaronUpdate: I had this closed a while ago. Microsoft was finally able to set it up in my environment. I will post the Closure email they sent me detailing the steps needed to successfully install DirectAccess: **Note I have changed all my Server/AD
information to match M$'s Contoso dummy domain
Issue:
Unable to configure Direct Access Server (DA_EDGE). Error: Security group CONTOSO\DirectAccess Clients cannot be found..
Troubleshooting:
We collected logs from the Direct Access server while configuring Direct Access.
logman create trace ETWTrace -ow -o c:\ETWTrace.etl -p {AAD4C46D-56DE-4F98-BDA2-B5EAEBDD2B04} 0xffffffffffffffff 0xff -nb 16 16 -bs 1024 -mode 0x2 -max 2048 –ets
logman update trace ETWTrace -p {62DFF3DA-7513-4FCA-BC73-25B111FBB1DB} 0xffffffffffffffff 0xff –ets
Configured Direct Access
logman stop ETWTrace -ets
We could not find information which could give us clue about the cause of the issue. We found that it was not able to find the group.
2464: 04: 2014-06-24 11:56:18.627 VERBOSE: Validating security group (CONTOSO\dagroup1) in the domain...
2464: 04: 2014-06-24 11:56:18.707 NTE: Security group CONTOSO\dagroup1 cannot be found.
We Collected Network Capture but could not find anything in LDAP Search Request Packet about the same.
We found that DC has 2 NIC and both were getting Domain Profile.
We removed the DMZ NIC and kept only NIC connected to LAN.
We again tried to configure Direct Access however it still came up with error.
We involved Directory Services team to take a look at the issue however in logs we were not able to find anything.
We collected Process Monitor and got it analyzed by the on the Direct Access Server and found that we were not able to create GPO. However it does not give clue as to how its failing.
11:58:51.6421023 PM RAMgmtUI.exe 1836 CreateFile
\\DC.contoso.com\SysVol\contoso.com\Policies\{D937469B-6E34-4A7F-9405-F9F97DC200E0} NAME NOT FOUND Desired Access: Read Attributes, Read Control, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
11:58:51.6446131 PM RAMgmtUI.exe 1836 CreateFile
\\DC.contoso.com\SysVol\contoso.com\Policies\{D937469B-6E34-4A7F-9405-F9F97DC200E0} NAME NOT FOUND Desired Access: Read Control, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
11:58:51.6472327 PM RAMgmtUI.exe 1836 CreateFile
\\DC.contoso.com\SysVol\contoso.com\Policies\{D937469B-6E34-4A7F-9405-F9F97DC200E0} NAME NOT FOUND Desired Access: Read Data/List Directory, Synchronize, Dis, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete,
AllocationSize: n/a
11:58:51.6500318 PM RAMgmtUI.exe 1836 CreateFile
\\DC.contoso.com\SysVol\contoso.com\Policies\{D937469B-6E34-4A7F-9405-F9F97DC200E0} NAME NOT FOUND Desired Access: Read Attributes, Delete, Synchronize, Dis, Options: Directory, Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read,
Write, Delete, AllocationSize: n/a
We did research internally and decided to configure Direct Access with Domain Computers Security Group (Using PowerShell command) and change it from GPMC – DirectAccess Client Settings GPO to “Direct-Access-Clients” security group and updated
Group Policy on Direct Access Server.
Install-RemoteAccess -NoPrerequisite -Force -PassThru -ServerGpoName 'contoso.com\DirectAccess Server Settings' -ClientGpoName 'contoso.com\DirectAccess Client Settings' -DAInstallType 'FullInstall' -InternetInterface 'Internal' -InternalInterface 'Internal'
-ConnectToAddress 'EDGE.contoso.com' -DeployNat -Verbose -ComputerName 'DA_EDGE.contoso.com'
We Also configured Certificate Authentication, and Exception for “EDGE.contoso.com'” in NRPT ising poweshell.
Add-DAClientDnsConfiguration -DnsSuffix 'EDGE.contoso.com' -Verbose -ComputerName 'DA_EDGE.contoso.com'
Set-DAClient -Downlevel 'Enabled' -Verbose -ComputerName 'DA_EDGE.contoso.com'
Once Direct Access got configured we were able to update GPO and connect client from outside.
On Windows 7 client machine we found IP Helper Service disabled and after enabling the service we were able to connect on that as well.
Resolution:
We configured Direct Access with Domain Computers Security Group (using PowerShell command) and changed the security group from GPMC – DirectAccess Client Settings GPO to “Direct-Access-Clients” security group and updated Group Policy on Direct
Access Server.
Install-RemoteAccess -NoPrerequisite -Force -PassThru -ServerGpoName 'contoso.com\DirectAccess Server Settings' -ClientGpoName 'contoso.com\DirectAccess Client Settings' -DAInstallType 'FullInstall' -InternetInterface 'Internal' -InternalInterface 'Internal'
-ConnectToAddress 'EDGE.contoso.com' -DeployNat -Verbose -ComputerName 'DA_EDGE.contoso.com'
Commands for troubleshooting Direct Access Clients connectivity:
To check client status:
netsh dns show state
To check effective NRPT on the client:
netsh name show eff
To Check status of IPHTPS Interface:
netsh int http show int
To Check status of Teredo Interface:
netsh int teredo show state
To Check Windows Firewall Profile on the client:
netsh advf show cu
To Check IPSec Main Mode Security Association:
netsh advf mon show mmsa
To Check IPSec Quick Mode Security Association:
netsh advf mon show qmsa
Related Articles:
Manage DirectAccess Clients Remotely
http://technet.microsoft.com/library/jj574200.aspx
Remote Access
http://technet.microsoft.com/en-US/network/dd420463
Remote Access (DirectAccess, Routing and Remote Access) Overview
http://technet.microsoft.com/en-us/library/hh831416
Remote Access (DirectAccess) Prerequisites
http://technet.microsoft.com/en-us/library/dn464273.aspx
DirectAccess Offline Domain Join
http://technet.microsoft.com/en-us/library/jj574150.aspx
Plan the DirectAccess Infrastructure
http://technet.microsoft.com/en-us/library/jj574101.aspx
Configure the DirectAccess Server
http://technet.microsoft.com/en-us/library/jj574180.aspx
Configuring and Implementing DirectAccess with Windows Server 2012
http://technet.microsoft.com/en-us/video/tdbe13-configuring-and-implementing-directaccess-with-windows-server-2012.aspx -
How to query the status of disk groups in specific time?
Dears,
While trying connect to database , i faced ORA-00257:archiver error. Connect internal only, until freed.
Also found in alert file ORA-15041: diskgroup space exhausted
And found in ASM alert file WARNING: allocation failure on disk DG_DATA_0002 for file 357 xnum 2147483648
I expected from above errors that the problem in ASM Disk groups or in file system space.
After checking, found every thing is fine and OK as i have much free space.
And when i tried after some time to connect to database, it connected successfully without errors.
It means that the problem not in space,may be the status of disk groups became invalid for some time
Appreciate your advise. And how can i know the status of disk groups in specific time?
Thanks & Regards,,Hi All,
We got another idea to create new template and use it as "Current Default Workbook".
Then it is showing latest date as we changed one of the Text element from "Display Status of Data" to "Display status of Data To".
But the this change is showing to my user id only but not to the other users.
We are selecting the tick mark for "Global Default Workbook", but this tick mark is going away after each refresh. I think if this tick mark is holds permanently, my problem will solve.
Please suggest me if you have any ideas to resolve this issue.... -
Hello,
we need to create new group in server.how to create that?.we have the user in that but we didnt have the group.we type to assign the ownership cmd but this error is showing.
ERROR:group is invalid
please tel me any steps to clear this issuee.........Hi User;
What is your OS?
Regard
Helios -
Thinkpad T440s BIOS update via PXE fails with "invalid system disk"
Hi,
I'm trying to boot via PXE to the BIOS 2.24 update ISO image because the T440s comes without a DVD drive. The Thinkpads are running RHEL 6.5 workstation installed. I'm using syslinux 6.02 and the following menu entry:
label lenovo_t440s
menu label Lenovo Thinkpad T440s BIOS 2.24 Update
kernel memdisk
append initrd=lenovo/t440s/gjuj11us.iso iso
The ISO gets loaded via TFTP and seems to boot, but then an error message appears:
Loading boot sector... booting...
Lenovo Group Limited
Invalid system disk
Replace the disk, and then press any key.
The Thinkpads come with the following SSD drive: SAMSUNG MZ7TD256HAFV-000L9.
Anyone had luck with updating BIOS via PXE boot?
We also have Thinkpads T430s. There the BIOS update ISO image loads, displays the menu, but when one presses "update firmware" then it freezes.
Regards,
BerndSame behaviour when I try without PXE and load memdisk and ISO file directly via GRUB using this entry in /boot/grub/grub.conf:
title ThinkPad BIOS Update
root (hd0,1)
kernel /memdisk iso
initrd /gjuj11us.iso -
Problem with clearing FM - POSTING_INTERFACE_CLEARING
Hello,
We are using the above FM for clearing customer open items against the incoming payments.
This is working fine for some cases.
However for large volume ransactions, this does not work - When executed in background the program gives error "BDC_OPEN_GROUP, group .. is invalid".
Currently we are tyring to clear around 220000 open items against 1 payment document.
This function module works fine for all scenarios, however does not work only for for large volume transactions.
SAP does not provide any assistance for this issue as the function module is 'not released'
Given below is the code that we are using to call the function module:
CALL FUNCTION 'POSTING_INTERFACE_START'
EXPORTING
i_function = 'C'
i_group = l_group
i_mode = 'N'
i_update = 'S'
i_user = sy-uname
i_xbdcc = 'X'
EXCEPTIONS
client_incorrect = 1
function_invalid = 2
group_name_missing = 3
mode_invalid = 4
update_invalid = 5
OTHERS = 6.
Clear all the line items.
CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
EXPORTING
i_auglv = c_auglv "value = UMBUCHNG
i_tcode = c_tcode "value = FB05
TABLES
t_blntab = t_blntab
t_ftclear = t_ftclear
t_ftpost = t_ftpost
t_fttax = t_fttax
EXCEPTIONS
clearing_procedure_invalid = 1
clearing_procedure_missing = 2
table_t041a_empty = 3
transaction_code_invalid = 4
amount_format_error = 5
too_many_line_items = 6
company_code_invalid = 7
screen_not_found = 8
no_authorization = 9
OTHERS = 10.
IF t_blntab[] IS INITIAL. " sy-subrc <> 0.
w_flag = 'X'.
w_indicator = 'U'.
ELSE.
CLEAR w_flag.
w_indicator = 'A'.
COMMIT WORK.
ENDIF.
CALL FUNCTION 'POSTING_INTERFACE_END'.
Any pointers regarding the solution for this problem will be of great help.
Thanks,
Sushil JoshiHello Sujeet,
As I mentioned, we are using FM POSTING_INTERFACE_START, then POSTING_INTERFACE_CLEARING and POSTING_INTERFACE_CLOSE.
We have successfully tested this FMs for clearing documents over 50000 at a time, without splitting into sets of 999. Its only for this particular case that it is failing.
We have 1 payment document and rest others (over 200000) open items. So my question is - if we have to split for every 999 items, do we need to call the POSTING_INTERFACE_START, then call the FM POSTING_INTERFACE_CLEARING in a loop and at the end call POSTING_INTERFACE_CLOSE.
Will this post a single clearing document or a separate payment document for every set of 999 items ?
Please advise.
Thanks. -
Problem reading upload file in MI34
I am trying to execute MI34 and keep getting message 'BDC_OPEN_GROUP, group .. is invalid'. I have tried to create my upload file in both Excel and Access and save as .txt. Neither method works. I have debugged the program and discovered that the error occurs in RM07II34 at this line 'READ DATASET DS_PHY_NAME INTO YWEWA.' . The first record it reads is fine, but the second record is blank even though I have 3 records in my file.
This is what my file looks like in AL11.
TESTBB,MI04,,,,,20110215,00000000,00000000,00000000,2011,0100001020,001,,,X,,00000000000000000,,,,000,,0000000000000000,,,000000,,0000
TESTBB,MI04,,,,,20110215,00000000,00000000,00000000,2011,0100001020,002,,,,,00000000000007000,,,,000,,0000000000000000,,,000000,,9011
TESTBB,MI04,,,,,20110215,00000000,00000000,00000000,2011,0100001020,003,,,,,00000000000177992,,,,000,,0000000000000000,,,000000,,0000
I'm using t-code CG3Z to upload the file.
Does anyone have any ideas?
BrendaHi Brenda,
Maybe first check if it works in test mode. Read documentation which comes with the MI34 transaction.
Also maybe remove the comma's from your file, since the file is opened in legacy text mode. It appears to me that the data in your file is overlayed into the structure ywewa and therefore should be in one big string.
Good luck,
Robert
Edited by: RJ. Schamhart on Feb 16, 2011 1:39 PM -
Error occured in bdc(session method)
hai,
i was written one bdc program with session method but unfortunatly it's throwing some error like bdc_group is invalid.
this problem happening at when i was going to give the file path through f4 in selection screen it's showing like BDC_OPEN_GROUP, group .. is invalid
iam sending my coding also plz give me the clarifications abt this one.
SESSION METHOD **********************
TYPES : BEGIN OF TY_DATA,
LIFNR TYPE LIFNR,
EKORG TYPE EKORG,
KTOKK TYPE KTOKK,
NAME1 TYPE NAME1_GP,
SORTL TYPE SORTL,
LAND1 TYPE LAND1_GP,
WAERS TYPE BSTWA,
END OF TY_DATA.
DATA : WA_DATA TYPE TY_DATA,
WA_BDCDATA TYPE BDCDATA,
WA_BDCMSGCOLL TYPE BDCMSGCOLL.
DATA : IT_DATA TYPE TABLE OF TY_DATA,
IT_BDCDATA TYPE TABLE OF BDCDATA,
IT_BDCMSGCOLL TYPE TABLE OF BDCMSGCOLL.
DATA : V_FILE TYPE STRING.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : PA_FILE LIKE FC03TAB-PL00_FILE, "OBLIGATORY default 'C:\MAHESH\IT_FILE.TXT'
P_GROUP LIKE APQI-GROUPID OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PA_FILE.
PERFORM GET_F4_FOR_FILE USING PA_FILE.
V_FILE = PA_FILE.
PERFORM UPLOAD_FILE_TO_ITAB USING V_FILE CHANGING IT_DATA.
PERFORM OPEN_SESSION USING P_GROUP.
LOOP AT IT_DATA INTO WA_DATA.
REFRESH IT_BDCDATA.
FIRST SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0107' 'X'.
**** FIELD DETAILS
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'RF02K-KTOKK'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '/00'.
**** FILED LIFNR
PERFORM FILL_FIELD_DETAILS USING 'RF02K-LIFNR' WA_DATA-LIFNR.
FIELD EKORG
PERFORM FILL_FIELD_DETAILS USING 'RF02K-EKORG' WA_DATA-EKORG.
**** FIELD KTOKK
PERFORM FILL_FIELD_DETAILS USING 'RF02K-KTOKK' WA_DATA-KTOKK.
SECOND SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0110' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'lfa1-land1'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
field NAME
PERFORM FILL_FIELD_DETAILS USING 'LFA1-NAME1' WA_DATA-NAME1.
field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFA1-SORTL' WA_DATA-SORTL.
field LAND1
PERFORM FILL_FIELD_DETAILS USING 'LFA1-LAND1' WA_DATA-LAND1.
THIRD SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0310' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'LFM1-WAERS'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
******** field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFM1-WAERS' WA_DATA-WAERS.
PERFORM BDC_INSERT USING 'MK01' IT_BDCDATA.
ENDLOOP.
PERFORM CLOSE_SESSION.
*& Form GET_F4_FOR_FILE
FORM GET_F4_FOR_FILE USING P_PA_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
FIELD_NAME = 'PA_FILE'
CHANGING
FILE_NAME = PA_FILE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GET_F4_FOR_FILE
*& Form UPLOAD_FILE_TO_ITAB
FORM UPLOAD_FILE_TO_ITAB USING FP_V_FILE
CHANGING FP_IT_DATA LIKE IT_DATA.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FP_V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = FP_IT_DATA.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " UPLOAD_FILE_TO_ITAB
*& Form OPEN_SESSION
FORM OPEN_SESSION USING FP_P_GROUP.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = FP_P_GROUP
HOLDDATE = FILLER8
KEEP = 'X'
USER = SY-UNAME
IF SY-SUBRC = 0.
WRITE : / 'PROCESS THE SESSION',FP_P_GROUP,'USING SM35'.
ENDIF.
ENDFORM. " OPEN_SESSION
*& Form FILL_SCREEN_DETAILS
FORM FILL_SCREEN_DETAILS USING PROGRAM
DYNPRO
DYNBEGIN.
WA_BDCDATA-PROGRAM = PROGRAM.
WA_BDCDATA-DYNPRO = DYNPRO.
WA_BDCDATA-DYNBEGIN = DYNBEGIN.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_SCREEN_DETAILS
*& Form FILL_FIELD_DETAILS
FORM FILL_FIELD_DETAILS USING FNAM FVAL.
WA_BDCDATA-FNAM = FNAM.
WA_BDCDATA-FVAL = FVAL.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_FIELD_DETAILS
*& Form BDC_INSERT
FORM BDC_INSERT USING FP_TCODE TYPE SYTCODE
FP_IT_BDCDATA LIKE IT_BDCDATA.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = FP_TCODE
TABLES
DYNPROTAB = FP_IT_BDCDATA.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " BDC_INSERT
*& Form CLOSE_SESSION
FORM CLOSE_SESSION .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " CLOSE_SESSIONhai,
i was written one bdc program with session method but unfortunatly it's throwing some error like bdc_group is invalid.
this problem happening at when i was going to give the file path through f4 in selection screen it's showing like BDC_OPEN_GROUP, group .. is invalid
iam sending my coding also plz give me the clarifications abt this one.
SESSION METHOD **********************
TYPES : BEGIN OF TY_DATA,
LIFNR TYPE LIFNR,
EKORG TYPE EKORG,
KTOKK TYPE KTOKK,
NAME1 TYPE NAME1_GP,
SORTL TYPE SORTL,
LAND1 TYPE LAND1_GP,
WAERS TYPE BSTWA,
END OF TY_DATA.
DATA : WA_DATA TYPE TY_DATA,
WA_BDCDATA TYPE BDCDATA,
WA_BDCMSGCOLL TYPE BDCMSGCOLL.
DATA : IT_DATA TYPE TABLE OF TY_DATA,
IT_BDCDATA TYPE TABLE OF BDCDATA,
IT_BDCMSGCOLL TYPE TABLE OF BDCMSGCOLL.
DATA : V_FILE TYPE STRING.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : PA_FILE LIKE FC03TAB-PL00_FILE, "OBLIGATORY default 'C:\MAHESH\IT_FILE.TXT'
P_GROUP LIKE APQI-GROUPID OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PA_FILE.
PERFORM GET_F4_FOR_FILE USING PA_FILE.
V_FILE = PA_FILE.
PERFORM UPLOAD_FILE_TO_ITAB USING V_FILE CHANGING IT_DATA.
PERFORM OPEN_SESSION USING P_GROUP.
LOOP AT IT_DATA INTO WA_DATA.
REFRESH IT_BDCDATA.
FIRST SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0107' 'X'.
**** FIELD DETAILS
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'RF02K-KTOKK'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '/00'.
**** FILED LIFNR
PERFORM FILL_FIELD_DETAILS USING 'RF02K-LIFNR' WA_DATA-LIFNR.
FIELD EKORG
PERFORM FILL_FIELD_DETAILS USING 'RF02K-EKORG' WA_DATA-EKORG.
**** FIELD KTOKK
PERFORM FILL_FIELD_DETAILS USING 'RF02K-KTOKK' WA_DATA-KTOKK.
SECOND SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0110' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'lfa1-land1'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
field NAME
PERFORM FILL_FIELD_DETAILS USING 'LFA1-NAME1' WA_DATA-NAME1.
field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFA1-SORTL' WA_DATA-SORTL.
field LAND1
PERFORM FILL_FIELD_DETAILS USING 'LFA1-LAND1' WA_DATA-LAND1.
THIRD SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0310' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'LFM1-WAERS'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
******** field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFM1-WAERS' WA_DATA-WAERS.
PERFORM BDC_INSERT USING 'MK01' IT_BDCDATA.
ENDLOOP.
PERFORM CLOSE_SESSION.
*& Form GET_F4_FOR_FILE
FORM GET_F4_FOR_FILE USING P_PA_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
FIELD_NAME = 'PA_FILE'
CHANGING
FILE_NAME = PA_FILE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GET_F4_FOR_FILE
*& Form UPLOAD_FILE_TO_ITAB
FORM UPLOAD_FILE_TO_ITAB USING FP_V_FILE
CHANGING FP_IT_DATA LIKE IT_DATA.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FP_V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = FP_IT_DATA.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " UPLOAD_FILE_TO_ITAB
*& Form OPEN_SESSION
FORM OPEN_SESSION USING FP_P_GROUP.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = FP_P_GROUP
HOLDDATE = FILLER8
KEEP = 'X'
USER = SY-UNAME
IF SY-SUBRC = 0.
WRITE : / 'PROCESS THE SESSION',FP_P_GROUP,'USING SM35'.
ENDIF.
ENDFORM. " OPEN_SESSION
*& Form FILL_SCREEN_DETAILS
FORM FILL_SCREEN_DETAILS USING PROGRAM
DYNPRO
DYNBEGIN.
WA_BDCDATA-PROGRAM = PROGRAM.
WA_BDCDATA-DYNPRO = DYNPRO.
WA_BDCDATA-DYNBEGIN = DYNBEGIN.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_SCREEN_DETAILS
*& Form FILL_FIELD_DETAILS
FORM FILL_FIELD_DETAILS USING FNAM FVAL.
WA_BDCDATA-FNAM = FNAM.
WA_BDCDATA-FVAL = FVAL.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_FIELD_DETAILS
*& Form BDC_INSERT
FORM BDC_INSERT USING FP_TCODE TYPE SYTCODE
FP_IT_BDCDATA LIKE IT_BDCDATA.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = FP_TCODE
TABLES
DYNPROTAB = FP_IT_BDCDATA.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " BDC_INSERT
*& Form CLOSE_SESSION
FORM CLOSE_SESSION .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " CLOSE_SESSION -
Experts,
I recorded FBRA in LSMW to mass reset cleared items. While in LSMW - create batch input, I'm getting "BDC_OPEN_GROUP, group .. is invalid" error. What is this? and how can I fix it.
Thanks,
SriHi,
A batch input program may have only one session open at a time. Before opening a session, make sure that any sessions that the program closes any sessions that it previously had opened.
Check whether you have specified a session name for the batch input recording....the name may be upto 12 charecters.
Aravind
Assign points if helpful
Maybe you are looking for
-
ITunes Store wont open. Only thing appears is the white screen with Apple Logo
iTunes Store won't opeen. Only thing appears is white screen with Apple Logo and takes really, really long to load.
-
Field material in purchase order Release ECC.6
Hi, I see that in my system ECC.6 the field material in PO is hidden. How can I do to see material field? Thanks
-
Can't save too many pdfs at once, hitting memory limitation?
Hi, I work for a publishing company and we use an Acrobat Pro plugin that lets you process hundreds of scanned pages at once in order to create a finished pdf ready to be printed to offset presses. My problem is that if we scan at 600dpi or in color
-
Quicktime Not Playing Online Stream
I've been trying to listen online to a radio station, at http://www.fan590.com/ (Listen Live link at top right). I've tried opening it normally, without downloading anything, and it doesn't work. I've tried downloading that flip4mac program but that
-
Anybody know of an action in PS to alter a file size based on the shortest edge of the image? I'm trying assess the images' length, and alter the long edge to match the short edge (essentially, creating a square). The issue is, some of the images a