Getting error of CALL FUNCTION in coding
hi all,
i have wrtie a code for calling SMART FORM.In the coding START OF SELECTION,i got error at f_display_report
This the code:
FORM f_display_report .
DATA: fname(30) TYPE c.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZCCL_RATE_COMPARISION2'
IMPORTING
fm_name = fname
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
CALL FUNCTION fname
EXPORTING
gi_main = gs_main
TABLES
it_detail = gi_detail.
ENDIF.
ENDFORM.
where GS_MIAN and GI_DETAIL are:
gs_main LIKE ekko,
gi_detail LIKE STANDARD TABLE OF ekpo WITH HEADER LINE.
after execuring it gives me error of Incorrect parameter with CALL FUNCTION.
Thanks & Regards,
sappk25
Please also place the type refered in smart forms.
Your dump analysis will clearly say which parameter was mistyped.
My assumption is
CALL FUNCTION fname
EXPORTING
gi_main = gs_main
TABLES
it_detail = gi_detail[] "<--- try adding a square bracket here
Similar Messages
-
Type error while calling function module with in FOX formula
Hi,
I am getting following error while calling function module from FOX Formula:
"Types of parameter DAY_IN () and variable J_CALDAY(D) are inconsistent"
Following is the code:
DATA I_CALDAY TYPE 0CALDAY.
DATA N_CALDAY TYPE 0CALDAY.
DATA KYF TYPE KEYFIGURE_NAME.
FOREACH I_CALDAY, KYF.
CALL FUNCTION SLS_MISC_GET_LAST_DAY_OF_MONTH
EXPORTING
DAY_IN = I_CALDAY
IMPORTING
LAST_DAY_OF_MONTH = N_CALDAY.
{KYF, N_CALDAY} = {KYF, L_CALDAY}.
ENDFOR.
Import parameter DAY_IN is of type sy-datum (that inturn is data element SYDATUM of data type DATS - same as 0CALDAY). Not sure why error is being thrown. Any idea? Thanks.
Edited by: SAP_BOY on Dec 4, 2009 5:26 PMHi,
I think It will not identify ,though you have (data element SYDATUM of data type DATS - same as 0CALDAY).Check it out by assigning it through a variable of type D.
Data I_CALDAY TYPE D.
Hope it may work out.
Regards,
Indu -
Getting error while calling two BAPIs
Dear ABAPers,
I'm stuck into a problem.
I have a situation where I'm using BAPI, WS_DELIVERY_UPDATE to update a delivery.
Then after this I have post a GR so for that I'm using BAPI_GOODSMVT_CREATE.
Now my problem is when I'm calling BAPI_GOODSMVT_CREATE it gives me an error
"CODE is not supported by BAPI2017_GOODSMVT_CREATE". I check my code thoroughly, but didn't find anything in that
which was wrong.
Again, if I try to do the same, in debugging mode, its processes me in the way it should, without any error.
Also, If I use a hard coded DELAY of 2 mins, in my program after WS_DELIVERY_UPDATE, it again processes perfectly.
Now I've put COMMIT AND WAIT and FM DEQUEUE_ALL after WS_DELIVERY_UPDATE, but still not working, and this I'm getting
error from BAPI_GOODSMVT_CREATE - "No Items Transfered".
Please help me sort this issue.
Regards,
VarunHi varunchopra,
the SAP documentation is not 100 % clear here: They say, with COMMIT WORK all high-priority ("VB1") update function modules are executed in the order of their registration and in a shared database LUW. With WAIT addition, the calling program will continue after the update work process has executed the VB1 function modules.
Probably BAPI_WS_DELIVERY_UPDATE will also trigger one or more VB2 update functions that will keep the objects locked.
Ten years ago we used this code in a similar situation to wait for the update task for a material being changed:
FORM WAIT_UPDATE.
USING P_MAX_WAIT_SECONDS TYPE I
CHANGING P_SUBRC LIKE SY-SUBRC.
DATA:
L_ENDTIME LIKE SY-UZEIT,
L_TABIX LIKE SY-TABIX,
L_TRIES TYPE I,
L_SUCCESS LIKE SY-SUBRC,
L_ANSW TYPE C,
L_TRY_AGAIN LIKE RMCLS-XFLAG VALUE 'X'.
GET TIME.
L_ENDTIME = SY-UZEIT.
ADD P_MAX_WAIT_SECONDS TO L_ENDTIME.
WHILE L_TRY_AGAIN = 'X'.
LOOP AT ITAB.
PERFORM CHECK_LOCK_EMMARCE
USING ZAUF-WERKS ITAB-MATNR CHANGING P_SUBRC.
GET TIME.
IF P_SUBRC <> 0 OR SY-UZEIT >= L_ENDTIME.
EXIT. "Loop
ENDIF. " sy-subrc = 0.
ENDLOOP. " AT itab.
IF P_SUBRC = 0.
CLEAR: L_TRY_AGAIN.
ELSE.
IF SY-UZEIT >= L_ENDTIME .
PERFORM POPUP_TO_CONFIRM_WAIT
USING P_MAX_WAIT_SECONDS CHANGING L_ENDTIME P_SUBRC.
IF P_SUBRC <> 0.
CLEAR L_TRY_AGAIN.
ELSE.
CLEAR P_SUBRC.
ENDIF. " p_subrc <> 0.
ENDIF. " sy-uzeit >= l_endtime.
ENDIF. " p_subrc = 0.
ENDWHILE. " l_try_again = 'X'.
ENDFORM. " WAIT_UPDATE
The coding of CHECK_LOCK_EMMARCE was derived from SM12 lock overview and used FUNCTION 'ENQUE_READ'. Today I would just try to lock the object with ENQUEUE function - if you get foreign lock error, the updatze task lock is not yet released.
Monitor SM12 during test run to identify which lock object must be checked.
The you have to decide: If you put a WAIT UP TO 1 SECONDS in the wait loop, you may lose up to 1 second per delivery. If you just LOOP until the locks are released you may put some non-necessary load on the machine.
This way will be faster than any unconditional wait - which may sometimes not be long enough.
Regards,
Clemens -
Getting error while calling a subscreen in module pool program
HI ALL,
ACTUALLY I'M GETTING A SYNTAX ERROR WHILE I'M CALLING A SUBSCREEN
IN A MODULE POOL PROGRAM IN PAI MODULE
THE ERROR IS AS FOLLOW
"." or "ID ... FIELD ..." expected after "SUBSCREEN"
CAN ANYBODY PLS HELP ME.
REGARDS
ANDREWSHI MAX ,
THE CODE IS AS FOLLOWS:
*& Report ZTABSTRIP_PS
REPORT ZTABSTRIP_PS.
type-pools : vrm.
DATA:number1 type I,
number2 type I,
result type I,
ok_code like SY-UCOMM,
employee1 type c,
ABAP(19) type c,
SALES(19) type c,
HR(19) type c,
MM(19) type c,
employee type c.
emp type c.
CONTROLS tabstrip TYPE TABSTRIP.
CALL SCREEN 100.
call screen 110.
call screen 130.
call screen 120.
call screen 140.
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'STATUS'.
SET TITLEBAR 'TITLE'.
CASE OK_CODE.
WHEN 'BACK' or 'EXIT' or 'DELETE'.
leave program.
WHEN 'SAVE'.
MESSAGE 'please choose a valid function' TYPE 'I'.
WHEN 'BACK'.
leave PROGRAM.
when 'EXIT' or 'DELETE'.
leave to screen 0.
WHEN 'SAVE'.
MESSAGE 'please choose a valid function' TYPE 'I'.
endcase.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
when 'TAB1'.
tabstrip-activetab = 'TAB1'.
when 'TAB2'.
tabstrip-activetab = 'TAB2'.
result = number1 + number2.
when 'TAB3'.
tabstrip-activetab = 'TAB3'.
SET TITLEBAR 'TITLE1'.
when 'TAB4'.
tabstrip-activetab = 'TAB4'.
if employee = 'NEERAJ'.
ABAP = 'NEERAJ'.
elseif employee = 'UMESH'.
SALES = 'UMESH'.
ELSEIF employee = 'RAM'.
HR = 'RAM'.
elseif employee = 'ANIL'.
MM = 'ANIL'.
endif.
employee = employee.
WHEN 'BACK'.
leave PROGRAM.
when 'EXIT' or 'DELETE'.
leave to screen 0.
WHEN 'SAVE'.
MESSAGE 'please choose a valid function' TYPE 'I'.
ENDCASE.
WHEN 'BACK' or 'EXIT' or 'DELETE'.
leave program .
WHEN 'SAVE'.
MESSAGE 'please choose a valid function' TYPE 'I'.
endcase.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0110 OUTPUT
text
**MODULE STATUS_0110 OUTPUT.
SET PF-STATUS 'STATUS1'.
SET TITLEBAR 'xxx'.
**case ok_code.
**WHEN 'back' or 'exit' or 'delete'.
leave PROGRAM.
WHEN 'save'.
MESSAGE 'please choose a valid function ' TYPE 'W'.
ENDCASE.
**ENDMODULE. " STATUS_0110 OUTPUT
*& Module USER_COMMAND_0110 INPUT
text
MODULE USER_COMMAND_0110 INPUT.
number1 = number1.
number2 = number2.
CLEAR NUMBER1.
CLEAR NUMBER2.
REFRESH NUMBER1.
REFRESH NUMBER2.
ENDMODULE. " USER_COMMAND_0110 INPUT
*& Module STATUS_0130 OUTPUT
text
MODULE STATUS_0130 OUTPUT.
SET PF-STATUS 'STATUS2'.
SET TITLEBAR 'xxx'.
RESULT = number1 + number2.
*CLEAR RESULT.
REFRESH RESULT.
ENDMODULE. " STATUS_0130 OUTPUT
*& Module STATUS_0120 OUTPUT
text
MODULE STATUS_0120 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
DATA: l_name TYPE vrm_id,
li_list TYPE vrm_values,
l_value LIKE LINE OF li_list.
l_value-key = '1'.
l_value-text = 'ANIL'.
APPEND l_value TO li_list.
CLEAR l_value.
CLEAR li_list.
l_value-key = '2'.
l_value-text = 'RAM'.
APPEND l_value TO li_list.
CLEAR l_value.
CLEAR li_list.
l_value-key = '3'.
l_value-text = 'NEERAJ'.
APPEND l_value TO li_list.
CLEAR l_value.
CLEAR li_list.
l_value-key = '4'.
l_value-text = 'UMESH'.
APPEND l_value TO li_list.
CLEAR l_value.
CLEAR li_list.
l_name = 'employee'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = l_name
VALUES = li_list
EXCEPTIONS
ID_ILLEGAL_NAME = 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.
CLEAR li_list.
ENDMODULE. " STATUS_0120 OUTPUT
*& Module USER_COMMAND_0120 INPUT
text
MODULE USER_COMMAND_0120 INPUT.
INCLUDING sy-repid '140'.
employee1 = employee.
IF employee1 CS 'NEERAJ'.
call SUBSCREEN sub4 .
ABAP = 'NEERAJ'.
CLEAR ABAP.
ELSEIF employee1 CS 'UMESH'.
call SUBSCREEN sub4 .
SALES = 'UMESH'.
CLEAR SALES.
elseif employee1 CS 'RAM'.
call SUBSCREEN sub4 .
HR = 'RAM'.
CLEAR HR.
ELSEIF employee1 CS 'ANIL'.
call SUBSCREEN sub4 .
MM = 'ANIL'.
CLEAR MM.
endif.
ENDMODULE. " USER_COMMAND_0120 INPUT
*& Module STATUS_0140 OUTPUT
text
MODULE STATUS_0140 OUTPUT.
*CASE OK_CODE.
WHEN employee1 'NEERAJ'.
screen-active = 1.
ABAP = 'NEERAJ'.
WHEN employee1 = 'UMESH'.
screen-active = 1.
SALES = 'UMESH'.
WHEN employee1 = 'RAM'.
screen-active = 1.
HR = 'RAM'.
WHEN employee1 = 'ANIL'.
screen-active = 1.
MM = 'ANIL'.
endif.
*ENDCASE.
ENDMODULE. " STATUS_0140 OUTPUT -
Getting error while calling this BAPI:Field MATNR has been transferred inco
Hi,
I have a rquirement to upload material master data into sap for Plant 1251.(For plant 1251 we need to upload both Basi veiw and Extended View).
I am getting the following error while calling this BAPI.Field MATNR has been transferred inconsistently or is blank
the errror is :Field MATNR has been transferred inconsistently or is blank.
I have written the below logic in the program to upload material master data into SAP.
Please help me out to resolve this issue.
Thanks in advance.
Program logic which i have wriiten in the program is
LOOP AT it_rpt.
CLEAR lwa_return.
v_tabix = sy-tabix.
IF ( it_rpt-werks EQ p_werks AND
it_rpt-matnr IS INITIAL ).
retrieve internal number
PERFORM get_internal_number USING lc_mtart
lc_mbrsh
CHANGING it_rpt-matnr.
ENDIF.
IF NOT it_rpt-matnr IS INITIAL.
PERFORM convert_field_input CHANGING it_rpt-matnr.
ENDIF.
Header data
CLEAR lwa_headdata.
lwa_headdata-material = it_rpt-matnr.
lwa_headdata-ind_sector = lc_mbrsh.
lwa_headdata-matl_type = lc_mtart.
lwa_headdata-basic_view = 'X'.
IF NOT it_rpt-vkorg IS INITIAL.
lwa_headdata-sales_view = 'X'.
ENDIF.
lwa_headdata-purchase_view = 'X'.
lwa_headdata-mrp_view = 'X'.
lwa_headdata-storage_view = 'X'.
lwa_headdata-forecast_view = 'X'.
lwa_headdata-work_sched_view = 'X'.
lwa_headdata-account_view = 'X'.
lwa_headdata-cost_view = 'X'.
*Client data
CLEAR: lwa_clientdata, lwa_clientdatax.
IF it_rpt-werks EQ c_1251.
lwa_clientdata-matl_group = it_rpt-matkl.
lwa_clientdata-old_mat_no = it_rpt-bismt.
lwa_clientdata-base_uom = it_rpt-meins.
lwa_clientdata-manu_mat = it_rpt-mfrpn.
lwa_clientdata-mfr_no = it_rpt-mfrnr.
ENDIF.
lwa_clientdata-division = it_rpt-spart.
lwa_clientdata-unit_of_wt = lc_gewei.
lwa_clientdata-trans_grp = lc_tragr.
IF it_rpt-werks EQ c_1251.
lwa_clientdatax-matl_group = 'X'.
lwa_clientdatax-old_mat_no = 'X'.
lwa_clientdatax-base_uom = 'X'.
lwa_clientdatax-manu_mat = 'X'.
lwa_clientdatax-mfr_no = 'X'.
ENDIF.
lwa_clientdatax-unit_of_wt = 'X'.
lwa_clientdatax-trans_grp = 'X'.
lwa_clientdatax-division = 'X'.
Material Description
IF it_rpt-werks EQ c_1251.
lt_matdesc-langu = sy-langu.
lt_matdesc-matl_desc = it_rpt-maktx.
APPEND lt_matdesc.
ENDIF.
*Plant data
CLEAR lwa_plantdata.
lwa_plantdata-plant = it_rpt-werks.
lwa_plantdata-availcheck = lc_mtvfp.
lwa_plantdata-mrp_type = lc_dismm.
lwa_plantdata-mrp_group = lc_disgr.
lwa_plantdata-auto_p_ord = 'X'.
lwa_plantdata-proc_type = 'F'.
IF it_rpt-werks EQ c_1251.
it_rpt-prctr = lc_prctr. "1252
ELSEIF it_rpt-werks EQ c_1261.
it_rpt-prctr = lc_prctr1. "1262
ENDIF.
lwa_plantdata-profit_ctr = it_rpt-prctr.
lwa_plantdata-period_ind = lc_perkz.
lwa_plantdata-max_stock = it_rpt-stawn.
lwa_plantdata-countryori = it_rpt-herkl.
lwa_plantdata-sloc_exprc = it_rpt-lgfsb.
CLEAR lwa_plantdatax.
lwa_plantdatax-plant = it_rpt-werks.
lwa_plantdatax-availcheck = 'X'.
lwa_plantdatax-mrp_type = 'X'.
lwa_plantdatax-mrp_group = 'X'.
lwa_plantdatax-auto_p_ord = 'X'.
lwa_plantdatax-proc_type = 'X'.
lwa_plantdatax-profit_ctr = 'X'.
lwa_plantdata-period_ind = 'X'.
lwa_plantdatax-max_stock = 'X'.
lwa_plantdatax-countryori = 'X'.
lwa_plantdatax-sloc_exprc = 'X'.
*Valuation data
CLEAR lwa_valuationdata.
lwa_valuationdata-val_area = it_rpt-werks.
lwa_valuationdata-price_ctrl = lc_vprsv.
lwa_valuationdata-price_unit = lc_peinh.
lwa_valuationdata-val_class = it_rpt-bklas.
CLEAR lwa_valuationdatax.
lwa_valuationdatax-val_area = it_rpt-werks.
lwa_valuationdatax-price_ctrl = 'X'.
lwa_valuationdatax-price_unit = 'X'.
lwa_valuationdatax-val_class = 'X'.
*Storage location
CLEAR lwa_storagelocation.
lwa_storagelocation-plant = it_rpt-werks.
lwa_storagelocation-stge_loc = it_rpt-lgort.
CLEAR lwa_storagelocationx.
lwa_storagelocationx-plant = it_rpt-werks.
lwa_storagelocationx-stge_loc = it_rpt-lgort.
*Tax Classifications
IF it_rpt-werks EQ c_1251.
it_rpt-tatyp = lc_tatyp. "u2018MWSTu2019
ELSEIF it_rpt-werks EQ c_1261.
it_rpt-tatyp = lc_tatyp1. "u2018UTXJu2019
ENDIF.
lt_taxclass-tax_type_1 = it_rpt-tatyp.
lt_taxclass-taxclass_1 = lc_taxkm.
lt_taxclass-tax_ind = lc_taxim.
APPEND lt_taxclass.
*Sales data
CLEAR: lwa_salesdata, lwa_salesdatax.
IF it_rpt-werks EQ c_1251.
it_rpt-vkorg = lc_vkorg.
ELSEIF it_rpt-werks EQ c_1261.
it_rpt-vkorg = lc_vkorg1.
ENDIF.
lwa_salesdata-sales_org = it_rpt-vkorg.
lwa_salesdata-distr_chan = lc_vtweg.
lwa_salesdata-cash_disc = lc_sktof.
lwa_salesdata-item_cat = lc_mtpos.
lwa_salesdatax-sales_org = it_rpt-vkorg.
lwa_salesdatax-distr_chan = lc_vtweg.
lwa_salesdatax-cash_disc = 'X'.
lwa_salesdatax-item_cat = 'X'.
*Forecast parameters
CLEAR: lwa_forecast, lwa_forecastx.
lwa_forecast-plant = it_rpt-werks.
lwa_forecast-fore_model = lc_prmod.
lwa_forecast-fore_pds = lc_anzpr.
lwa_forecast-hist_vals = lc_peran.
lwa_forecastx-plant = it_rpt-werks.
lwa_forecastx-fore_model = 'X'.
lwa_forecastx-fore_pds = 'X'.
lwa_forecastx-hist_vals = 'X'.
Purchasing long text
IF it_rpt-werks EQ c_1251.
IF it_rpt-tdline1 <> ' '.
lv_tdobject = 'MATERIAL'.
lv_tdid = 'BEST'.
lv_tdname = it_rpt-matnr.
PERFORM fill_longtext TABLES lt_longtext
USING lv_tdobject
lv_tdname
lv_tdid
sy-langu
it_rpt-tdline1.
ENDIF.
Basic long text
IF it_rpt-tdline2 <> ' '.
lv_tdobject = 'MATERIAL'.
lv_tdid = 'GRUN'.
lv_tdname = it_rpt-matnr.
PERFORM fill_longtext TABLES lt_longtext
USING lv_tdobject
lv_tdname
lv_tdid
sy-langu
it_rpt-tdline2.
ENDIF.
*Units of measure
CLEAR : lt_uom,lt_uomx.
lt_uom-alt_unit = it_rpt-meins.
lt_uom-alt_unit_iso = it_rpt-meins.
lt_uom-unit_of_wt = it_rpt-gewei.
APPEND lt_uom.
lt_uomx-alt_unit = it_rpt-meins.
lt_uomx-alt_unit_iso = it_rpt-meins.
lt_uomx-unit_of_wt = 'X'.
APPEND lt_uomx.
ENDIF.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = lwa_headdata
clientdata = lwa_clientdata
clientdatax = lwa_clientdatax
plantdata = lwa_plantdata
plantdatax = lwa_plantdatax
forecastparameters = lwa_forecast
forecastparametersx = lwa_forecastx
storagelocationdata = lwa_storagelocation
storagelocationdatax = lwa_storagelocationx
valuationdata = lwa_valuationdata
valuationdatax = lwa_valuationdatax
salesdata = lwa_salesdata
salesdatax = lwa_salesdatax
IMPORTING
return = lwa_return
TABLES
materialdescription = lt_matdesc
unitsofmeasure = lt_uom
unitsofmeasurex = lt_uomx
materiallongtext = lt_longtext
taxclassifications = lt_taxclass
returnmessages = it_messages.
Regards,
ReddyCan you check with below code .
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = it_rpt-matnr
IMPORTING
OUTPUT = it_rpt-matnr
EXCEPTIONS
LENGTH_ERROR = 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.
Move it_rpt-matnr to lwa_headdata-material .
Regard's
Smruti -
I want to communicate with MAX1452 in labview on PC serial port. Maxim provides dll file which has functions to communicate with device.It says first two functions should be findcom port and initialization sequence where findcom port returns PC's serial port address while initialization sequence helps device to learn baud rate.Iam not getting exception error in call library node.i have kept dll file in the same location as VI.
Labview verison is 7.1 and os is win xp.
The data types are according to the dll functions defined in functions definitions( attached previously).
I'd put dll in the same directory where the code resides.
Attachments:
Code.vi 23 KB -
Getting error in the function module
Hi everybody.
I have created one function module in se37 and i am calling that function module in the se38 report, when i am executing the report it is throwing me an error.
here in my report i am having the select option fields ex matnr, in the function module importing i have given the parameter matnr over there and when i am running the report it is through an error that
"The function module interface allows you to specify only
fields of a particular type under "MATNR".
The field "S_MATNR" specified here is a different
field type "
IF i am giving the parameter instead of select-options in the report and executing, then the function module is getting triggered and receiving the data what ever the code is available in the source code.
can anyone help me out in this issue so that i can get the data while using the select-option instead of parameter.
Thanks in advanceHi,
Actually, I wouldn't recommend the use of that tables parameter...
From sap help:
Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement.
Exceptions
So i definitely would go with either importing or changing parameter...
Cheers,
m. -
Error in call function statement
hi,
i have defined a function with one of the "tables" parameter as shipto_xxx.
in my calling prorgam , i say
call function "zzzz"
tables
shipto_xxx = yyy.
where yyy is a similar structure to hold the data received by the function module.
when i compile i get the error "The field shipto_xxx is unknown but there is a similar field " *shipto_xxx".
why ?Hi Micky,
Here we go. Main program logic...
DATA: BEGIN OF *uuu OCCURS 0,
xxx LIKE vbap-xxx,
END OF *uuu.
DATA: BEGIN OF *shipto OCCURS 0,
vbeln LIKE likp-vbeln,
adrnr LIKE vbpa-adrnr,
END OF *shipto.
TYPES: BEGIN OF t_xxx,
vbeln LIKE vbrp-vbeln,
vgtyp LIKE vbrp-vgtyp,
END OF t_xxx.
DATA *vvv TYPE SORTED TABLE OF t_xxx
WITH HEADER LINE
WITH NON-UNIQUE KEY vbeln.
CALL FUNCTION 'ZZZZ'
TABLES
UUUU = *uuu.
VVVV = *vvv.
SHIPTO = *shipto.
Here I am trying to call the RFC function which will interface with XI and pull the data from another SAP system and get me the results in the two internal tables, i.e. *vvv and *shipto. The internal table *uuu acts as input data which will be passed to XI and thru that to another sap system.
Now the FM "ZZZZ" has been created based on the relevant structures created in SE 11. and these have been included in the TABLES tab of the function.
so i have created 3 structures zuuu, zshipto and zvvv in SE11 similar to the code above and included the same in the function udner the tables tab. no import / export parameters have been set. and no code in the FM. this FM is dummy and is used just to pass the data and retrieve the data from other sap system.
the basic thing is send an internal table of values and receive multiple internal table of values. hope i am clear...please let me know how to proceed. thks -
Getting error while calling ejb business methods from servlet
Hi
Iam getting error when i try to call a ejb method from servlet.Error is
"com.netscape.server.eb.UncheckedException: unchecked exception nested exception is:java.lang.NullPointerException".
I build the application and deployed it successfully.Iam using IAS 6.O with windows NT 4.0.
This is just a method which takes values from database and return as an array of bean to servlet.
Any help on this.Thanks ShankHi
I was using the session bean.Your suggestion helped me a lot.Perfect.
I debug my program and found that from ejbCreate()exception is getting.
I was getting the datasource object thro ejb create() initialisation.
Somehow the look up jndi which i mentioned was not interpretting from ejb-jar.xml ias-ejb-jar.xml and datasource ref .Due to this iam getting jndi Namenotfound exception which in turns to null pointer as datasource is getting null.
when i hardcoded in the ejb the the jndi name for datasource it is working fine.Bit worried all the existing ejbs working with the xml referenced datasource and jndi,but when i added a new ejb with same properties it is failing to get the jndi name.
Piece of code from ias-ejb-jar.xml
<resource-ref>
<res-ref-name>myDataSource</res-ref-name>
<jndi-name>jdbc/nb/myData</jndi-name>
</resource-ref>
Piece of code from ejb-jar.xml
<resource-ref>
<res-ref-name>myDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Thanks a lot meka -
Getting error while calling Web service in PB 12.5
Hi All,
I am trying to call web service through my PB 12.5 but getting error like "Window sdk for .net framework 4.0 was not installed. please install befor use this feature." though I had installed window sdk . net framework 4.0.
one more thing do we required .wsdl file to call web service or only path is ok?
please help me out here.
Thanks,
PralhadHi Pralhad,
From the Application Techniques manual, Building a Web Services Client, it states the following:
The WSDL file for you specify in the wizard or painter must have:
Services/Binding entries
The Targetnamespace
attribute defined in its Schema element
No circular references (an example of a “circular reference” is a structure
that includes itself as a child class member)
If PowerBuilder encounters a problem parsing the WSDL file, it reports the
error in an error message box.
Thank you.
Beverly Duquette -
Getting error while calling reports through form
Hi I want to call a report from a form i put the following code on when-button-pressed but i am getting the following error.I can generate and run the reports.The object REPORTS is created under forms report object
FRM-41211: Integration error: SSL Failure running another report
DECLARE
repid REPORT_OBJECT;
report_prop VARCHAR2(20);
v_rep VARCHAR2(100);
BEGIN
repid := find_report_object('REPORTS');
set_report_object_property(repid,report_other,'p1=15 p2=19 paramform=yes');
v_rep := RUN_REPORT_OBJECT(repid);
END;
rgds
shyamHi
I can able to run the reports from the browser there was a syntax error, but not able to call from a form
I am getting error but i can run another forms without any problem
FRM-92101: There Was a failure in the FormsServer during startup
oracle.forms.net.connectionexception:forms session aborted:unable to communicate with the runtime process
rgds
rosh -
!! Getting error while using function in where clause
Hi,
I have created a function as below
create function find_cnt(n varchar2)
return number is
cnt number;
begin
execute immediate 'select count(1) from '||n into cnt;
return nvl(cnt,0);
end;
and when running the below select
select find_cnt(object_name),object_name from user_objects where object_type='TABLE' and find_cnt(object_name)=0
I getting
ERROR:
ORA-04044: procedure, function, package, or type is not allowed here
ORA-06512: at "SCOTT.FIND_CNT", line 5
can anyone help????????
thanks
HarishIn 11g you could simply do
SQL> select table_name, trim(column_value) cnt
from user_tables, xmltable(('count(ora:view("'||table_name||'"))'))
TABLE_NAME CNT
DEPT 4
BONUS 0
SALGRADE 5
DEMO_USERS 2
DEMO_CUSTOMERS 7
DEMO_ORDERS 10
DEMO_PRODUCT_INFO 10
DEMO_ORDER_ITEMS 16
DEMO_STATES 51
DEMO_PAGE_HIERARCHY 18
TABLE1 6
TABLE2 6
CREATE$JAVA$LOB$TABLE 0
CLICKS 1
T 0
EMP 14
PLAN_TABLE 2
17 rows selected. -
How to get info from calling Function Module without passing it.
Hi,
I am facing a problem like from calling function module i want values of some variables and i dont want to change the import and export parameters, is there any way to get it done...
Thanks in advance...Hi,
It is possible only if you can find the memory id of the varibale.
You can find out it by debugging
<removed by moderator>
Edited by: Mike Pokraka on Aug 4, 2008 9:37 AM -
Strange error of CALL FUNCTION within Method
Hi all,
i'm facing a very strange problem. Some Function Modules can't be called from within a method and a dump appears with the following message CALL_FUNCTION_CONFLICT_LENG (CX_SY_DYN_CALL_ILLEGAL_TYPE).
Here's an example: I've created a normal class with only one static method.
Class: ZCL_TEST
Method: CHECK_EMPLOYEE
Importing Parameter: IV_PERNR TYPE PERNR_D
Coding:
DATA gt_return TYPE TABLE OF bapireturn1.
CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
EXPORTING
number = iv_pernr
validitybegin = sy-datum
IMPORTING
return = gt_return.
CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
EXPORTING
number = iv_pernr
validitybegin = sy-datum.
If i call this method a dump appears and if the same code of that method is implemented directly in a normal report everything works fine.
Why can't i call this function module from within a method?
Regards
Mark-AndréHi,
the dump even appears by testing the method from Class Builder with F8!
In my test report iv_pernr isn't declared as follows:
REPORT z_test.
PARAMETERS p_pernr TYPE pernr_d.
zcl_test=>check_employee( p_pernr ).
The reason of the dump is parameter RETURN. But i don't understand it why it only doesn't work from within a method.
Dump Message:
In the function module interface, you can specify only
fields of a specific type and length under "RETURN".
Although the currently specified field
"GT_RETURN" is the correct type, its length is incorrect.
Regards
Mark-André -
Getting error while calling wwsec_api.add_portal_user
am creating users in OID programmatically. Sofar it creation of users in OID
is successful. But when i am creating user in portal using the API
wwsec_api.add_portal_user, it giving me an error. I am creating the user in
portal because once it is created there in portal , then, i can assign
priviliges to this newly created user according to my needs : Here is the code
i am using and error i am getting :
-- DN for Entry to be Added under 'ldap_base' [o=acme, dc=com]
user_dn := 'cn=' || P_USER_NAME ||',' || ldap_base ;
DBMS_OUTPUT.PUT_LINE(RPAD('Adding Entry for DN ',25,' ') || ': [' || USER_dn
|| ']');
-- Add new Entry to ldap directory
retval := DBMS_LDAP.add_s(user_session,user_dn,user_array);
-- Free attribute array (emp_array)
DBMS_LDAP.free_mod_array(user_array);
END IF; -- INSERTING
-- Creating the portal user
l_id := portal.wwsec_api.add_portal_user(p_User_Name => P_USER_NAME,
p_db_user => 'PORTAL', p_Display_Personal_Info => 'Y',
p_Last_Name => P_LAST_NAME,
p_First_Name => P_FIRST_NAME, p_Email =>
P_EMAIL_ADDR, p_Manager_User_Name => 'GHTHOMAS',
p_Portal_User => 'Y');
----=== Error getting while running the function ====-------
"Error in:F_CREATE_LDAP_ENTRIES is: User-Defined Exception"
And when i am trying to use exception like
EXCEPTION
WHEN NO_MANAGER_EXCEPTION THEN ....
WHEN ACCESS_DENIED_EXCEPTION THEN...
WHEN UNEXPECTED_EXCEPTION THEN ...
WHEN USER_EXISTS_EXCEPTION THEN ...
It is giving following errors :
"PL/SQL: Item ignored
PLS-00201: identifier 'NO_MANAGER_EXCEPTION' must be declared "Hi Kumar,
The ETHR_APPROVER_TABLE is custom pl sql indexed table that I have created.following are the parameters of api-
procedure getAllApprovers7(
applicationIdIn in number,
transactionTypeIn in varchar2,
transactionIdIn in varchar2,
approvalProcessCompleteYNOut out varchar2,
approversOut out nocopy ame_util.approversTable2);
i need a out variable of type ame_util.approversTable2 so get the values.
I have changed the code and now getting the following error-
java.sql.SQLException: ORA-03115: unsupported network datatype or representation
I have only changed this statement.
stmt.registerOutParameter(5,OracleTypes.PLSQL_INDEX_TABLE);//,"XXXX_APPROVAL_TBL");
Edited by: user5756777 on Jul 13, 2009 4:17 AM
Maybe you are looking for
-
TRIED to order phone TWICE...OU​T $200
86692361730 customer relations {removed per forum guidelines} Today, I went online to purchase a Samsung Galaxy S5 with a new contract to add onto my Sprint account for my daughter to pick up in store. I have never had a more frustrating experience o
-
Null Pointeer Exception in SOA Composer while opening the DVM's
Hi Experts, I am deploying an example process which includes Domain Value Maps., but when i am trying out to change in SOA Composer at runtime it is not at all howing the DVM which i have creatd and deployed on to the weblogic application server. Whe
-
Itunes wont launch, though it says its running
So heres the deal, got a new comp a few weeks ago and installed itunes on it. I'm running windows XP pro (same as on old one) and when I try to run itunes it wont launch. It says its running in my task manager though. I've tried reinstalling it, but
-
Sending PDF attachments in OSB
Hi, I want to return PDF files as attachments using OSB proxy service to client . How can I build this functionality in OSB.I have to use http or soap transports.I am using a "Sync Read" JCA file adapter to read for the specific PDFs that I have to s
-
Solaris 10 SPARC time zone issue
Dear All, I am trying to set the date as per the time zone, I have succeeded doing that on solaris 10 x86 server after i modified the /etc/TIMEZONE file and ran the rtc command as i configured the /etc/TIMEZONE, i couldnt run the rtc command and figu