Sitemap

Amicuk Programming Answers

RFC enabled function module for insert update and delete in a Ztable..

2015-10-11   Views:5

Advertisement

friends.. Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps.. what are the import, export parameters and how to develop

friends..
Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps..
what are the import, export parameters and how to develop and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address)
Thanks and Regards

The replay answer
Advertisement
Hi,
Try this code.
REPORT ZMMC071Z_RMV.
TYPE-POOLS : ABAP.
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
               <DYN_WA>,
               <DYN_FIELD>,
               <LV_CONDI>.
DATA: DY_TABLE TYPE REF TO DATA,
DY_LINE TYPE REF TO DATA,
XFC TYPE LVC_S_FCAT,
IFC TYPE LVC_T_FCAT.
SELECTION-SCREEN BEGIN OF BLOCK F1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_TABLE  LIKE DD02L-TABNAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK F1.
Evento: At Selection Screen                                          *
START-OF-SELECTION.
  PERFORM GET_STRUCTURE.
  PERFORM CREATE_DYNAMIC_ITAB.
  PERFORM GET_DATA.
END-OF-SELECTION.
*& Form get_structure
text
FORM GET_STRUCTURE.
  DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
  XDETAILS TYPE ABAP_COMPDESCR.
  DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
  DATA VL_LENGHT(30).
Get the structure of the table.
  REF_TABLE_DES ?=
  CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
  IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
  LOOP AT IDETAILS INTO XDETAILS.
    CLEAR XFC.
    XFC-FIELDNAME = XDETAILS-NAME .
    XFC-DATATYPE = XDETAILS-TYPE_KIND.
    XFC-INTTYPE = XDETAILS-TYPE_KIND.
    XFC-INTLEN = XDETAILS-LENGTH.
    XFC-DECIMALS = XDETAILS-DECIMALS.
    APPEND XFC TO IFC.
  ENDLOOP.
ENDFORM. "get_structure
*& Form create_dynamic_itab
text
FORM CREATE_DYNAMIC_ITAB.
Create dynamic internal table and assign to FS
  CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    EXPORTING
      IT_FIELDCATALOG = IFC
    IMPORTING
      EP_TABLE        = DY_TABLE.
  ASSIGN DY_TABLE->* TO <DYN_TABLE>.
Create dynamic work area and assign to FS
  CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
  ASSIGN DY_LINE->* TO <DYN_WA>.
ENDFORM. "create_dynamic_itab
*&      Form  get_data
      text
-->  p1        text
<--  p2        text
FORM GET_DATA .
*Get data from p_table into internal table <DYN_TABLE>
  SELECT * INTO TABLE <DYN_TABLE>
      FROM (P_TABLE)
Here you can implemente function DELETE, INSERT.
ENDFORM.                    " De_para

Go to See the other 2 answers

RFC enabled function module for insert update and delete in a Ztable..

Category:DefaultRelease time:2015-10-11Views:130

friends.. Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps.. what are the import, export parameters and how to develop[More]

RFC enabled function module to insert , update and delete data in a ZTABLE

Category:DefaultRelease time:-0001-11-30Views:130

friends.. Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps.. what are the import, export parameters and how to code an[More]

Rfc enabled function module for the updating the database table

Category:DefaultRelease time:-0001-11-30Views:130

Hi,         I need one rfc enabled function module for the updating the database table from the legacy system.currently i am using the rfc_read_table to read the database table.similarly i need for the update.Hi I believe you need to create one by yo[More]

RFC enabled function module is not runing the BDC code in it.

Category:DefaultRelease time:2015-10-11Views:130

Dear Experts, 1. We have created a RFC enabled function module to change status of a activity and to save it we are using BDC code and we have also put the code in the RFC FM only. The RFC fm is runing fine and changing the data and also saving it by[More]

如何创建 rfc enabled function,才能够在module里显示?

Category:DefaultRelease time:-0001-11-30Views:130

你好. 1.   我通过se80创建rfc enabled function的话,无法再logistics,或在accounting等模块里找到.   我如何在模块里(比如 logicstics, accounting)创建rfc enabled function, 才能够在module里面查看这些信息并调用? 2.     我想调用这个function,将传进来的数据保存到数据库中. 这两段代码(function,table)怎么写啊? 谢谢.1.你所说的模块,是指什么呢?在创建SAP程序/函[More]

