Function module to insert table VBEH /move from VBEP to VBEH
Hi all,
Actually, I'm using BAPI_SALESORDER_CHANGE to change quantity of the schedule line, but it only update quantity in table VBEP. I want to make old quantity saved to history table (VBEH).
is there any function module/BAPI to get this?
When Sales Distribution - schedule line agreement (VBEP) move to schedule line history (VBEH) ?.
Thanks.
yeah....
i got this method from my friend. Thanks Teddy
it will save old schedule line to VBEH and create new release order
* Populate Sales and Distribution Document Number
p_salesdocument = pwa_curr_forecast-vbeln.
* Populate Sales Document Header Checkbox
pwa_order_header_inx-updateflag = 'U'.
* Populate Schedule Lines
CLEAR lwa_schedule_in.
lwa_schedule_in-itm_number = pwa_curr_forecast-posnr.
lwa_schedule_in-sched_line = pwa_curr_forecast-etenr.
lwa_schedule_in-req_qty = pwa_curr_forecast-wmeng.
APPEND lwa_schedule_in TO pi_schedule_in.
* Populate Schedule Line Checkbox
CLEAR lwa_schedule_inx.
lwa_schedule_inx-itm_number = pwa_curr_forecast-posnr.
lwa_schedule_inx-sched_line = pwa_curr_forecast-etenr.
lwa_schedule_inx-updateflag = 'I'.
lwa_schedule_inx-req_qty = 'X'.
APPEND lwa_schedule_inx TO pi_schedule_inx.
* Populate delete schedule vblb
CLEAR lwa_del_schedule_in.
lwa_del_schedule_in-itm_number = pwa_release_ord-posnr.
lwa_del_schedule_in-rel_type = '1'.
lwa_del_schedule_in-dlvschedno = l_labnk.
lwa_del_schedule_in-dlvscheddate = pwa_release_ord-abrdt.
APPEND lwa_del_schedule_in TO pi_del_schedule_in.
* Populate delete schedule vblb checkbox
CLEAR lwa_del_schedule_inx.
lwa_del_schedule_inx-itm_number = pwa_release_ord-posnr.
lwa_del_schedule_inx-rel_type = '1'.
lwa_del_schedule_inx-dlvschedno = 'X'.
lwa_del_schedule_inx-dlvscheddate = 'X'.
lwa_del_schedule_inx-updateflag = 'I'.
APPEND lwa_del_schedule_inx TO pi_del_schedule_inx.
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
EXPORTING
salesdocument = p_salesdocument
* ORDER_HEADER_IN =
order_header_inx = pwa_order_header_inx
* SIMULATION = ' '
* INT_NUMBER_ASSIGNMENT = ' '
* BEHAVE_WHEN_ERROR = ' '
* BUSINESS_OBJECT = ' '
* CONVERT_PARVW_AUART = ' '
* CALL_FROM_BAPI = ' '
* LOGIC_SWITCH =
* I_CRM_LOCK_MODE = ' '
* NO_STATUS_BUF_INIT = ' '
* IMPORTING
* SALES_HEADER_OUT =
* SALES_HEADER_STATUS =
TABLES
return = li_return
* ITEM_IN =
* ITEM_INX =
schedule_in = pi_schedule_in
schedule_inx = pi_schedule_inx
* PARTNERS =
* PARTNERCHANGES =
* PARTNERADDRESSES =
* SALES_CFGS_REF =
* SALES_CFGS_INST =
* SALES_CFGS_PART_OF =
* SALES_CFGS_VALUE =
* SALES_CFGS_BLOB =
* SALES_CFGS_VK =
* SALES_CFGS_REFINST =
* SALES_CCARD =
* SALES_TEXT =
* SALES_KEYS =
* CONDITIONS_IN =
* CONDITIONS_INX =
* SALES_CONTRACT_IN =
* SALES_CONTRACT_INX =
* EXTENSIONIN =
* ITEMS_EX =
* SCHEDULE_EX =
* BUSINESS_EX =
* INCOMPLETE_LOG =
* EXTENSIONEX =
* CONDITIONS_EX =
* SALES_SCHED_CONF_IN =
* DEL_SCHEDULE_EX =
del_schedule_in = pi_del_schedule_in
del_schedule_inx = pi_del_schedule_inx
* CORR_CUMQTY_IN =
* CORR_CUMQTY_INX =
* CORR_CUMQTY_EX =
* PARTNERS_EX =
* TEXTHEADERS_EX =
* TEXTLINES_EX =
* BATCH_CHARC =
Similar Messages
-
RFC enabled function module for insert update and delete in a Ztable..
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 RegardsHi,
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 -
Function Module to Insert Agent assignment upon creation of Responsibility
Hi Friends,
Using BDC I am able to create Resposibilities in Responsibilities tab of PFAC tcode.
I need to insert Agent assignment under created Responsibility.
Actually In Tcode PFAC I enter Rule then select change button this will lead us to next screen there i select Responsibilities tab
there I select create button then it will give a pop-up in that i will enter Object abbr. and Name then i will select continue.
then next i will enter category then select save.
Up to this using recording I am able to create Responsibilities but here i need to come back and i need to select just now created
Responsibility and i need to select insert agent assignment icon then it will give popup there i need to select Orgnizational unit then continue then it will give small popup ther i need to give search term (what ever we entered in Object abbr.) then continue again one popup will come ther we need to select that Org.unit check box then continue then it will one more popup there i need to select create then it will be inserted under Responsibilitty.
In the above entire explanation I am able do upto create Responsibilities but to insert agent assignment we need to come back after save but it is not possible through Recording because after save Recording will be ended.
So could you please guid me how to insert agent assignment under just created Responsibility.
If there is any function module to do that please suggest me .
Thanks
ChanduHi,
I tried like that also.
Whenever we need to insert agent assignment under just created Responsibility we need to select just created responsibility
created by first BDC . But in seccond BDC WITH TCODE OOCU_RESP Recording is not capturing that action (selecting just created Responsibility).
It is giving the message 'You did not select a valid object' in the status bar.
So It is unable to insert agent assignment under responsibility.
I think there would a function module which insert agent assignment under selected responsibility.
If anybody knows please suggest me or am I making any mistake ?
If you would like to see my code pls find below.
*& Report YCRM_CREATE_REPBLT_AGENT
REPORT ycrm_create_repblt_agent.
*Selection Screen
PARAMETERS : p_rule TYPE pdtask-seark OBLIGATORY,
p_file TYPE rlgrap-filename OBLIGATORY.
*Data Declarations
TYPES : BEGIN OF ty_resp,
short TYPE p1000-short,
stext TYPE p1000-stext,
category TYPE ro_expr, "EDIT_BIND_DEF-EXPR_LOW(02),
END OF ty_resp.
DATA : it_resp TYPE TABLE OF ty_resp,
wa_resp TYPE ty_resp,
p_file1 TYPE string.
DATA : it_bdcdata TYPE TABLE OF bdcdata,
wa_bdcdata TYPE bdcdata,
it_bdcmsgcoll TYPE TABLE OF bdcmsgcoll,
wa_bdcmsgcoll TYPE bdcmsgcoll.
*Constants Declarations
CONSTANTS : c_x TYPE c VALUE 'X',
c_tcode(4) TYPE c VALUE 'PFAC',
c_mode TYPE c VALUE 'A'.
*AT SELECTION-SCREEN event for providing f4 help for input file
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM file_on_f4.
*Start of selectin event.
START-OF-SELECTION.
File Upload
PERFORM upload_file.
*BDC Logic
PERFORM bdc_to_create_rep.
*& Form BDC_DYNPRO
text
-->P_0061 text
-->P_0062 text
FORM bdc_dynpro USING fp_program "value(p_0061)
fp_dynpro. "value(p_0062).
CLEAR wa_bdcdata.
wa_bdcdata-program = fp_program.
wa_bdcdata-dynpro = fp_dynpro.
wa_bdcdata-dynbegin = c_x.
APPEND wa_bdcdata TO it_bdcdata.
ENDFORM. " BDC_DYNPRO
*& Form BDC_FIELD
text
-->P_0066 text
-->P_0067 text
FORM bdc_field USING fp_fnam "value(p_0066)
fp_fval. "value(p_0067).
CLEAR wa_bdcdata.
wa_bdcdata-fnam = fp_fnam.
wa_bdcdata-fval = fp_fval.
*WA_BDCDATA-DYNBEGIN = C_X.
APPEND wa_bdcdata TO it_bdcdata.
ENDFORM. " BDC_FIELD
*& Form FILE_ON_F4
text
--> p1 text
<-- p2 text
FORM file_on_f4 .
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
field_name = 'P_FILE'
CHANGING
file_name = p_file
EXCEPTIONS
mask_too_long = 1
OTHERS = 2.
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. " FILE_ON_F4
*& Form UPLOAD_FILE
text
--> p1 text
<-- p2 text
FORM upload_file .
p_file1 = p_file.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = p_file1
has_field_separator = 'X'
CHANGING
data_tab = it_resp
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
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
*& Form BDC_TO_CREATE_REP
text
--> p1 text
<-- p2 text
FORM bdc_to_create_rep .
LOOP AT it_resp INTO wa_resp.
REFRESH : it_bdcdata,
it_bdcmsgcoll.
*Screen 0600
PERFORM bdc_dynpro USING 'SAPLRHWS' '0600'.
PERFORM bdc_field USING 'BDC_CURSOR'
'PDTASK-SEARK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=AEND'.
PERFORM bdc_field USING 'PDTASK-SEARK'
p_rule. "'90000159'.
*Screen 0040
PERFORM bdc_dynpro USING 'SAPLRHWS' '0040'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=RESP'.
PERFORM bdc_field USING 'BDC_CURSOR'
'HRS1000-SHORT'.
PERFORM bdc_field USING 'HRS1000-SHORT'
'Z99999999972'.
PERFORM bdc_field USING 'HRS1000-STEXT'
'Category (RUN -SUPPORT) + C&PS Web'.
PERFORM bdc_field USING 'HRS1203-ACTOR_FLAG'
'R'.
*Screen 0040
PERFORM bdc_dynpro USING 'SAPLRHWS' '0040'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=INSE'.
PERFORM bdc_field USING 'BDC_CURSOR'
'DATESET'.
PERFORM bdc_field USING 'DATESET'
'O'.
*Screen 0300
PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'SVALD-VALUE(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=FURT'.
PERFORM bdc_field USING 'SVALD-VALUE(01)'
wa_resp-short. "'PL-BK'.
PERFORM bdc_field USING 'SVALD-VALUE(02)'
wa_resp-stext. "'Plan - BendixKing Team'.
*Screen 0200
PERFORM bdc_dynpro USING 'SAPLRHUZ' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EDIT_BIND_DEF-EXPR_LOW(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SAVE'.
PERFORM bdc_field USING 'P1000-BEGDA'
'23.03.2011'.
perform bdc_field using 'P1000-ENDDA'
'31.12.9999'.
PERFORM bdc_field USING 'P1000-SHORT'
wa_resp-short. "'PL-BK'.
PERFORM bdc_field USING 'P1000-STEXT'
wa_resp-stext. "'Plan - BendixKing Team'.
PERFORM bdc_field USING 'EDIT_BIND_DEF-EXPR_LOW(02)'
wa_resp-category. "'z11'.
CALL TRANSACTION c_tcode USING it_bdcdata
MODE c_mode
MESSAGES INTO it_bdcmsgcoll.
IF sy-subrc <> 0.
MESSAGE i001(ymsg)."Error Message
ROLLBACK WORK.
ELSE.
REFRESH : it_bdcdata,
it_bdcmsgcoll.
**screen 0410
PERFORM bdc_dynpro USING 'SAPLRHUZ' '0410'.
PERFORM bdc_field USING 'BDC_CURSOR'
'P1000-OBJID'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=CHG'.
PERFORM bdc_field USING 'P1000-OBJID'
p_rule. "'90000162'.
**screen 0420
PERFORM bdc_dynpro USING 'SAPLRHUZ' '0420'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=RELI'.
PERFORM bdc_field USING 'DATESET'
'O'.
**screen 0110
PERFORM bdc_dynpro USING 'SAPLRHW0' '0110'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=CONT'.
**screen 0100
PERFORM bdc_dynpro USING 'SAPLRHWL' '0100'.
*perform bdc_field using 'BDC_CURSOR'
'PCHDY-SEARK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=CONT'.
PERFORM bdc_field USING 'PCHDY-SEARK'
wa_resp-short. "'PL-BK'.
**screen 0120
PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
*perform bdc_field using 'BDC_CURSOR'
'04/03'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
**screen 0400
PERFORM bdc_dynpro USING 'SAPLRHUA' '0400'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=INSE'.
*perform bdc_field using 'BDC_CURSOR'
'PERIOD-BEGDA'.
PERFORM bdc_field USING 'PERIOD-BEGDA'
'29.03.2011'.
PERFORM bdc_field USING 'PERIOD-ENDDA'
'31.12.9999'.
CALL TRANSACTION 'OOCU_RESP' USING it_bdcdata
MODE c_mode
MESSAGES INTO it_bdcmsgcoll.
IF sy-subrc <> 0.
MESSAGE i001(ymsg)."Error Message
ROLLBACK WORK.
ELSE.
MESSAGE i000(ymsg)."Success Message
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " BDC_TO_CREATE_REP
Guide me on this.
Thanks -
RFC enabled function module to insert , update and delete data in a ZTABLE
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 and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address. I need to develop a RFM which does the 3 tasks, insert update delete in the same RFM)
Thanks and Regardscreate a f.n mod in se37 and make it rfc enabled. ur import parameters are Emp_Id, Name, Address and TASK and u can have an export parameter like result which gives the status of the update. based on task u can insert using keyword INSERT....and update using UPDATE or MODIFY and delete using DELETE. these keyword are not compelte with syntax but need to refer the SAP documentation.
-
Crystal Reports Based on SAP Function Module and Transperant Tables
Hi,
I need to develop reports based on SAP trasperant tables and to filter the records I require to use one of the function module in SAP.
I have created parameters in Crystal reports that are required for the function to execute and are included in the where clause of the query. This helped the fuction to get those parameters and execute it.
The thing is that the fuction works fine with one set of parameters and gives accurate results both in SAP and Crystal Reports.
But fails for other set of parameters.
It works fine when we directly execute function in SAP produces a record set. But, when we pass those parameters from Crystal Reports it fetches no data.
Can anybody tell me the exact procedure to use function module and transperent tables together in Crystal Reports ?
Thanks in Advance.
Niwas JoshiHi,
This is going to be hard to explain, however you need to recognize that the function has input and possibly output (export) parameters. Crystal Reports is able to work with these parameters. However it is up to you to figure out how these parameters are used effectively to give you the correct results when joining the function with other data sources such as transparent tables.
If you're using transparent tables and functions in a Crystal Report, then you need to link these objects in such a way so that a left outer join for example is using the function's output parameters to join to the transparent table equivalent fields. However if the table is the starting point then the joins from the table should join the Input parameters of your function.
you can set these joins in the Database menu | Database Expert | Links of Crystal Reports. -
How to create ENQUEUE function module for s567 table
Hi Experts,
Anyone Plz tell the steps how to create a ENQUEUE function module for the table s567.
Its somewht urgent, plz help me.
<REMOVED BY MODERATOR>
Mohana
Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:21 PMHi,
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
Technicaly:
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
You have to use these function module in your program.
Hope this will give a basic idea.
Regards
Sudheer -
Function module to get table description
Is there any function module to get table description on passing table name
Hi,
We need to use : 'G_RW_TABLE_DESCRIPTION_GET' function module.
we pass the table name and the language.
call function 'G_RW_TABLE_DESCRIPTION_GET'
exporting
rw_table = p_table
langu = sy-langu
importing
tab_text = l_tabtext
exceptions
others = 1.
thanx. -
Function Module to convert date to week from Sunday to Saturday
Hi,
In BW the convertion date to week always give week from Monday(1) to Sunday(7)
I'm looking for a function module to convert date to week from Sunday(1) to Saturday(7)
Thanks
SebastienHi,
I think this SAP standardized. Maybe you need to create custom FM.
You can copy SAP FM DATE_GET_WEEK. in the FORM FIRSTWEEK, I see below case,
CASE start_weekday.
WHEN if_calendar_definition=>c_monday.
start_weekday_number = 1.
WHEN if_calendar_definition=>c_tuesday.
start_weekday_number = 2.
WHEN if_calendar_definition=>c_wednesday.
start_weekday_number = 3.
WHEN if_calendar_definition=>c_thursday.
start_weekday_number = 4.
WHEN if_calendar_definition=>c_friday.
start_weekday_number = 5.
WHEN if_calendar_definition=>c_saturday.
start_weekday_number = 6.
WHEN if_calendar_definition=>c_sunday.
start_weekday_number = 7.
ENDCASE.
Maybe you can play something here. -
How to make this function module as RFC to get data from different system?
Hi
I am trying to use following function module . This function module is used to copy data from one cube to another cube within same system however I need a this should happen across two different system. How can I use this function module to make it remote call to different system and do the same function what it is doing ?
Name of function module -
RSDRT_INFOCUBE_DATA_COPY
Any help would be really helpful
AGHI,
let us say you want to copy the data of a cube in system A to a cube in system B .
1) create a RFC function module in system B (in this function module call the function module RSDRI_CUBE_WRITE_PACKAGE to update the data), this RFC function module should have same parametersa as RSDRI_CUBE_WRITE_PACKAGE .
2) write a program in system A .. read the data from the infocube using the function module RSDRI_INFOPROV_READ and call the RFC function module in system B that you have created..
for the details of the parameters to pass to these two function modules use the RSDRT_INFOCUBE_DATA_COPY and get the required code
Thanks
mahesh -
I need a Functional module to get the header material from the component .
Dear Guru's
Please help me .
I need a name of the Functional module to get the header material from the component .
As in if I put the Component in the Input I should get ALL the Main header materials using this Component.
Regards,
Roshan Lilaram Wadhwani.This was not answered
-
Attach function module to a table field
Hi guys,
I need to add a function module to a table field as a F4 help.
The function module i like to attach is K_GROUP_SELECT.
Like it works in the transaction KS13
Function module--> K_GROUP_SELECT
Please reply urgent will be rewarded with full points.Use the TCode SE11 & create a <b>search help</b> for the Table field in question.
~Suresh -
How to find the function module for standard tables.
Hi
Could any one please tell me how to find the standard function module to update the standard tables
Thanks & Regards
SowmyaHi sowmya,
To find the function modules for standard tables you go for a where used list of that particular table and check only function module interfaces checkbox...
and more over you can go for DB_UPDATE_TABLE will be the function module for updating database table..
Hope this information would help you
Regards
Narin Nandivada -
Function module to get the details (WTGBTR) from table COEP
Hi all,
I have to select the data from COEP table based on OBJNR, KSTAR and KOKRS.I want WTGBTR from COEP Table.
Right now Iam using select query.But i want to use function module.
Can any one please tell me is there any function module to get WTGBTR from COEP table.
Thanks.This'll work:
SELECT objnr bukrs wtgbtr
INTO CORRESPONDING FIELDS OF TABLE gt_coep
FROM coep
WHERE lednr = '00' "<========
and kokrs = '1000'
AND kstar IN ('0000810001' , '0000830001')
AND objnr IN s_objnr
AND bukrs IN s_bukrs.
Rob -
Function module to fetch SOBID field value from hrp1001 table
Hi,
Is there any function module, to fetch the value of the SOBID field from hrp1001 table by passing RSIGN,RELAT,OTYPE,SCLAS field values to that function module.
Regards,
Shalini.Hi Sikindar,
I am not able to find these function modules.I am getting message as function module not found.Please let me know is there any other function module.
Thanks,
Shalini. -
Web Service created from Function Module with output tables
Hello,
I created a web service from a custom function module. This Function module has some export parameters and one table.
The table parameter returns a list of data for selection.
When I execute the function module, everything is returned fine.
When I call the web service, the export parameters are returned but the table is empty.
Has anyone encountered that kind of issue?
Thanks!
LaurentPlease check the following few things while testing the WS:
- Test the WS with WS Navigator (accessible from transaction WSADMIN or http://<server host>:<port>/wsnavigator/enterwsdl.html).
- While doing the test, give the exact no. of digit if there is some input parameter (with 0 padding if necessary).
- Make sure the "SKIP" check box against the table parameter is NOT checked.
Regards
Nilay
Maybe you are looking for
-
How to change location in iMessage?
How To change locations in iMessage?
-
Accessing BAPI through Tree UI Element
Hi, I have one Tree Structure where i have to populate one BAPI and display the data on the browser .I have created two tree node elements and finished the binding .The tree is getting diaplayed in the browser. But i am facing difficulty in populat
-
Good day! I have a problem regarding my fb, when I open my fb account, I can't click the HOME, MY PROFILE, MY STATUS, & can't add PHOTOS/VIDEOS and can't LOG OUT my account. It started last night until now. ''from your other thread - https://support.
-
When i download firefox it will not launch what is the problem
after downloading foxfire it will not launch,there is no icon or anything.Whats wrong
-
How do I create HTML mail using Mac OS X Mail 2.0.7?
I know how to create an HTML page. How do I send it as HTML e-mail? OS X Mail receives HTML e-mail. It's kind of hard to believe it can't send it as well. I've tried pasting it in and attaching it - neither works. Any ideas? Thanks, Jim Carruth iBook