Problem with transporting Content
Hello experts,
I have problems transporting my content from BW1 to BW2.
I collected my content objects in Transport Connection of BW1 and transported them to BW2.
Everything worked fine. I could use my content in RSA1 of BW2.
But when I transported my content objects again from BW1 to BW2 after I had deleted all my content objects from BW2, the content doesn't show up anymore in RSA1. What went wrong?
Anny suggestions?
Thanks
Hiza
Hi,
I suppose the method of reimport could solve the problem.
Have you selected the option of "import transport request again" while importing it the second time.
Only once you do this the contents will get transported.
Regards,
Anoop P
Similar Messages
-
Morning Friends,
I have created a SharePoint 2010 "Site Workflow" that is designed to take information from a form and create a Word doc with the gathered information and store this Word doc in a document library.
I am using Sharepoint 2013 with Office 2013
I understand there are a lot of steps (19) outlined below and I can provide more information as needed but the bottom line is this, workflow successfully takes info from an initiation form, uses the info to create a Word doc. Places this Word doc in a library.
When attempting to open / edit doc, receive error
"We're sorry. We can't open <document name> because we found a problem with its contents"
Details - No error detail available.
Any info or advice would be greatly appreciated.
Very high level view of what I have done:
1 - Created content type called "Letters"
2 - Added site columns " First Name" and "Last Name"
3 - Created and saved to my desktop a very basic Word document (Letter.docx) that says "Hello, my name is XXXX XXXX"
4 - In the advanced settings of the "Letters" content type I uploaded this "Letter.docx" file as the new document template.
5 - Created a new document library called "Letters"
6 - In Library Settings - Advanced Settings, clicked "Yes" to enable the management of content types.
7 - Then I clicked "Add from existing content types" and added the "Letters" content type
8 - Back in the advanced settings of the "Letters" content type I selected "Edit Template" and replaced the first XXXX with the Quick Part "First Name" and the second XXXX with the Quick part "Last Name"
9 - Created a new 2010 Site workflow called "Create a Letter"
10 - To the workflow I added the action "Create List Item"
11 - Configured the action to create Content Type ID "Letters" in the document library "Letter"
12 - For the "Path and Name" I gave it a basic name of "Letter to"
13 - The next step was to create the Initiation Form Parameters and added to form entries "First Name" and "Last Name"
14 - I then linked the initiation form fields to the data source "Workflow Variables and Parameters" to their respective Field from Source parameters
15 - Went back to the "Path and Name" and modified the basic name of "Letter to" to include the first and last name parameters.
16 - Saved - published and ran the work flow.
17 - As expected, Initiation Form prompts for First and Last Name. ("John Doe") Then click "start
18 - Go to document library "Letters" and see a new Word document created titles "Letter to John Doe"
19 - Go to open / edit the Word document and receive the following error
thoughts? Any info or advice would be greatly appreciated.See this MS support article for SP2010 workflows and generating Word docs:
https://support.microsoft.com/kb/2889634/en-us?wa=wsignin1.0
"This behavior is by design. The Create
List Item action in the SharePoint
2010 Workflow platform can't convert Word content type file templates to the correct .docx format."
I've had success in using SP 2013, Word 2013 (saving a .docx as the template instead of .dotx for the document library content type), and an SP 2010 workflow using SP Designer 2013. -
I have put a lot of work into a docx document on my Mac, but now can't open it as it gives the error message: 'the Open XML file cannot be opened because there are problems with the contents. Details, Unspecific
error, Location: 2'
When opening the original file the message said: 'this file contains word 2007 for Windows equations' etc. but I managed to track changes fine, and saved, closed and re-opened it numerous times without problem. Some graphs seemed moved, and various formulas
were illegible, but no other weirdness was observed.
I have microsoft 2008 installed on my Mac OS X version 10.6.8.
I've tried to fix it using various solutions suggested here, but am afraid am too IT illiterate to have had any luck, please help I'm new to all this!
I've uploaded it to https://www.dropbox.com/s/hkw9k6lyihzoxpc/SittwayPauktawSQUEACREPORT_KD%2BCH.docxHi,
This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation.
Please use the "Fix it" tool in the following KB article to resolve the problem. See:
http://support.microsoft.com/kb/2528942
Hope this helps.
Regards,
Steve Fan
TechNet Community Support -
Problem with File Content Conversion
Hi All
I am facing a problem with file content conversion.
This is my sample file structure:
Header_Record (Occurance - 1)
Field1 in Header
Field2 in Header
Item(Occ-1 to n)
Field3 in Item
Field4 in Item
<<ItemType>> (Structure in Item) (Occ - 0 to n)
<<Field5>> in ItemType
<<Field6>> in ItemType
<<ItemTypeCategory>> (Structure in ItemType)(Occ - 0 to n)
<<<<Field7>>>> in ItemTypeCategory
<<<<Field8>>>> in ItemTypeCategory
Footer_Record (Occurance-1)
Field9
Field10
There is a key field 'Type' in all the above records with unique value in each record.
Now, I defined Field content conversion as follows:
Recordset Structure: Header_Record,1,Item, * , ItemType, * ,ItemTypeCategory, * ,Footer_Record,1
Recordset Sequence: Ascending
KeyField Name: Type
Following are parameters defiled:
Header_Record.Keyfieldvalue: 00
Header_Record.fieldseperator: ,
Header_Record.fieldnames: Field1,Field2
Header_Record.endseperator: 'nl'
Item.keyfieldvalue: 05
item.fieldseperator: ,
item.fieldfieldnames: field3,field4
item.endseperator: 'nl'
ItemType.keyfieldvalue: 10
itemType.fieldseperator: ,
itemType.fieldfieldnames: field5,field6
itemType.endseperator: 'nl'
ItemTypecategory.keyfieldvalue: 15
itemTypecategory.fieldseperator: ,
itemTypecategory.fieldfieldnames: field7,field8
itemTypecategory.endseperator: 'nl'
Footer.keyfieldvalue: 20
Footer.fieldseperator: ,
Footer.fieldfieldnames: field5,field6
Footer.endseperator: 'nl'
Now, i pass the following file:
00,111
05,222
10,333
15,444
20,555
What i expect out of my FCC is this (Sample output to show the hierarchy of field values):
00,111
05,222
<<10,333>>
<<<<15,444>>>>
20,555
But, I am getting this output (Hierarchy is missing. All the structures are in the same order without hierarchy):
00,111
05,222
10,333
15,444
20,555
Field values are being identified according to field content conversion, but, the hierarchy of the fields is missing.
Can you please tell me how should i change my FCC config?
Sorry for this long question.
Many Thanks
Chandra
Edited by: Chandra Sekhar H on Jan 30, 2009 7:10 PM
Edited by: Chandra Sekhar H on Jan 30, 2009 7:16 PM
Edited by: Chandra Sekhar H on Jan 30, 2009 7:17 PMYou will always get a flat structure from FCC. If you want hierarchichal strucuture, you have to create a target and map. You will get only like -
Root
--Recordset
Group1
Fields
Grop2
Fields
Group3
Fields
VJ -
Problem with file content conversion in receiver file adapter
Hi All
I have a problem with file content conversion in receiver file adapter.
This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
These are the content conversion parameters:
Header_Record.fieldSeparator = ,
Header_Record.endSeparator = 'nl'
Claim_Record.fieldSeparator = ,
Claim_Record.endSeparator = 'nl'
Check_Rec.fieldSeparator = ,
Check_Rec.endSeparator = 'nl'
In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
But, Adapter status is RED with the following error message:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
In communication channel monitoring, i get the following error message:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
What is going wrong here? Can anyone please tell me?
Thanks
ChandraPosted in Incorrect forum.
Posted again in Process Integration forum -
I created a site and created a document libarary and assigned a word document as a content type . I have written a workflow to create a new document . The workflow is working fine and all the document is getting created and values are getting stored
in it .
As per my requirement I am saving the above site as site template .
After that I am creating a new site based on the above site template , Its getting created and I started the workflow , its working fine and the document is also getting created .
The problem is I am getting error while opening the word document
Error - The file filename.docx cannot be opened because there are problems with the contents .
Details - No error details availble .
IndreshWhat are you doing within the txt document? Is it general text and string based items, or have you something more elaborate going on?
An older discussion here elaborates a bit more on the dotx vs docx side of things.
http://social.msdn.microsoft.com/Forums/en-US/de1b5ff9-ea6d-460c-a707-8c28acd4906f/error-opening-office-open-xml-file-when-using-sd-workflow-to-create-item-in-document-library?forum=sharepointcustomizationlegacy
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Problems with html content in box
Hi! I have a problem with html content. For example photoswipe. If I import the folder with the index.html of photoswipe as an article all works fine. If I link it trough the folio overlay creator/webcontent) into a box in indesign dps, it stays empty. Seems like it doesnt find the images/paths??
KlausThis sounds familiar. PhotoSwipe doesn't seem to like working in a web content overlay unless the JavaScript and other source files are uploaded within HTMLResources. This means editing your local HTML file so that paths to the JavaScript, images and CSS files begin by pointing to HTMLResources virtual folder (../../../HTMLResources/) before their subfolder and filenames. It's worth a try.
-
STMS problem with transport import
Hello all
I had a problem with transports in STMS.
Log history of imported transport didn't show any error and simophore is green.
But in target system data element wasn't presented.
When i import this transport again - it's all ok.
It happened twice. And i didn't find any solutions yet.((
Did anyone have the same problem???Start import LIMUMETH/NPQ/CL_RESERVATION SPLIT_RESERV ...
0 entries from SMODILOG (CLAS/NPQ/CL_RESERVATION METH/NPQ/CL_RESERVATION SPLIT_RESERVATION
0 entries from SMODISRC (CVCLAS/NPQ/CL_RESERVATION METH/NPQ/CL_RESERVATION SPLIT_RESERVATION
0 entries from SMODISRC (CUCLAS/NPQ/CL_RESERVATION METH/NPQ/CL_RESERVATION SPLIT_RESERVATION
0 entries from SMODISRC (PRCLAS/NPQ/CL_RESERVATION METH/NPQ/CL_RESERVATION SPLIT_RESERVATION
0 entries from SMODISRC (SVCLAS/NPQ/CL_RESERVATION METH/NPQ/CL_RESERVATION SPLIT_RESERVATION
0 entries from SMODISRC (CICLAS/NPQ/CL_RESERVATION METH/NPQ/CL_RESERVATION SPLIT_RESERVATION
method SPLIT_RESERVATION include /NPQ/CL_RESERVATION===========CM01Z will be impor
REPOS /NPQ/CL_RESERVATION===========CM01M A replaced.
End of import LIMUMETH/NPQ/CL_RESERVATION SPLIT_RESERV
E071-LOCKFLAGs 000016 - 000016 updated ('2', 1 entries).
E071C entries 000016 - 000016 deleted (1 entries).
report /NPQ/CL_RESERVATION===========CM01M (L) synchronized.
report /NPQ/CL_RESERVATION===========CP (L) synchronized.
169836 5330910
LIMUTABD/NPQ/LOCATION_HIERARCHY_QRY was not imported in this step
LIMUTABD/NPQ/RESERV_ROOM_SERVICE_STR was not imported in this step
LIMUTABD/NPQ/RES_SERVICE was not imported in this step
LIMUTABD/NPQ/RES_SERVICE_DETAILS was not imported in this step
Start import LIMUWAPP/NPQ/FM SERVICE/CREA ...
Start import LIMUWAPP/NPQ/FM SERVICE/CREA ...
Start import LIMUWAPP/NPQ/FM SERVICE/GETS ...
Start import LIMUWAPP/NPQ/FM_NEW_DESIGN SERVICE/CREA ...
Start import LIMUWAPP/NPQ/FM_NEW_DESIGN SERVICE/GETS ...
0 entries from SMODILOG (WAPA/NPQ/FM_NEW_DESIGN WAPP/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIO
0 entries from SMODISRC (CVWAPA/NPQ/FM_NEW_DESIGN WAPP/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCAT
0 entries from SMODISRC (CUWAPA/NPQ/FM_NEW_DESIGN WAPP/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCAT
0 entries from SMODISRC (PRWAPA/NPQ/FM_NEW_DESIGN WAPP/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCAT
0 entries from SMODISRC (SVWAPA/NPQ/FM_NEW_DESIGN WAPP/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCAT
0 entries from SMODISRC (CIWAPA/NPQ/FM_NEW_DESIGN WAPP/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCAT
0 d / 0 i / 2 u / 1 = 33% ucf O2PAGCON
3 entries for O2PAGCON imported (TR/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
0 d / 0 i / 1 u / 0 = 0% ucf O2PAGDIR
1 entry for O2PAGDIR imported (/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
0 d / 0 i / 0 u / 4 = 100% ucf O2PAGDIRT
4 entries for O2PAGDIRT imported (/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
0 d / 0 i / 0 u / 1 = 100% ucf O2PAGEVH
1 entry for O2PAGEVH imported (/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
0 entries from O2PAGPAR (/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY %) d
0 entries from O2PAGPAR (/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY %) d
0 entries from O2PAGPART (/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY %)
0 entries from O2PAGPART (/NPQ/FM_NEW_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY %)
0 entries from SOTR_USE (LIMUWAPP/NPQ/FM#_NEW#_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
0 entries from SOTR_USE (LIMUWAPP/NPQ/FM#_NEW#_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
0 entries from SOTR_USEU (LIMUWAPP/NPQ/FM#_NEW#_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
0 entries from SOTR_USEU (LIMUWAPP/NPQ/FM#_NEW#_DESIGN SERVICE/GETSRVPOINTLOCATIONHIERARCHY
End of import LIMUWAPP/NPQ/FM_NEW_DESIGN SERVICE/GETS
R3TRDTEL/NPQ/DELIVERY_POINT was not imported in this step
R3TRDTEL/NPQ/SRV_POINT was not imported in this step
E071-LOCKFLAGs 000021 - 000025 updated ('2', 5 entries).
E071C entries 000021 - 000025 deleted (5 entries).
DEVK902177 touched.
table O2PAGDIR (R) synchronized.
1 tables in P-buffer synchronized.
2 tables in R-buffer synchronized.
42832 5373742
158359 bytes read.
Transport overhead 15.3 %.
Data compressed to 5.3 %.
Duration: 14 sec (11311 bytes/sec).
1 0
Summary:
15 REPOS imported.
Totally 15 Objects imported.
Totally 1551 tabentries imported.
5373742 bytes modified in database.
[dev trc ,00000] Thu Mar 03 18:26:16 2011 13410099 13.410099
[dev trc ,00000] Disconnecting from ALL connections: 21 13.410120
[dev trc ,00000] Disconnecting from connection 0 ... 33 13.410153
[dev trc ,00000] Now I'm disconnected from SAP DB 4897 13.415050
[dev trc ,00000] Disconnected from connection 0 63 13.415113
[dev trc ,00000] statistics db_con_commit (com_total=17, com_tx=17) 26 13.415139
[dev trc ,00000] statistics db_con_rollback (roll_total=0, roll_tx=0) 25 13.415164
Disconnected from database.
End of Transport (0000).
date&time: 03.03.2011 - 18:26:16
Main import
End date and time : 20110303182616
| Ended with return code: ===> 0 <=== -
Hi,
I have a problem with transporting from DEV to PROD. There are no imports in import queue in SMTS.
I can export data from DEV, but there are not displayed in STMS. (Only texts as Language Netweaver 04 SR1 CS).
In TMS alert viewer there are a lot of errors. F.E. READ_DOCU_FAILED, RFC_SYSTEM_FAILURE, TP_REPORTED_ERROR (Transport control program tp ended with error code 0012).
We had no problems with this before but the old transports are not displayed in gueue too.
The RFC connection seems to be ok.
Can anybody help?
Thanks
RadkaHi,
it seems does not help.
But I found a problem in transport groups.
If i run a check of transport groups. The error message "System DWP cannot read test file written by DWD" is displayed.
"When the system checked the transport groups, it discovered that system DWP cannot read a test file written by system DWD to the transport directory. The return code of the action was 0008"
DWD=DEV
DWP=PROD
Can anybody help? Or does somebody know, where sap creates the test file? Or the name of the test file...
Thanks
RH -
my ipod uses 10.2 software, but iphone5 wants 10.7version, will this pose any problems with the content currently in itunes if I downloand straight from itunes.com?
Your content is stored locally on your computer, when you update, it will not mess with your content at all.
-
"The file .docx cannot - problems with the contents."
Word 2007 file HELP!
I started a paper this morning and saved it as normal, however when I try to reopen it I get the following messege: The file .docx cannot be opened because there are problems with the contents. Does anyone know how to resolve this issue?Hi,
Please check if this applies:
http://support.microsoft.com/kb/2528942
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Cannot open Word File because "there are problems with the contents"
Hi Everyone,
I cannot open Word File because "there are problems with the contents" unspecified error; Location: 2. Please help as I need this doc for work meeting this morning. Nothing special about this doc but links were copied into it??? However I do that all the time. I have never had this happen before. I am on a 2010 machine. I just ran a disk permissions repaired and emptied the trash but still no dice. I had several other word docs up as well when I got up this morning but they are all fine. I do not have Time Capsule turned on (which I need to do but that will be another thread/question).
Thank you,
sbOk, I found a way to open this but not sure what happened to begin with and the formatting setup is different now, almost like text editor? Not sure what happened here but hope it doesn't happen again?
-
PHDS - problem with the content license
Hi, I have just enabled the basic phds settings in my httpd.conf (ie not the PHDSCommonKeyFile / PHDSPlaybackExpiration / PHDSOutputProtection / PHDSVideoEncryptionLevel) settings:
<IfModule jithttp_module>
<Location /hds-vod>
HttpStreamingJITPEnabled true
JitFmsDirPath ".."
HttpStreamingContentPath "/full/location/to/content"
HttpStreamingJITConfAllowed false
EncryptionScope server
ProtectionScheme phds
Options -Indexes FollowSymLinks
</Location>
</IfModule>
And whilst when hitting the video_bitrate.mp4.f4m file i get the expected xml back with the drmAdditionalHeader element, when I view it in the adobe multibitrate hds player i get the error "There was a problem with the content license., plesae contact your video service provider" - has anyone seen this before?
ThanksHi, the "adobe multibitrate hds player" is the one you see on the http://server:8134 home page.
I installed 4.5.3 from scratch and left all the defaults with the exception of EncryptionScope server & ProtectionScheme phds - the http error log showed the below when visiting http://server:8134 - [Mon Oct 01 08:34:18 2012] [debug] mod_headers.c(756): headers: ap_headers_output_filter()
The player does say in the bottom right "This video content is DRM protected" and the crossdomain.xml exists and looks like:
<cross-domain-policy>
<allow-access-from domain="*"/><site-control permitted-cross-domain-policies="master-only"/>
</cross-domain-policy> -
I have a problem with Transport the personalization of standard ess compone
I have a problem with Transport the personalization of standard ess component.
My problem is in several components, such as:
portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/
com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/
com.sap.pct.erp.ess.area_personal_information/persinfo_es/com.sap.pct.erp.ess.13.pdata
I have personalized this page (into rol, not directly in the page), with Ctrl+Right button.
Now i transport the rol, from Development to Quality environment, but i don't see the changes in Quality.
My system is NW 7.01 SP7, Can be that the problem?
Any idea to solve this problem?First please see note 1234273 which details how best to personalize
for all users.
http://help.sap.com/saphelp_nw04s/helpdata/en/42/ed3ce7f8593eebe10000000
a1553f7/frameset.htm
Here you can read:
"If an iView is transported to another portal all these properties are
also transported. This is needed to make sure that role-specific changes
could be transported together with the role. End user personalization
data is NOT transported in this way as end user personalization is only
local to the current portal."
Could you please ensure that personalization was done by an admin user?
I'm afraid that if it was done by an end user, personalization isn´t
transported as it's explained in the documentation provided.
Could you please confirm whether you are using exactly the same language
to access to both systems, development and quality? Maybe you are using
language en(us) in one system and en(gb) in the other one. Please take
into account that personalization is language specific.
From the web dynpro end, the WebDynpro personalization is stored
NOT in the PCD prior to 710 release. And as such it cannot be included
in a portal role transport. This feature is available with NW 7.10 SP2
or later (from webdynpro point stand). The best option is to
go with NW 7.30 as this is the first NetWeaver release with EP since
NW 7.02. -
ALV GRID Problem with reading contents
Hi there! I'm quite new with ABAP and I have some problems with the syntax of it. Maybe I should first describe my aim and then I'll show you my code.
1. I read contents from two database tables, called 'zbc_dan_registry' and 'zbc_dan_category'.
'zbc_dan_registry' has 2 columns: name, value.
zbc_dan_category' has 1 column: category.
Now I want to have an ALV Grid, that displays the contents of 'zbc_dan_registry' and one additional column with dropdown fields, where the user can select a category for each row. This is, what my code already does.
Now I want to save the contents of the whole table in a new table 'zbc_dan_registrz' (you see: 'registrz', not 'registry'!) with 3 columns:
name, category, value.
My problem is, how can I read the contents of the ALV Grid, with the user selected category for each row, and save them in an internal table? I've tried to adapt the code of "BCALV_EDIT_04", but I don't get it running.
Some detailled help would be great, you know, I'm really working hard to understand ABAP, but it's really hard for me. Thanks for your support and help!!
Here's my code so far:
*& Report ZBC400_DAN_TESTNO4
REPORT ZBC400_DAN_TESTNO4.
DATA: lt_registrz TYPE TABLE OF zbc_dan_regstrz WITH HEADER LINE,
lt_category TYPE TABLE OF zbc_dan_category WITH HEADER LINE,
ls_category TYPE zbc_dan_category, "Struktur Kategorie
ok_code LIKE sy-ucomm,
container_r TYPE REF TO cl_gui_custom_container,
grid_r TYPE REF TO cl_gui_alv_grid,
gc_custom_control_name TYPE scrfname VALUE 'CONTAINER_REG',
fieldcat_r TYPE lvc_t_fcat,
layout_r TYPE lvc_s_layo,
lt_ddval TYPE lvc_t_drop,
ls_ddval TYPE lvc_s_drop,
c TYPE i.
CLASS lcl_event_receiver DEFINITION DEFERRED.
DATA g_verifier TYPE REF TO lcl_event_receiver.
DATA: BEGIN OF gt_outtab OCCURS 0.
INCLUDE STRUCTURE zbc_dan_regstrz.
DATA: celltab TYPE lvc_t_styl.
DATA: END OF gt_outtab.
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
TYPES: BEGIN OF lt_registrz_key. "Struktur mit den Schlüsseln der Tabelle 'Registry'
TYPES: name TYPE zbc_dan_name,
value TYPE zbc_dan_value,
category TYPE zbc_dan_cat.
TYPES: END OF lt_registrz_key.
TYPES: ls_registrz_keys TYPE STANDARD TABLE OF lt_registrz_key,
ls_registrz_table TYPE STANDARD TABLE OF zbc_dan_regstrz.
METHODS: get_inserted_rows EXPORTING inserted_rows TYPE ls_registrz_keys.
METHODS: refresh_delta_tables.
METHODS: handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.
* METHODS: get_inserted_rows EXPORTING inserted_rows TYPE registrz_keys.
* METHODS: refresh_delta_tables.
PRIVATE SECTION.
DATA: inserted_rows TYPE ls_registrz_keys.
DATA: error_in_data TYPE c.
METHODS: get_cell_values IMPORTING row_id TYPE int4 pr_data_changed TYPE REF TO cl_alv_changed_data_protocol EXPORTING key TYPE lt_registrz_key.
ENDCLASS.
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_data_changed.
DATA: ls_good TYPE lvc_s_modi,
ls_new TYPE lvc_s_moce.
error_in_data = space.
IF error_in_data = 'X'.
CALL METHOD er_data_changed->display_protocol.
ENDIF.
ENDMETHOD.
METHOD get_cell_values.
CALL METHOD pr_data_changed->get_cell_value
EXPORTING i_row_id = row_id i_fieldname = 'NAME'
IMPORTING e_value = key-name.
CALL METHOD pr_data_changed->get_cell_value
EXPORTING i_row_id = row_id i_fieldname = 'VALUE'
IMPORTING e_value = key-value.
CALL METHOD pr_data_changed->get_cell_value
EXPORTING i_row_id = row_id i_fieldname = 'CATEGORY'
IMPORTING e_value = key-category.
ENDMETHOD.
METHOD get_inserted_rows.
inserted_rows = me->inserted_rows.
ENDMETHOD.
METHOD refresh_delta_tables.
clear me->inserted_rows[].
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
SELECT client name value
INTO CORRESPONDING FIELDS OF TABLE lt_registrz FROM zbc_dan_regstry.
SELECT category INTO CORRESPONDING FIELDS OF TABLE lt_category FROM zbc_dan_category.
CALL SCREEN 0100.
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'BACK'.
SET SCREEN 0.
MESSAGE ID 'BC400' TYPE 'S' NUMBER '057'.
WHEN 'SAVE'.
PERFORM save_data.
WHEN OTHERS.
ENDCASE.
ENDMODULE.
MODULE clear_ok_code OUTPUT.
CLEAR ok_code.
ENDMODULE.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'DYNPRO100'.
SET TITLEBAR 'D0100'.
ENDMODULE.
MODULE display_alv OUTPUT.
PERFORM display_alv.
ENDMODULE.
FORM display_alv.
IF grid_r IS INITIAL.
*----Creating custom container instance
CREATE OBJECT container_r
EXPORTING
container_name = gc_custom_control_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6.
IF sy-subrc <> 0.
*--Exception handling
ENDIF.
*----Creating ALV Grid instance
CREATE OBJECT grid_r
EXPORTING
i_parent = container_r
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5.
IF sy-subrc <> 0.
*--Exception handling
ENDIF.
CREATE OBJECT g_verifier.
SET HANDLER g_verifier->handle_data_changed FOR grid_r.
*----Preparing field catalog.
PERFORM prepare_field_catalog CHANGING fieldcat_r.
*----Preparing layout structure
PERFORM prepare_layout CHANGING layout_r.
*----Here will be additional preparations
*--e.g. initial sorting criteria, initial filtering criteria, excluding
*--functions
CALL METHOD grid_r->set_table_for_first_display
EXPORTING
* I_BUFFER_ACTIVE =
* I_CONSISTENCY_CHECK =
* I_STRUCTURE_NAME =
* IS_VARIANT =
* I_SAVE =
* I_DEFAULT = 'X'
is_layout = layout_r
* IS_PRINT =
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
CHANGING
it_outtab = lt_registrz[]
it_fieldcatalog = fieldcat_r
* IT_SORT =
* IT_FILTER =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
*--Exception handling
ENDIF.
ELSE.
CALL METHOD grid_r->refresh_table_display
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
EXCEPTIONS
finished = 1
OTHERS = 2.
IF sy-subrc <> 0.
*--Exception handling
ENDIF.
ENDIF.
CALL METHOD grid_r->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
CALL METHOD grid_r->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
ENDFORM.
FORM prepare_field_catalog CHANGING pt_fieldcat TYPE lvc_t_fcat.
DATA ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZBC_DAN_REGSTR2'
CHANGING
ct_fieldcat = pt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
*--Exception handling
ENDIF.
LOOP AT pt_fieldcat INTO ls_fcat.
CASE ls_fcat-fieldname.
WHEN 'NAME'.
ls_fcat-coltext = 'Name'.
ls_fcat-outputlen = '40'.
MODIFY pt_fieldcat FROM ls_fcat.
WHEN 'VALUE'.
ls_fcat-coltext = 'Wert'.
ls_fcat-outputlen = '30'.
MODIFY pt_fieldcat FROM ls_fcat.
WHEN 'CATEGORY'.
LOOP AT lt_category into ls_category.
ls_ddval-handle = 1.
ls_ddval-value = ls_category-category.
* ls_ddval-style = cl_gui_alv_grid=>mc_style_enabled.
APPEND ls_ddval TO lt_ddval.
ENDLOOP.
CALL METHOD grid_r->set_drop_down_table
EXPORTING it_drop_down = lt_ddval.
ls_fcat-edit = 'X'.
ls_fcat-drdn_hndl = '1'.
ls_fcat-coltext = 'Kategorie'.
MODIFY pt_fieldcat FROM ls_fcat.
ENDCASE.
ENDLOOP.
ENDFORM.
FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
ps_layout-zebra = 'X'.
ps_layout-grid_title = 'Kategorie zur Registry hinzufügen'.
ps_layout-smalltitle = 'X'.
ENDFORM.
FORM save_data.
DATA: ls_ins_keys TYPE g_verifier->ls_registrz_keys,
ls_ins_key TYPE g_verifier->lt_registrz_key,
ls_registrz TYPE zbc_dan_regstrz,
ls_outtab LIKE LINE OF gt_outtab,
lt_instab TYPE TABLE OF zbc_dan_regstrz.
CALL METHOD g_verifier->get_inserted_rows IMPORTING inserted_rows = ls_ins_keys.
LOOP AT ls_ins_keys INTO ls_ins_key.
READ TABLE gt_outtab INTO ls_outtab
WITH KEY name = ls_ins_key-name
value = ls_ins_key-value
category = ls_ins_key-category.
IF sy-subrc = 0.
MOVE-CORRESPONDING ls_outtab TO ls_registrz.
APPEND ls_registrz TO lt_instab.
ENDIF.
ENDLOOP.
INSERT zbc_dan_regstrz FROM TABLE lt_instab.
CALL METHOD g_verifier->refresh_delta_tables.
ENDFORM.Hi Hans,
You raised the Question in the Webdynpro ABAP forum. Here its very diffcult to get the answer from this forum. Please close it here and raise the same question in ABAP General Forum there you will get faster and so many anwsers.
Please close the question here.
Warm Regards,
Vijay
Maybe you are looking for
-
Does the Micro Photo work with Windows
Or do I need 98SE?Thanks!
-
Why do my alarms no longer work?
I am not getting my alarms for events. Noticed this about two months ago. Has there been a problem with anyone else? Harold
-
ITunes Match Step 3 Stuck on Last Song
i just signed up for iTunes Match and already experienced a bug ... Going trough installation I am stuck in Step 2 on the last song... I read on other forums that people restarted computers, stopped-restarted the installation yet after having tried e
-
Please help me!, i have a dual band router (WRT610N) and i am losing connection to it every day. i keep having to reset it, i have restore it to factory defaults several times and keep having the problems Any ideas?????
-
Automator is still a little confusing to me, I have virtually no experience, but wish to have automated emails sent when the contents of certain folders in my idisk/public folder are updated. First thing that confuses me is I thought automator worked