RFC enabled function module using call transaction

Category:DefaultRelease time:2015-10-11Views:130

Hi, We have a scenario wherein we have a RFC enabled function module which inturn uses a call transaction to create a PM order & attaches the PM notification against it. Sometimes it so happens that the order does not get created for some reason or t[More]

RFC enabled function module and BAPI?

Category:DefaultRelease time:-0001-11-30Views:130

What is the difference between RFC enabled function module and BAPI?  I have requirement to develop a new BAPI which will update a custom table and read the same table in SAP from an external application. Do we need define a port or RFC destination f[More]

How to call Custom RFC enabled Function Module in R/3 From XI

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts, I want to call custom RFC enabled Function Module by sending some input parameters from XI. How to do this Thnx RAMSHi RAMS, 1. Under the SWCV Go to the Imported Objects. 2. Right click on the RFC and click on the Import of SAP object. 3.[More]

Problem with String parameters while Calling RFC enabled Function Module

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, I execute BAPI(RFC enabled Function Module) from my WebDynpro Application and retrieve data from R/3. To fetch the data I pass few String parameters to BAPI from my Dynpro Application. Now the problem is that while making this call, the param[More]

How to call a RFC-enabled function module

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, We have 2 systems; system 1 (client 420) and system 2 (client 600). I just want to know that how can a RFC-enabled function module be called from one system (420) whereas the RFC-enabled functio nmodule exists in the other system (600). Also,[More]

RFC enabled function module which will be called from XI

Category:DefaultRelease time:-0001-11-30Views:130

Hi Abappers, I have to send confirmation of the sales orders created by inbound Idocs ORDERS05 to XI. For this I have to use outbound Idoc ALEAUD01. But since I also need to send NETWR(from VBAK) and there is no field in this Idoc for that, I have to[More]

Hot
Please can someone tell me if I can delete all the mail in my junk or a large number of mail (100+) in go? I'm so fed up of spending 5-10 mins just selected each mail and deleting it one by one! Please help or apple update ASAP. Even old school phone [More]
I've installed Reader 8.1.2 on a 2003 Windows server STD Edition with SP1. Everytime I open a pdf document (regardless of what's contained in it)and I scroll using the mouse or the scroll bar the AcroRd32.exe process spikes near 100% utilization. The [More]
New Bookmarks are not appearing in bookmarks folder. or appear in any folder I try to save them to.Triple-click the line below on this page to select it: ~/Library/Safari/Bookmarks.plist Right-click or control-click the highlighted line and select Se [More]
Have had difficulty implementing ISO-3309 FCS or Frame Check sequence in LabVIEW. Has anyone suceeded in doing so? Is it available?Dear Friends, I'm looking for a "Frame Check Sequence" Labview VI that I will use to communicate with an E5KC OMRO [More]
After moving up to Lion on its release, I did not realise how much I would miss the little summary at the bottom of each open folder window (No. of items, etc.). I haven't found any way to bring that back in Lion. Has anyone else? Thanks, TedMany tha [More]
We have been using the TLF to render text in a web browser, but now we need to upload the TextFlow XML to a server and render the content to exactly the same output. I know very little about swf on servers - is that a properly scaleable solution? Alt [More]
Hi, Can Anybody help me to configure personal Hotspot in iPAD2? ThanksThere are right. Apple close with iOS 5 the hotspot personal on iPad 2 for better sell the new one Also if you take new after there close too about other new iPad there not import [More]
How long does an iPod touch stay disabled?As long as it says on the screen. If it also says connect to iTunes then yo have to restore via iTunes to regain use of the iPod Disabled Place the iOS device in Recovery Mode and then connect to your compute [More]
Is anyone experiencing Freehand 11 crashes when trying to open a complex document after installing the Apple Mac OS X 1.4.7 update? I can open & create simple documents but not able to open a complex or multi page FH document in 10.4.7. Please provid [More]
Settings on Exchange to accept emails from our AS400Exchange Receive Connector is responsible for receiving emails. You can refer to the following article to know how to configure the connector: http://technet.microsoft.com/en-us/library/bb690954(v=e [More]