Field LTRFLDDIS not a member of DFIES - Import RFC in IR
Hello People,
When I try to import one RFC in IR from a SAP ECC System appears the follow error message: "Field LTRFLDDIS not a member of DFIES".
Could anyone help me about this problem ?
Thanks in advance.
Regis Ferrato
Hi,
did you found a solution for your problem? I'm facing the same one.
Thanks in advance.
Regards
Reza
Similar Messages
-
Field LTRFLDDIS not a member of DFIES
Hi,
I'm trying to get the 'WD accessing ABAP function' tutorial to run which uses bapi_flight_getlist.
During runtime I get the following java exception:
com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field LTRFLDDIS not a member of DFIES
However, checking the SAP backend field LTRFLDDIS is included in structure DFIES.
Any idea what's going wrong here?
Tx and regards,
UlliCSS note 802727
how to see the solution
please provide solution for this
i am strucked up with this problem -
when trying to add User to Group using BAPI_USER_CHANGE in the Import Parameters GROUPSX = X
I'm getting following error :
com.sap.conn.jco.JCoRuntimeException: (127) JCO_ERROR_FIELD_NOT_FOUND : Field GROUPS not a member of INPUT
BAPI_USER_CHANGE function work correctly for other parameters such as ADDRESSX, DEFAULTSX, PASSWORDX, LOGONDATAX, ALIASX
But in case GROUPSX I am getting above error.
Also I could able to add all above attributes including GROUPSX to user using sap logon. so it should be possible from BAPI as well.
Any input will be appreciated.My bad,
I meant GROUPS is not an input parameter but a table parameter.
This is the ABAP definition of the BAPI:
function bapi_user_change.
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(USERNAME) LIKE BAPIBNAME-BAPIBNAME
*" VALUE(LOGONDATA) LIKE BAPILOGOND STRUCTURE BAPILOGOND OPTIONAL
*" VALUE(LOGONDATAX) LIKE BAPILOGONX STRUCTURE BAPILOGONX
*" OPTIONAL
*" VALUE(DEFAULTS) LIKE BAPIDEFAUL STRUCTURE BAPIDEFAUL OPTIONAL
*" VALUE(DEFAULTSX) LIKE BAPIDEFAX STRUCTURE BAPIDEFAX OPTIONAL
*" VALUE(ADDRESS) LIKE BAPIADDR3 STRUCTURE BAPIADDR3 OPTIONAL
*" VALUE(ADDRESSX) LIKE BAPIADDR3X STRUCTURE BAPIADDR3X OPTIONAL
*" VALUE(PARAMETERX) LIKE BAPIPARAMX STRUCTURE BAPIPARAMX
*" OPTIONAL
*" VALUE(COMPANY) LIKE BAPIUSCOMP STRUCTURE BAPIUSCOMP OPTIONAL
*" VALUE(COMPANYX) LIKE BAPIUSCOMX STRUCTURE BAPIUSCOMX OPTIONAL
*" VALUE(SNC) LIKE BAPISNCU STRUCTURE BAPISNCU OPTIONAL
*" VALUE(SNCX) LIKE BAPISNCUX STRUCTURE BAPISNCUX OPTIONAL
*" VALUE(BACK_DISTRIBUTION) LIKE BAPIFLAG STRUCTURE BAPIFLAG
*" DEFAULT SPACE
*" VALUE(PASSWORD) LIKE BAPIPWD STRUCTURE BAPIPWD OPTIONAL
*" VALUE(PASSWORDX) LIKE BAPIPWDX STRUCTURE BAPIPWDX OPTIONAL
*" VALUE(ADDCOMX) LIKE BAPIADCOMX STRUCTURE BAPIADCOMX OPTIONAL
*" VALUE(REF_USER) LIKE BAPIREFUS STRUCTURE BAPIREFUS OPTIONAL
*" VALUE(REF_USERX) LIKE BAPIREFUSX STRUCTURE BAPIREFUSX OPTIONAL
*" VALUE(ALIAS) TYPE BAPIALIAS OPTIONAL
*" VALUE(ALIASX) LIKE BAPIALIASX STRUCTURE BAPIALIASX OPTIONAL
*" VALUE(GROUPSX) LIKE BAPIGROUPX STRUCTURE BAPIGROUPX OPTIONAL
*" VALUE(UCLASS) TYPE BAPIUCLASS OPTIONAL
*" VALUE(UCLASSX) TYPE BAPIUCLASSX OPTIONAL
*" VALUE(EXTIDSX) TYPE BAPIUSEXTIDX OPTIONAL
*" VALUE(PRODUCTIVE_PWD) TYPE BAPIFLAG-BAPIFLAG DEFAULT SPACE
*" TABLES
*" PARAMETER STRUCTURE BAPIPARAM OPTIONAL
*" RETURN STRUCTURE BAPIRET2
*" ADDTEL STRUCTURE BAPIADTEL OPTIONAL
*" ADDFAX STRUCTURE BAPIADFAX OPTIONAL
*" ADDTTX STRUCTURE BAPIADTTX OPTIONAL
*" ADDTLX STRUCTURE BAPIADTLX OPTIONAL
*" ADDSMTP STRUCTURE BAPIADSMTP OPTIONAL
*" ADDRML STRUCTURE BAPIADRML OPTIONAL
*" ADDX400 STRUCTURE BAPIADX400 OPTIONAL
*" ADDRFC STRUCTURE BAPIADRFC OPTIONAL
*" ADDPRT STRUCTURE BAPIADPRT OPTIONAL
*" ADDSSF STRUCTURE BAPIADSSF OPTIONAL
*" ADDURI STRUCTURE BAPIADURI OPTIONAL
*" ADDPAG STRUCTURE BAPIADPAG OPTIONAL
*" ADDCOMREM STRUCTURE BAPICOMREM OPTIONAL
*" GROUPS STRUCTURE BAPIGROUPS OPTIONAL
*" PARAMETER1 STRUCTURE BAPIPARAM1 OPTIONAL
*" UCLASSSYS STRUCTURE BAPIUCLASSSYS OPTIONAL
*" EXTIDHEAD STRUCTURE BAPIUSEXTIDHEAD OPTIONAL
*" EXTIDPART STRUCTURE BAPIUSEXTIDPART OPTIONAL
So the error message is correct, GROUPS is not an INPUT parameter. -
ERM error: Field ROLE not a member of INPUT
Hi Experts,
After upgrade to 11.2 I'm having this error.
It appears at the Define Authorization stage after I chose transactions and clicking continue.
The connectors and JCos are working.
Please assist.
Thx,
Vit V
edit: All XMLs reloaded and system restarted.
2010-04-20 11:59:05,575 [SAPEngine_Application_Thread[impl:3]_39] DEBUG Current Module: |RE| Conversation: |cnvRole| Screen: |scrSearchTransaction|
2010-04-20 11:59:05,575 [SAPEngine_Application_Thread[impl:3]_39] DEBUG Module#RE#Conversation#cnvRole#Screen#scrManageAuthorization#Action#continueTCodeSearch#
2010-04-20 11:59:05,575 [SAPEngine_Application_Thread[impl:3]_39] DEBUG Changing Screen: FROM: scrSearchTransaction TO scrManageAuthorization
2010-04-20 11:59:05,575 [SAPEngine_Application_Thread[impl:3]_39] DEBUG com.virsa.framework.Context : clearScreenRep : : 6 entries cleared from screen repositiory
2010-04-20 11:59:05,575 [SAPEngine_Application_Thread[impl:3]_39] DEBUG Handler found:class com.virsa.re.role.actions.AuthAuthorizationDataAction
2010-04-20 11:59:05,575 [SAPEngine_Application_Thread[impl:3]_39] DEBUG SAPConnectorDAO.java@365:com.virsa.comp.connectors.dao.jdbc.SAPConnectorDAO.findByConnectorName()connectorId: 5; lngId: 1
2010-04-20 11:59:05,590 [SAPEngine_Application_Thread[impl:3]_39] DEBUG SAPConnectorDAO.java@365:com.virsa.comp.connectors.dao.jdbc.SAPConnectorDAO.findByConnectorName()connectorId: 5; lngId: 1
2010-04-20 11:59:05,590 [SAPEngine_Application_Thread[impl:3]_39] DEBUG com.virsa.service.sap.SAPConnectorHelper : getClientFromSLD : : INTO the method SapConnectorDTO :com.virsa.service.sap.dto.SapConnectorDTO@3e0a2020[conClass=,system=COD200,appId=COD200,host=consit-sap,systemNo=00,client=200,userId=codcom,SystemLang=EN,sysId=cod,messageServerGrp=default,messageServerHost=consit-sap,password=xxxxx,type=ECC600,userName=,description=COD200,isSLD=true,isActive=true,isHRSystem=false]
2010-04-20 11:59:05,590 [SAPEngine_Application_Thread[impl:3]_39] ERROR Field ROLE not a member of INPUT
java.lang.Throwable: Field ROLE not a member of INPUT
at com.sap.mw.jco.JCO$MetaData.indexOf(JCO.java:9534)
at com.sap.mw.jco.JCO$Record.setValue(JCO.java:14923)
Edited by: Vit Vesely on Apr 20, 2010 12:10 PMHi guys,
The problem is finally resolved.
1. Implement SNOTE 1441463
2. Implement SNOTE 1443612
3. Register key for object /VIRSA/RE_OBJ_INFO
4. In SE03 >> Administration >> Set System Change Option. Change /VIRSA/ to modifiable
5. In Se11 open data type /VIRSA/RE_OBJ_INFO in change mode with the key from p. 3
6. Edit structure according to Note 1452772. Save and activate.
7. Implement SNOTE 1452772
8. Restart grc~reear (or the server)
...or wait for VIRSANH patch 12
Hopefully it will work for you aswell.
Kind Regards,
Vit -
Field E_TSX_SELECTION_SPACE_0 not a member of OUTPUT
Hi, gurus,
I'm trying to run a query in a web portal. In Analyzer all works correctly. In the rsrt transaction all also works without errors.
But in the portal instead of running query i receive this error message:
Field E_TSX_SELECTION_SPACE_0 not a member of OUTPUT
com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field E_TSX_SELECTION_SPACE_0 not a member of OUTPUT
at com.sap.mw.jco.JCO$MetaData.indexOf(JCO.java:9566)
at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Structure.getTable(Jco640Structure.java:449)
at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.selection.ProviderComponentList.setup(ProviderComponentList.java:132)
at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.selection.ProviderComponentList.getComponents(ProviderComponentList.java:172)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.selection.ComponentList.setup(ComponentList.java:119)
Did anyone faced with that? I tried to find related notes, but failed with that(
Are there any solvings for this problem?
Thank you.Hi,
Please check SAP OSS Note : 1444180 - Error : Field E_TSX_SELECTION_SPACE_0 not a member of OUTPUT (https://service.sap.com/sap/support/notes/1444180) If your BI Java component is NW 701 SP05 or SP06 Please apply the SP07 Patches for BI Java components BI BASE SERVICES and BI WEBAPPLICATIONS this should solve your issue.
Regards,
Ratish P. -
Exception when executing a report: Field I_REPORT_ID not a member of INPUT
Hello,
I created a simple Report with the Report Designer. When I try to execute it in the portal hitting the "Execute"-button i get the following BI Runtime Exception:
Exception in BI runtime
[code]Initial cause
Message:
Field I_REPORT_ID not a member of INPUT
Stack trace:
com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field I_REPORT_ID not a member of INPUT[/code]
I omitted the rest of the stack trace. It was too long to fit into this post (probably there is a restriction on the maximum number of characters in a forum post )
We are on SP 08 at the backend BI-System and the front-end tools are on patch level 8, hotfix 2.
Any ideas what's the reason behind that error?
Thanks to any answers in advance and best regards,
PhilippHi Karol,
thanks for your answer.
I also had this SP synchronization issue regarding other problems with the execution of web templates. See my post <a href="https://forums.sdn.sap.com/thread.jspa?threadID=209587">https://forums.sdn.sap.com/thread.jspa?threadID=209587</a>.
I will once again ask the basis team, if the two SP-levels are identical.
Regards,
Philipp -
Error: Field I_FONT_PATH not a member of INPUT
Hi,
I try display report from BW on Portal.
I use Template Installer - Note 923359 - Collective Note: Configuration Wizard - Template Installer.
When I click Next - I see [error|http://c.wrzuta.pl/wi15549/14ea657400230cc84874c1f3/err?type=i&key=64URjMq6ql&ft=f]:
This look like my [table|http://c.wrzuta.pl/wi9025/d8e6222d000a85044874c1ae/sm30?type=i&key=drzqCqTbe9&ft=f].
Best regards,
BogdanHi,
I am also facing this problem, did you find the solution for this?
thanks
Karthik -
Problem: Field not a member of external service
Hello,
using the NWCE 7.1 SP 5 and the corresponding NWDS I have successfully imported an external RFC "/EDC/GET_IT_MAT_WF" into my composite application. For the imported RFC I have created an application service and mapped it to the RFC. Another application service relies on the mapped application service and is exported as a web service which in turn is used by a Visual Composer model. Everything worked fine.
Now, I have added another parameter "SONDER" to the RFC in the R/3. In my composite application I have deleted the previously imported RFC and the mapped application service and created them from scratch.
However, when invoking the newly added mapped application service I get an exception which reads:
Field SONDER not a member of /EDC/GET_IT_MAT_WF.
Firstly, I have checked the RFC and tested it in the R/3 using the ABAP Workbench.
Secondly, I have checked the newly imported external service and the mapped application service. Both do contain the field "SONDER".
Thirdly, I have undeployed the entire composite application, cleaned it in the NWDS, regenerated, rebuilded, and finally redeployed it.
However, the exception still remains.
What am I doing wrong?
Thanks and best regards
Alexander
PS: The exception trace looks like this:
com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field SONDER not a member of /EDC/IT_MAT_WF
at com.sap.mw.jco.JCO$MetaData.indexOf(JCO.java:9662)
at com.sap.mw.jco.JCO$MetaData.isTable(JCO.java:10606)
at com.sap.caf.rt.connectivity.rfc.RFCExecuteManager.createTypeRefVal4JCORec(RFCExecuteManager.java:457)
at com.sap.caf.rt.connectivity.rfc.RFCExecuteManager.createTypeRefVal4JCORec(RFCExecuteManager.java:441)
at com.sap.caf.rt.connectivity.rfc.RFCExecuteManager.fillElementsOfTable(RFCExecuteManager.java:607)
at com.sap.caf.rt.connectivity.rfc.RFCExecuteManager.createTypeRefVal4JCORec(RFCExecuteManager.java:486)
at com.sap.caf.rt.connectivity.rfc.RFCExecuteManager.createTypeRefVal4JCORec(RFCExecuteManager.java:441)
at com.sap.caf.rt.connectivity.rfc.RFCExecuteManager.convertJCOFunction2Values(RFCExecuteManager.java:367)
at com.sap.caf.rt.connectivity.rfc.RFCExecuteManager.executeRFC(RFCExecuteManager.java:304)
at com.sap.caf.rt.connectivity.ExecutionManager.executeRFC(ExecutionManager.java:52)
at com.sap.caf.rt.connectivity.ExternalOperationExecutor.execute(ExternalOperationExecutor.java:82)
at com.sap.caf.rt.connectivity.ExternalOperationExecutor.execute(ExternalOperationExecutor.java:55)
at com.sap.caf.rt.bol.da.remote.GenericOperationExecutor.execute(GenericOperationExecutor.java:53)
at com.esprit.purchase_requisition.modeled.appsrv.materialservice.MaterialServiceBean.getMaterialListBapi(MaterialServiceBean.java:42)Hi Yasar,
thank you very much. That helped. Should have come to my mind on my own.
Hopefully, SAP fixes those caching issues, as the current situation is not acceptable in a production scenario. You just cannot keep on restarting the whole server each time a composite application changes.
Best regards
Alexander -
Error - "MCDTEXT not a member of MEMGMT_COMPONENT_TABLE"
I have installed NWs SP09.
In Mobile Infraturcture -->Mobile Components Administartion page, When I search for a Mobile component using * or any other mobile component shown in MEMSD table, I get the error below
"Field MCDTEXT not a member of MEMGMT_COMPONENT_TABLE".
Please let me know why does this happen.
Regards
SudhishHi Sudhish,
Seems some problem with deployment process either on middleare or on J2ee-stack.
Download the latest sp-09 NWMADMIN.sca from SMP and deploy it again on the server and retest the issue.
Regards,
Satyendra -
I open Address Book, go into Preferences, select Template and under the Names field (friend, assistant, father, etc) I add a custom field called "Principal".
I also add two more custom fields in the Email area.
Quit Address Book then relaunch. Add a new contact and the new custom fields, Principal, etc. are there. All good so far.
I have a Now Contact file with about 200 contacts in it. I export all fields as a Text file, Tab delimited. No problems there. With Address Book launched, select Import, pick the text file, leave Text Encoding on Automatic and click Open.
The window that shows the fields for Address Book and fields for the text file side by side opens. This is where you match up the correct fields for importing. If I go to one of the fields from the text file that I created a custom field for, click under the Address Book heading on the Do not import, scroll thru the Apple choices of fields, none of the custom fields show up. Only the original Apple ones are there. Why does Apple let you create them in the Template area but not have them available for importing? Does anyone have suggestions on getting around this?While most likely not of interest to you, Spotlight can also tell you where the files it finds are located
Hover the mouse pointer over the name, and press Command-Option and the path to the file will be displayed.
As for opening a terminal session in the directory where a file is located, there is Applescripts that do just that as well as specific features in Lion/Mountain Lion terminal:
<http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder>
<http://hints.macworld.com/article.php?story=20110729034827358>
<http://www.macworld.com/article/1047793/folderinterm.html>
<http://www.macworld.com/article/1161876/open_finder_folder_in_terminal.html>
<http://www.macobserver.com/tmo/article/os_x_lion_open_a_folders_location_in_term inal> -
Setting Acroform field properties (not values) by importing FDF?
Am I crazy or is there a way to set "hard-to-set-field-properties-unless-you-use-javascript" by importing an FDF document. Currently, when we are programatically adding fields to an AcroForm (some of our customers still require AcroForms) we can't set certain field properties because the API doesn't expose those properties for some reason. I think I remember reading that you can import an FDF file to set field properties (not field values). Is this true?
ThanksThis is a list of some of the properties that a fellow developer gave me that had to be set by executing javascript within Acrobat:
fillColor
borderStyle
strokeColor
lineWidth
doNotScroll
We aren't setting these properties during the end-user experience. We just need to do it programmatically during the design phase.
I was wondering if we could import an FDF to set these properties. Heck, even better it would be great if we could import an FDF to create and position fields and set all of there properties. Is any of this possible? -
Date and time fields are not getting updated in database
Hi,
I am Using the bapi SD_SHIPMENT_HEADER_CHANGE in my program ...
I am using bapi_shipemnt_create for creating shipment document but, trying to enter the date fileds using this bapi .
can anybody please tell me how shud i pass this variables exactly ...
i tried giving test data and checked this bapi .. the result in changing parameters is also appearing but in databade itself the date fields are not getting reflected ...
The fields ate DTDIS ,UZDIS, DATEN,UATEN. ( i am trying to map these fields in changing parameters)
gw_vttkvb_new-mandt = sy-mandt.
gw_vttkvb_new-tknum = gw_return-message_v1(passing shipment number )
gw_vttkvb_new-dtdis = gi_ship_doc-dtdis.
gw_vttkvb_new-daten = gi_ship_doc-daten.
gw_vttkvb_new-uzdis = gi_ship_doc-uzdis.
gw_vttkvb_new-uaten = gi_ship_doc-uaten.
APPEND gw_vttkvb_new TO gi_vttkvb_new.
CALL FUNCTION 'SD_SHIPMENT_HEADER_CHANGE'
EXPORTING
i_tvtk = '
I_DESTINATION =
I_DEPARTURE =
OPT_DIALOG = 'X'
IMPORTING
E_SERV_AGENT_FROM_DELIVERY =
E_ROUTE_FROM_DELIVERY =
E_LEG_DETERMINATION_DONE =
E_NUMBER_OF_CHANGED_LEGS =
TABLES
c_xvttk = gi_xvttk
c_yvttk = gi_yvttk
c_xvttp = gi_xvttp
c_yvttp = gi_yvttp
c_xvtts = gi_xvtts
c_yvtts = gi_yvtts
c_xvtsp = gi_xvtsp
c_yvtsp = gi_yvtsp
c_xvbpa = gi_xvbpa
c_yvbpa = gi_yvbpa
c_xvbadr = gi_xvbadr
c_yvbadr = gi_yvbadr
i_xtrlk = gi_vtrlk
i_xtrlp = gi_vtrlp
I_DEPARTURE_SEQUENCE =
I_XVTFA =
I_YVTFA =
CHANGING
c_xvttk_new = gi_vttkvb_new
EXCEPTIONS
invalid_change = 1
route_insert_failed = 2
tdlnr_insert_failed = 3
status_planned_failed = 4
status_registrated_failed = 5
status_loading_start_failed = 6
status_loading_end_failed = 7
status_completion_failed = 8
status_shipment_start_failed = 9
status_shipment_end_failed = 10
OTHERS = 11.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
**** Save shipment created
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
return = gw_return.
ENDIF.
Regards,
shilpa talluri .Hi,
Try this
DATA: wa TYPE zvariant.
wa-mandt = sy-mandt.
wa-z_var = 'test'.
wa-projid = 'test'.
wa-relid = 'test'.
wa-srtf2 = 'test'.
wa-clustr = 'test'.
wa-clustd = ''test'.
INSERT zvariant CLIENT SPECIFIED FROM wa.
Raul Natu -
Field Catalog Not Found in ALV
Hi Experts,
I am trying to exceute the below code its shows the Field CataLog Not Found
Code is:
TYPE-POOLS:slis.
TABLES:ekpo,mseg.
TYPES: BEGIN OF ty_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
END OF ty_ekpo.
TYPES: BEGIN OF ty_mseg,
ebeln TYPE mseg-ebeln,
ebelp TYPE mseg-ebelp,
matnr TYPE mseg-matnr,
menge TYPE mseg-menge,
bwart TYPE mseg-bwart,
END OF ty_mseg.
TYPES: BEGIN OF ty_final,
ebeln TYPE ebeln,
ebelp TYPE ebelp,
qtysup TYPE MENGE_D,
qtyact TYPE MENGE_D,
qtyrej TYPE MENGE_D,
END OF ty_final.
DATA: it_mseg TYPE TABLE OF ty_mseg WITH HEADER LINE,
it_ekpo TYPE TABLE OF ty_ekpo WITH HEADER LINE,
it_final TYPE TABLE OF ty_final WITH HEADER LINE.
DATA: wa_fieldcat TYPE slis_fieldcat_alv,
it_fieldcat TYPE slis_t_fieldcat_alv.
DATA:wa_mseg LIKE LINE OF it_mseg,
wa_ekpo LIKE LINE OF it_ekpo ,
wa_final LIKE LINE OF it_final.
SELECT-OPTIONS: p_ebeln FOR ekpo-ebeln.
START-OF-SELECTION.
SELECT ebeln ebelp matnr menge FROM ekpo
INTO TABLE it_ekpo
WHERE ebeln IN p_ebeln.
IF it_ekpo[] IS NOT INITIAL.
SELECT ebeln ebelp matnr menge bwart FROM mseg
INTO TABLE it_mseg
FOR ALL ENTRIES IN it_ekpo[]
WHERE ebeln EQ it_ekpo-ebeln
AND ebelp EQ it_ekpo-ebelp
AND bwart EQ '122'.
ENDIF.
LOOP AT it_mseg .
READ TABLE it_ekpo WITH KEY ebeln = it_mseg-ebeln.
IF sy-subrc EQ 0.
it_final-qtyrej = it_mseg-menge.
it_final-qtysup = it_ekpo-menge.
it_final-ebeln = it_mseg-ebeln.
it_final-ebelp = it_mseg-ebelp.
ENDIF.
IF sy-subrc EQ 0.
it_final-qtyact = ( it_final-qtysup ) - ( it_final-qtyrej ).
ENDIF.
APPEND it_final.
ENDLOOP.
wa_fieldcat-fieldname = 'EBELN'.
wa_fieldcat-tabname = 'IT_FINAL'.
wa_fieldcat-seltext_l = 'Purchase Doc'.
wa_fieldcat-seltext_m = wa_fieldcat-seltext_l.
wa_fieldcat-seltext_s = wa_fieldcat-seltext_l.
wa_fieldcat-col_pos = 1.
wa_fieldcat-outputlen = 10.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'EBELP'.
wa_fieldcat-tabname = 'IT_FINAL'.
wa_fieldcat-seltext_l = 'Item'.
wa_fieldcat-seltext_m = wa_fieldcat-seltext_l.
wa_fieldcat-seltext_s = wa_fieldcat-seltext_l.
wa_fieldcat-col_pos = 2.
wa_fieldcat-outputlen = 5.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'QTYSUP'.
wa_fieldcat-tabname = 'IT_FINAL'.
wa_fieldcat-seltext_l = 'QuatitySupply'.
wa_fieldcat-seltext_m = wa_fieldcat-seltext_l.
wa_fieldcat-seltext_s = wa_fieldcat-seltext_l.
wa_fieldcat-col_pos = 3.
wa_fieldcat-outputlen = 13.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'QTYACT'.
wa_fieldcat-tabname = 'IT_FINAL'.
wa_fieldcat-seltext_l = 'QualityAccepted'.
wa_fieldcat-seltext_m = wa_fieldcat-seltext_l.
wa_fieldcat-seltext_s = wa_fieldcat-seltext_l.
wa_fieldcat-col_pos = 4.
wa_fieldcat-outputlen = 13.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'QTYREJ'.
wa_fieldcat-tabname = 'IT_FINAL'.
wa_fieldcat-seltext_l = 'QualityRejected'.
wa_fieldcat-seltext_m = wa_fieldcat-seltext_l.
wa_fieldcat-seltext_s = wa_fieldcat-seltext_l.
wa_fieldcat-col_pos = 5.
wa_fieldcat-outputlen = 13.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
DATA: repid LIKE sy-repid.
repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = repid
TABLES
t_outtab = it_final[]
EXCEPTIONS
PROGRAM_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.
Thanks In Advance
PoornaHi,
pass parametrs as it is given below...
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME =
IS_LAYOUT =
IT_FIELDCAT = it_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IR_SALV_LIST_ADAPTER =
IT_EXCEPT_QINFO =
I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_final[]
EXCEPTIONS
PROGRAM_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.
Thanks & Regards
Ashu -
How to display subtotal in ALV, where the field is not a numeric.
Hi
We are having a requirement to display the sub total for a field using ALV grid display, where the field is not numeric.
The field is characte, Status field(consists of values Submit, Approve ,Reject), where the subtotal should be value of count of group by status .
say status with submit are 10 records, so after all records with submit status are, displyed, we need to display its subtotal as 10.
Thanks & AdvanceHi Satya,
REPORT z_alv_subtotal.*&---------------------------------------------------------------------*
*& Table declaration
*&---------------------------------------------------------------------*TABLES: ekko.*&---------------------------------------------------------------------*
*& Type pool declaration
TYPE-POOLS: slis. " Type pool for ALV*&---------------------------------------------------------------------*
*& Selection screen
SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.*&---------------------------------------------------------------------*
*& Type declaration
*&---------------------------------------------------------------------** Type declaration for internal table to store EKPO data
TYPES: BEGIN OF x_data,
ebeln TYPE char30, " Document no.
ebelp TYPE ebelp, " Item no
matnr TYPE matnr, " Material no
matnr1 TYPE matnr, " Material no
werks TYPE werks_d, " Plant
werks1 TYPE werks_d, " Plant
ntgew TYPE entge, " Net weight
gewe TYPE egewe, " Unit of weight
END OF x_data.*&---------------------------------------------------------------------*
*& Internal table declaration
DATA:* Internal table to store EKPO data
i_ekpo TYPE STANDARD TABLE OF x_data INITIAL SIZE 0,
* Internal table for storing field catalog information
i_fieldcat TYPE slis_t_fieldcat_alv,
* Internal table for Top of Page info. in ALV Display
i_alv_top_of_page TYPE slis_t_listheader,
* Internal table for ALV Display events
i_events TYPE slis_t_event,
* Internal table for storing ALV sort information
i_sort TYPE slis_t_sortinfo_alv,
i_event TYPE slis_t_event.*&---------------------------------------------------------------------*
*& Work area declaration
*&---------------------------------------------------------------------*DATA:
wa_ekko TYPE x_data,
wa_layout TYPE slis_layout_alv,
wa_events TYPE slis_alv_event,
wa_sort TYPE slis_sortinfo_alv.*&---------------------------------------------------------------------*
*& Constant declaration
*&---------------------------------------------------------------------*CONSTANTS:
c_header TYPE char1
VALUE 'H', "Header in ALV
c_item TYPE char1
VALUE 'S'.*&---------------------------------------------------------------------*
*& Start-of-selection event
*&---------------------------------------------------------------------*START-OF-SELECTION.* Select data from ekpo
SELECT ebeln " Doc no
ebelp " Item
matnr " Material
matnr " Material
werks " Plant
werks " Plant
ntgew " Quantity
gewei " Unit
FROM ekpo
INTO TABLE i_ekpo
WHERE ebeln IN s_ebeln
AND ntgew NE '0.00'. IF sy-subrc = 0.
SORT i_ekpo BY ebeln ebelp matnr .
ENDIF.* To build the Page header
PERFORM sub_build_header.* To prepare field catalog
PERFORM sub_field_catalog.* Perform to populate the layout structure
PERFORM sub_populate_layout.* Perform to populate the sort table.
PERFORM sub_populate_sort.* Perform to populate ALV event
PERFORM sub_get_event.END-OF-SELECTION.* Perform to display ALV report
PERFORM sub_alv_report_display.
*& Form sub_build_header
* To build the header
* No Parameter
FORM sub_build_header .* Local data declaration
DATA: l_system TYPE char10 , "System id
l_r_line TYPE slis_listheader, "Hold list header
l_date TYPE char10, "Date
l_time TYPE char10, "Time
l_success_records TYPE i, "No of success records
l_title(300) TYPE c. " Title
* Title Display
l_r_line-typ = c_header. " header
l_title = 'Test report'(001).
l_r_line-info = l_title.
APPEND l_r_line TO i_alv_top_of_page.
CLEAR l_r_line.* Run date Display
CLEAR l_date.
l_r_line-typ = c_item. " Item
WRITE: sy-datum TO l_date MM/DD/YYYY.
l_r_line-key = 'Run Date :'(002).
l_r_line-info = l_date.
APPEND l_r_line TO i_alv_top_of_page.
CLEAR: l_r_line,
l_date.ENDFORM. " sub_build_header
*& Form sub_field_catalog
* Build Field Catalog
* No Parameter
FORM sub_field_catalog .* Build Field Catalog
PERFORM sub_fill_alv_field_catalog USING: '01' '01' 'EBELN' 'I_EKPO' 'L'
'Doc No'(003) ' ' ' ' ' ' ' ', '01' '02' 'EBELP' 'I_EKPO' 'L'
'Item No'(004) 'X' 'X' ' ' ' ', '01' '03' 'MATNR' 'I_EKPO' 'L'
'Material No'(005) 'X' 'X' ' ' ' ', '01' '03' 'MATNR1' 'I_EKPO' 'L'
'Material No'(005) ' ' ' ' ' ' ' ',
'01' '04' 'WERKS' 'I_EKPO' 'L'
'Plant'(006) 'X' 'X' ' ' ' ', '01' '04' 'WERKS1' 'I_EKPO' 'L'
'Plant'(006) ' ' ' ' ' ' ' ', '01' '05' 'NTGEW' 'I_EKPO' 'R'
'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.ENDFORM. " sub_field_catalog*&---------------------------------------------------------------------*
*& Form sub_fill_alv_field_catalog
*& For building Field Catalog
*& p_rowpos Row position
*& p_colpos Col position
*& p_fldnam Fldname
*& p_tabnam Tabname
*& p_justif Justification
*& p_seltext Seltext
*& p_out no out
*& p_tech Technical field
*& p_qfield Quantity field
*& p_qtab Quantity table
FORM sub_fill_alv_field_catalog USING p_rowpos TYPE sycurow
p_colpos TYPE sycucol
p_fldnam TYPE fieldname
p_tabnam TYPE tabname
p_justif TYPE char1
p_seltext TYPE dd03p-scrtext_l
p_out TYPE char1
p_tech TYPE char1
p_qfield TYPE slis_fieldname
p_qtab TYPE slis_tabname.* Local declaration for field catalog
DATA: wa_lfl_fcat TYPE slis_fieldcat_alv. wa_lfl_fcat-row_pos = p_rowpos. "Row
wa_lfl_fcat-col_pos = p_colpos. "Column
wa_lfl_fcat-fieldname = p_fldnam. "Field Name
wa_lfl_fcat-tabname = p_tabnam. "Internal Table Name
wa_lfl_fcat-just = p_justif. "Screen Justified
wa_lfl_fcat-seltext_l = p_seltext. "Field Text
wa_lfl_fcat-no_out = p_out. "No output
wa_lfl_fcat-tech = p_tech. "Technical field
wa_lfl_fcat-qfieldname = p_qfield. "Quantity unit
wa_lfl_fcat-qtabname = p_qtab . "Quantity table IF p_fldnam = 'NTGEW'.
wa_lfl_fcat-do_sum = 'X'.
ENDIF.
APPEND wa_lfl_fcat TO i_fieldcat.
CLEAR wa_lfl_fcat.
ENDFORM. " sub_fill_alv_field_catalog*&---------------------------------------------------------------------*
*& Form sub_populate_layout
* Populate ALV layout
* No Parameter
FORM sub_populate_layout . CLEAR wa_layout.
wa_layout-colwidth_optimize = 'X'." Optimization of Col widthENDFORM. " sub_populate_layout*&---------------------------------------------------------------------*
*& Form sub_populate_sort
* Populate ALV sort table
* No Parameter
FORM sub_populate_sort .* Sort on material
wa_sort-spos = '01' .
wa_sort-fieldname = 'MATNR'.
wa_sort-tabname = 'I_EKPO'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO i_sort .
CLEAR wa_sort.* Sort on plant
wa_sort-spos = '02'.
wa_sort-fieldname = 'WERKS'.
wa_sort-tabname = 'I_EKPO'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO i_sort .
CLEAR wa_sort.
ENDFORM. " sub_populate_sort*&---------------------------------------------------------------------*
*& Form sub_get_event
* Get ALV grid event and pass the form name to subtotal_text
* event
* No Parameter
FORM sub_get_event .
CONSTANTS : c_formname_subtotal_text TYPE slis_formname VALUE
'SUBTOTAL_TEXT'. DATA: l_s_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 4
IMPORTING
et_events = i_event
EXCEPTIONS
list_type_wrong = 0
OTHERS = 0.* Subtotal
READ TABLE i_event INTO l_s_event
WITH KEY name = slis_ev_subtotal_text.
IF sy-subrc = 0.
MOVE c_formname_subtotal_text TO l_s_event-form.
MODIFY i_event FROM l_s_event INDEX sy-tabix.
ENDIF.ENDFORM. " sub_get_event*&---------------------------------------------------------------------*
*& Form sub_alv_report_display
* For ALV Report Display
* No Parameter
FORM sub_alv_report_display .
DATA: l_repid TYPE syrepid .
l_repid = sy-repid .* This function module for displaying the ALV report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_top_of_page = 'SUB_ALV_TOP_OF_PAGE'
is_layout = wa_layout
it_fieldcat = i_fieldcat
it_sort = i_sort
it_events = i_event
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = i_ekpo
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE i000 WITH 'Error in ALV report display'(055).
ENDIF.ENDFORM. " sub_alv_report_display*&---------------------------------------------------------------------*
* FORM sub_alv_top_of_page
* Call ALV top of page
* No parameter
*---------------------------------------------------------------------*FORM sub_alv_top_of_page. "#EC CALLED* To write header for the ALV
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_alv_top_of_page.
ENDFORM. "alv_top_of_page*&---------------------------------------------------------------------*
*& Form subtotal_text
* Build subtotal text
* P_total Total
* p_subtot_text Subtotal text info
FORM subtotal_text CHANGING
p_total TYPE any
p_subtot_text TYPE slis_subtot_text.
* Material level sub total
IF p_subtot_text-criteria = 'MATNR'.
p_subtot_text-display_text_for_subtotal
= 'Material level total'(009).
ENDIF.* Plant level sub total
IF p_subtot_text-criteria = 'WERKS'.
p_subtot_text-display_text_for_subtotal = 'Plant level total'(010).
ENDIF.
ENDFORM. "subtotal_text
Regards,
Pravin -
I'm trying to set up a script task in SSIS (my first attempt at doing so, so bear with me). Part of this is code I have pulled from other examples I found on the internet.
Dts.TaskResult = Dts.Results.Success
on the above line, I'm getting error
'Results' is not a member of 'Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptObjectModel'
Can you tell me what's wrong?
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
<System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
<System.CLSCompliantAttribute(False)> _
Partial Public Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
Enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End Enum
Public Sub Main()
Dim mgr As ConnectionManager
mgr = Dts.Connections("FTP_Connect")
Dim conn As FtpClientConnection
conn = New FtpClientConnection(mgr.AcquireConnection(DBNull.Value))
Dim fileNames(0) As String
fileNames(0) = "LEVEL01.TESTFILE" 'user can avoid using / in file name here
Try
conn.Connect()
conn.ReceiveFiles(fileNames, "c:\holddata", True, True)
Catch ex As Exception
Finally
conn.Close()
End Try
Dts.TaskResult = Dts.Results.Success
End Sub
End ClassI think error is here - Dts.TaskResult = Dts.Results.Success, it can't find the enumerator
name "Results". The enumerator name that you gave (or by default) "ScriptResults"
Enum
ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End Enum
So, try with this statement
Dts.TaskResult = Dts.ScriptResults.Success
//this is last 3rd line from bottom
Narsimha
Maybe you are looking for
-
i have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?
-
Delivery created through ME2O without PO number
As you are aware , you will not see PO number in Delivery if it is created through ME2O transaction. Could any one tell me how to get PO number in Delivery which is created by ME2O by some enhancemets/user exits etc.
-
Forwarding Rates are not accurate
Hi, Yesterday I activated forwarding calls, and I have two questions : Rates to United Stats is 2.3¢/min and when I received calls they charged me $0.8 per min !!!!!!!!!!!! https://dl.dropboxusercontent.com/u/13684246/Skype2.jpg The second question
-
Is Oracle Streams included in Oracle Database 10g Express Edition?
Hi, A short one - is Oracle Streams included in Oracle Database 10g Express Edition? Thanks, Dag
-
Display only in Items assignement block
Hi experts. I have a requirement where one of the columns of the "items" assignment block should be made display only. I used the transaction bsp_wd_cmpwb to configure - but as this is a table view I don't have the option for display only (generally