Transport table entries sap to sap using rfc
Hi Guru's,
I want to write a program for update one table entries of sap system to onother table of sap system using RFC establishment.
If you have any example code kindly give it to me.
Thanks & Regards,
Lakshman.annamaneni
Hi,
POST - 1
Fisrt create RFC Destination in SM59 between sender & receiver system.
*Sender System:*
FUNCTION XX_RFC_READ_SPFLI.
*"*"Local Interface:
*" IMPORTING
*" VALUE(CARRID) LIKE SPFLI-CARRID
*" VALUE(CONNID) LIKE SPFLI-CONNID
*" EXPORTING
*" VALUE(EX_SPFLI) LIKE SPFLI STRUCTURE SPFLI
*" VALUE(SYS) LIKE SY-SYSID
*" EXCEPTIONS
*" INVALID_DATA
SELECT SINGLE * FROM spfli INTO spfli_workarea
WHERE carrid = carrid
AND connid = connid.
IF sy-subrc EQ 0.
ex_spfli = spfli_workarea.
ELSE.
RAISE invalid_data.
ENDIF.
Sys = sy-sysid.
ENDFUNCTION.
*NEXT: create a Prog.*
REPORT XX_RFC_Tutorial.
Global Data Declaration
TABLES: spfli.
PARAMETERS: p_carrid LIKE spfli-carrid DEFAULT 'LH',
p_connid LIKE spfli-connid DEFAULT '400'.
DATA: SYSTEM LIKE SY-SYSID.
* Calling the Function
CALL FUNCTION 'XX_RFC_READ_SPFLI'
EXPORTING
carrid = p_carrid
connid = p_connid
IMPORTING
ex_spfli = spfli
sys = system
EXCEPTIONS
invalid_data = 1.
* Handling Exceptions
CASE sy-subrc.
WHEN 1.
WRITE 'No data available'.
EXIT.
ENDCASE.
* Displaying Results
WRITE: spfli-carrid,
spfli-connid,
spfli-cityfrom,
spfli-cityto,
spfli-deptime,
spfli-arrtime.
See the next post for Receiver System:
Anil.
Similar Messages
-
Transporting table entry with primary key 120 char
Hi all,
I have 2 separate questions which I feel are closely related.
In the url:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm
It says:....
<i>If the key length is greater than 120, there are restrictions when transporting table entries. The key can only be specified up to a maximum of 120 places in a transport. If the key is larger than 120, table entries must be transported generically.</i>
<b>How do I transport the table entries "generically" for such a table?</b>
To further illustrate my actual problem:
My problem in the real world lies with the MIMETYPES table, maintained in trx SMW0.
I select the mime types row by row and do a <u>Table Entry > Transport Entries,</u> but get an error that says
<i>"Key entry for table MIMETYPES may only be generic"</i>.
As a result it fails to attach to my transport.
(Note: the primary key of MIMETYPES is 128 chars long)
The Diagnosis long text says "<i>The key is longer than allowed by the Change and Transport System (120 characters</i>)."
The Procedure says:
<i>1. Make sure that you only specify the character fields before the
first non-character key field. You must enter the key with a generic
ending. Enter the generic symbol directly after the specified part
of the key.
2. You must enter the generic symbol at the latest in the 120th
character of the key. </i>
<b>What is this generic symbol that i need to insert at the 120th position??</b>
Message was edited by:
Kevin Wong
Message was edited by:
Kevin Wong
Message was edited by:
Kevin WongThanks Nick!
So the mysterious "generic character" is actually the asterisk (*). It works.
Strange tho as the error long text says to insert the "generic character" at the 120th character position of the key, but I found that altho I can save it, the transport still fails with the same error.
I tried placing the * right after the key value e.g.
KEY123*
and it worked.
Thanks again! -
How I could transport table entries from table NRIV
Does anyone knows how I could transport table entries from table NRIV.
I can mark them in se16 but the "table entries"->"transport" is grey. What shouuld be done.
Is there another way to transport NRIV entries.
Thank you in advanceHi,
Goto SE01 -> Create Transport Request.
Assign the Workbench request/Project.
Single click the TR. Click on the DISPLAY OBJECT LIST or Press SHIFT + F11.
Click on CHANGE -> Insert.
PgmID Obj Object name
R3TR TABU NRIV
CLick Extras -> Change Object Function -> All entries.
Save.
Release the Tr.
Best regards,
Prashant -
Transporting table entries present in standard SAP R/3 table u201CTMCEXCFZu201D.
Hi All,
We have a requirement where in we need to capture a table entry in transport request in R/3.
The table "TMCEXCFZ" is a standard SAP R/3 table.
The" transport entries" option under the "table entry" in menu bar is disabled in our case.
Is there an alternative way to capture the table entries in the transport request?
Thanks for your help in advance.
Thanks and Regards
Arun AilHi Arun
Try to go to object changeability in the table....assign the table in a package.....then try to save this...it should ask for a transport...
Hope this helps
Cheers
Chanda -
Hi,
this one should be easy to solve.
We have a user-defined customizing table with maintenance view. In maintenance view we defined no, or user, recording routine so that users can do adjustments without transport.
For the initial distribution to a couple of systems we want to have the table entries in a transport. If I use the transport button in initial screen of SM30, message SV142 says Transport is not possible for the specified data. In maintenance, all transport-related functions are disabled.
What are the necessary steps to include the table contents into a transport?
TIA,
Regards,
ClemensClemens,
"no, or user, recording routine" ==> as far as I know, this prevents the transport request, you have to choose the other option (standard...), than SAP will prompt for transport request at the time of saving the entries (anyway, I will check tomorrow in the office)
one more thing: "For table key, enter * to transport all records." I think you have to add the client number at least, to avoid problems (if oyu have more clients and data is maintained in more clients on this machine)
ec
UPDATE : yes, it is because of the no, or user, recording routine ==> this prevents any automatic transport request creation. -
Error while transporting table entries to QA
Hi All,
I am working on system 4.6C i have a ztale with 3 key fields.
I have added entries in table sucessfully.
While imprting to Quality system.
key field1 2183
Key field2 A
Key field3 CHF
It returns an return code with message called 'key of table Ztest (6102183 ACHF) only valid up to offset 13. It's better to skip it.
It has only enter when i enter values in 3 key fields. If i left key field2 as empty for those entries the values are impoerted to quality suceesfully.
Can anybody please let me know what would be the problem.
Thanks,YOu can try transporting the entries using generic keys.
-
Problem while transport table entries (TFRM)
Hi ,
An routine has been developed earlier, It has been release but not moved to Quality. In the same request there are another 3 or 4 tasks which i don't want to transport. So created a new request all the coding part is saved. But when i am trying to transport the table Entries of TFRM into a transport request i am getting an error as specified below.
Fill table key for table TFRM only up to position 007 only
So can any one help me out in resolving the issue.
Thanks In Advance.
RamanaHi Soniya,
That is not the issue, when i create a Routine using VOFM transaction at the time of creation it self entries will be created in the table TFRM, but since the request has been release I need to go alternative way to transport the entries. So I am trying to transport the entries into a request.that time I am getting error.
Thanks & Regards,
Ramana -
Transport table entries directly from table with field added from append S
Hi
Guys, I have changes one standard table , I mean I use append structure and add a new field in to that . As this is T* ( text table ) , it also V ( view ) but as I change the field in T* table . I went in to table and maintain entries directly into table . After that I go to menu and select all the entries and as I want to push it to my test client . I create the entries and then I transport it to test . When I saw the table that entries were missing. Then I saw my existing transport in SE10 & SE09 and I notice it just transport the Keys fields content and its not transporting the new field content which I add as append structure .
Do you guys have any idea .how to transport those entries?
Cheers
UsmanItll behave in the same way , even you give "*" in your transport . Do one thing go to table, double click on your structure and once youre in structure <b>Go to->Extras->Enhancement category
And select radio button 1 or 2 and try again </b>
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
Problem transporting table entries
Hi,
I need to transport my table entries frm development to test and production. However, even if i us standard recording routine in the table maintenance and then create entries ant transport, it doesnt work.
Also, is there an option to do it directly from SE11? Do i need admin rights?
RegardsHi,
Table entries can be included in a transport request and can be transported .
For including the table entries in a request,Follow the below mentioned procedure.
Hi,
Table entries can be forcefully included in a transport request and can be transported to the required system.
For including the table entries in a request,Follow the below mentioned procedure.
but the data will be stored under workbench request
1.create a workbunch request in se01.
2.Double click on the request no.
3.Select the object tab in the new screen appeared.
4.Go for change mode (Ctrl+F1)
5.Select the Program id as R3TR and Object Type as TABU.
6.Give the Object name as Table name(ZTABLE)
7.Click on the function button on that row.
Give * in that editor appeared and save this.
Now all the table entries are binded in that request and can be transported across the server.
instead if you are putting on the user recordin on in TMG it will ask for a request each time you save some entries in the table. -
Unlock custom table entries after user exits using /n
Hello,
I want to lock a record in a custom table at the beginning when users execute a transaction. Users do various activities and save the change then the lock can be released. My issue here is after I lock when the user execute the transaction, if the user does not save or come out using exit keys, for example press /n or just close the session, I need to still unlock the record. Could any one pls suggest what is the best approach. How does sap handles when we use VA02 and just close the session?
Many thanks
RameshRamesh,
You need to check for the other actions besides save. Perform the same unlock for other action as you currently do for a save.
If SAVE.
unlock.
Else
unlock
endif.
Bruce -
Passing dynamic internal table to FM using RFC
Dear All,
Is it possible to pass a dynamic internal table to a function module using RFC?
If it is possible than how do i achive this?Basically not, RFC enabled FM parameters must be defined by a LIKE or TYPE clause. so you may try to use a prededined SAP type wide enough (e.g. TAB512 ) and map the data in the FM and caller program (in Unicode try to use tools like class CL_ABAP_CONTAINER_UTILITIES to map data between actual internal table record and RFC used itab "container" type)
For examples look at RFC enabled RFC_GET_TABLE_ENTRIES FM, and look for where-used program.
Regards,
Raymond -
Hello,
We use SAP 4.7.2. We need to transport table entry. How to do this? Transport is not being automatically created. I found some blog but in our system its suggestions are not working. Please help.
Thanks in advance
GalinaEric Vota wrote:>
> 4. Once inside the table maintenance, select the menu option Table View-->Transport
See my above comment about delivery classes.
Yes, a developer on their own with SAP_ALL can even transport purchase orders, or make a complete hash out of the system security and integrity (In DEV and PROD), if nobody is checking the transports and the development system...
My understanding is that if the business process (and risks) require it, you can transport sensitive master data (from DEV) or make customizing transparent and local (in PROD). Such a change to the delivery class of the table should be tested and approved, and transported.
Also, take a look at the comments to that blog for some warnings.
Cheers,
Julius -
Transport table+data one server to another server
Hi expert,
i have 2 servers DEV1 & DEV 2 with ecc 6.0 oracle 10g.
Both server have same patch level and same version of OS,DB & Patch.
in DEV1 have a table which consist 54500 rows i want move to this table and data in DEV2 server.
Please suggest How can i do this if i create a transport or copies request it move only structure not data.
Regards,Hi,
It is possible through SAP by creating transport request.
See the below link for how to:
Transporting Table entries from one server to another
[http://****************/Tips/Basis/Transport/TableEntries.htm|http://****************/Tips/Basis/Transport/TableEntries.htm]
Regards.
Rajesh Narkhede -
Check who's deleted table entries without SCU3
Hi,
we need to find out which program or user deleted some table entries. The Where-used-list doesn't show anything, so it must be a dynamic call. The table has 'Log data changes' switched on, but we don't have the system logging set due to performance reasons. Is there nevertheless a chance to find out who deleted the entries?
Regards
NicolaRegarding where-used-list, maybe the table is part of a maintenance view, you should check this as well.
If there is no table logging and the changes are not recorded in transport requests, then I'm afraid there is no way to find out.
Thomas -
i need to create a request for table entries which is Ztable and has maintence screen.
so the transport option is not there
i need to transport these entries to production client
what should i do
sarangan rHi,
You can transport table entries from one system to other system. Take a look at this thread.
table entries transport help
Re: Table DATA transfer
First, you need to set the table attributes - DELIVERY CLASS to C.
Regards,
Ravi
Note :Please close the thread if the issue is resolved
Maybe you are looking for
-
Is there an air print app?
I'm trying to print from my iPad to my printer. The printer is in HP 6300 . This printer does not automatically air print is there an app that can do so?
-
Movie to BMP of QTVR doesn't save image in viewport
When viewing a QTVR I move the image in the viewport to a particular view then "Export-->Movie to BMP" and I get the initial view, not the view in the viewport. I know this used to work but now it doesn't. Any workaround? Have they changed, or broken
-
Metadata Navigator - Scenario execution error
Hello, We have installed Metadata Navigator running under Sun App Server (it is J2EE 1.4 compliant) with ODI v10.1.3.4.0. It seems to work fine except for a couple of problems. The main one is when we execute one of our scenarios we always get: java.
-
No audio when exporting to mpeg
Newbie here, on my first project. I have exported it to mpeg and all went well except there is no audio. I am using the trial version of Premiere Elements 8 on a PC running Windows 7. Any guidance?
-
For the past 2-3 days I have weak or no signal on my Samsung Galaxy 3. A friend of mine with a different phone noted she was having service signals as well a couple of days ago, but her issue has-Is this a VZW problem? a phone problem? What shoul