To transport the values to cg3z tcode
hi
i have a folder on presentation server with some files
(excel files and text files)
now i need to upload all the files at a time by calling the transaction in my program .
thats why i have used like this
PARAMETERS: fr_fil type rlgrap-filename DEFAULT 'C:\My Programs\folder\test.txt' ,
ap_fil type rlgrap-filename default 'E:\usr\sap\DVEBMGS00\data\data2.dat'.
SUBMIT RC1TCG3Z with rcgfiletr-ftfront = fr_fil WITH rcgfiletr-ftappl = ap_fil and RETURN.
But its not taking my values its taking other values
Plesae help me
regards
Tcode CG3Z doesn't have the selection screen. So, SUBMIT will not work.
Instead of that try like this:
PERFORM L_EXEC_FILE_UPLOAD IN PROGRAM SAPLC13Z IF FOUND
USING
FR_FIL " << Pass your Forntend file
AP_FIL " << Server FIle
L_OVERWRITE "< Overwrite MODE
'BIN'
CHANGING
FLG_STAY.
This is the subroutine which is being called inside the CG3Z.
OR
You can use the FM C13Z_FILE_UPLOAD_BINARY.
Regards,
Naimesh Patel
Edited by: Naimesh Patel on Aug 20, 2008 9:20 AM - FM has been added
Similar Messages
-
How to transport a value in the same level rule
I want to transport a value in the same level rule,but failed. Would you please give me some idea to finish it? Thank you!
the sample about rule zz01 as the fllowing:
zz01
4001 deduction for absent from work
SETIN R=3
SETIN A=01 'NUM=3
ADDWTI4Z03 '4Z03=3
4002 sick leave
SETIN R=3
SETIN A=01
ADDWTI4Z09 'set 4Z09=3
I want to transport the value of NUM in wagetype 4001 to the variable in wagetype 4002.
Thank you! -
How to achieve transport of value mapping replication cache table values ?
During the migration of our interface from XI3.0 to PI 7.11,
I need to transport the value mapping replication cache table values present in cache monitoring of runtime workbench in
XI 3.0 PRD to PI 7.11 DEV .
Please let me know the ways to acheive this so that I can have the same values present in PI 7.11 Value Mapping Cache table as maintained in XI 3.0.
Please point me into correct direction.
Regards
PSClick on "Tools" option, select "Export Configuration Objects" -> "Individual Objects" -> Choose the "Value Mapping Group" type, and then select the value mappings you want to transport.
-
Transport of Value Mapping ?
Hi,
I know that if I create a Value Mapping (inside ID) with Agencies equal to a Business System, then I will be able to transport it from DEV to PROD...
But <b>what's happen if AGENCY used in the Value Mapping is NOT a Business System</b> (e.g Agency = My_girlfriend)?
Can be able to transport the Value from DEV to PROD?
or how to do it?
Regards
Mickael
Message was edited by: Mickael HuchetHi,
This thead discussion may help you-(if you did not see)
Export/Import the mapping value used in Value Mapping Function
rgds,
moorthy -
Any function module to read all the values in Tcode-PPQD?
Hi all
Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
and any idea what tables are involved to get these values like parent and child relationship?
Thanks in advance.
Murali.Murali,
you can use the following..
data: w_sobid type sobid, "Qualification ID
w_objid type objid. "Qualification Catalog
select objid into w_objid
up to 1 rows
from HRP1001
where otype = 'QK'
and plvar = '01'
and istat = 1
and risgn = 'B'
and relat = '030'
and endda ge sy-datum
and begda le sy-datum
and sclas = 'Q'
and sobid = w_sobid.
endselect.
if sy-subrc eq 0.
write: / w_objid,w_sobid.
endif.
Regards,
Suresh Datti -
Defaulting transportation zone value while creating the consumer in shop
Dear Experts
i have a requirement where i have to default the transportation zone value as "0000000001".
when ever a new consumer is created in the webshop when it flows to r/3 it must contain trasnportation zone value as "0000000001"(defaulted) could you tell me how can i achieve this i tried to default the value using the transaction varient which doesnt solved my problem
Thanks & Regards
V.SrinivasSrinivas,
Did you check if your reference customer in the webshop has the same transport zone ? Once done, check if the answer in this thread would help you.
Reference Business Partner Data mapping to Consumer Master data
Thanks!
Surya. -
Tcode DB02 all the values showing zero (0)
Hi Oracle-experts!
I have recently executed the upgrade from 4.6C to ECC 6.0.
I have the following errors after that:
<b>Tcode DB02: by entering the Tcode all the values are showing the zero (0).</b>If I try to refresh the values the background job "space statistic:Default" is starting and canceling after while with "SAPOSCOL short dump" (compute bcd overflow).
<b>Also I have a lot of red messages in TCode dbacockpit.
How can I fix them? </b>
Thank you very much
regards
AxelDie Table ORA_MON_DBCON should contain at least the local database.
e.g.
CON NAME DEFAULT
STATUS A
MAX RUNTIME 1.800
MAX UPLOAD 1.000.000
LOG LIFE 100
DESCRIPTION Local Oracle database
Check all points in the SAP Note 1002840 - No data or obsolete data in DB Space Statistic monitor. This note is very important for this problem.
Best regards
K.Baran -
How does the values in tcode F.27is retrieved?
Hello,
I would like to ask how the value in F.27 is retrieved when I have filtered it base on the ff:
Company code
Account
Indicator in master record
Key dates for acct statement (i.e. dec 1, 2009 to Dec 31, 2009)
When I filtered it base on the above, I noticed that there is a discrepancy on the opening balance. Upon my investigation, I saw that the discrepancy was due to the previous open balance which was dated April 2004, that was added to the opening balance
that fall on the date i put as key dates for acct statement. Do you know as to why it has added the previous open balance which is outside the specified scope? If so, can you let me know how to correct it?
Thanks and your advice would be greatly appreciated.
Kindest regards,
LemHi Vishnu,
Please check the settings in user profile.
Regards,
Madhu. -
Unable to capture the value of vbrk-vbeln value from VF02
Hi All,
am printing form from VF02 ,,,once i execute the VF02 , and select Billing Document -> Issue Output to option .., my printi program gets triggered ,......,
but in my print program am unable to capture the value of VBRK-VBELN which i have entered in the VF02 tcode..
any other table the value of VBELN is stored???
pls help me out with the alternatives...
thanks
johnHi Dhiraj
One doubt how the value is populating in the NAST in the Print Program . While debugging i'm getting the Values from NAST but i want to know from where NAST is loading with these data.
Thanks
Bintu -
Hi Friends..
In Tcode FINT (Item Interest Calculation) , i am implementing the BADI FI_INT_CUS01 method INT_ADD_ITEMS . using this method INT_ADD_ITEMS i am adding more items into ct_items from table BSID. In my SQL Query based on the user input in selection screen of FINT (Performance Tab ->Special GL Indicator A_UMSKZ) i want to get the items. But A_UMSKZ is out of scope in Method INT_ADD_ITEMS. How can i get the values of A_UMSKZ.
Thanks in Advance.
N.G. Mahender.Hi Friends,
I got the Answer. in Method INT_ADD_ITEMS contains the importing internal Table it_frange. It contains structure selopt_t. This structure contains the data of the field a_umskz.
i was added the following code to get this.
Data:
lwas_selopt_umskz TYPE fintselopt,
lwa_frange TYPE fint_frange.
CLEAR: lwas_selopt_umskz , lwa_frange.
READ TABLE it_frange INTO lwa_frange WITH KEY fieldname = 'A_UMSKZ'.
READ TABLE lwa_frange-selopt_t INTO lwas_selopt_umskz INDEX 1.
Warm Regards,
N.G. Mahender. -
How to capture the value in AVL intracrivity report
Hi ,
i have one doubt please clarify me.
in ALV interactivity report if user click on the one field, how captured the that field value in one variable. presentably i am using
ws_field_catalog-col_pos = '2'.
ws_field_catalog-fieldname = 'BELNR'.
ws_field_catalog-tabname = 'I_OUTPUT'.
ws_field_catalog-scrtext_l = 'Original Document number.'.
ws_field_catalog-hotspot = 'V'.
ws_field_catalog-scrtext_m = 'Original Doc.no.'.
ws_field_catalog-scrtext_s = 'Original Doc.no.'.
APPEND ws_field_catalog TO lt_fieldcat.
CLEAR: ws_field_catalog.
but it is not capture the valu it is capture the only field name please any one can you suggest me.
Thanks,
Hari.hi,
there is one type pool availabe for the. SLIS_SELFIELD.
make ur own structure and use case sy-ucomm.
when '&IC1'.
write ur code here.
TYPE-POOLS: SLIS.
*type declaration for values from ekko
TYPES: BEGIN OF I_EKKO,
EBELN LIKE EKKO-EBELN,
AEDAT LIKE EKKO-AEDAT,
BUKRS LIKE EKKO-BUKRS,
BSART LIKE EKKO-BSART,
LIFNR LIKE EKKO-LIFNR,
END OF I_EKKO.
DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,
WA_EKKO TYPE I_EKKO.
*type declaration for values from ekpo
TYPES: BEGIN OF I_EKPO,
EBELN LIKE EKPO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
MENGE LIKE EKPO-MENGE,
MEINS LIKE EKPO-MEINS,
NETPR LIKE EKPO-NETPR,
END OF I_EKPO.
DATA: IT_EKPO TYPE STANDARD TABLE OF I_EKPO INITIAL SIZE 0,
WA_EKPO TYPE I_EKPO .
*variable for Report ID
DATA: V_REPID LIKE SY-REPID .
*declaration for fieldcatalog
DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
DATA: IT_LISTHEADER TYPE SLIS_T_LISTHEADER.
declaration for events table where user comand or set PF status will
be defined
DATA: V_EVENTS TYPE SLIS_T_EVENT,
WA_EVENT TYPE SLIS_ALV_EVENT.
declartion for layout
DATA: ALV_LAYOUT TYPE SLIS_LAYOUT_ALV.
declaration for variant(type of display we want)
DATA: I_VARIANT TYPE DISVARIANT,
I_VARIANT1 TYPE DISVARIANT,
I_SAVE(1) TYPE C.
*PARAMETERS : p_var TYPE disvariant-variant.
*Title displayed when the alv list is displayed
DATA: I_TITLE_EKKO TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED'.
DATA: I_TITLE_EKPO TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED'.
INITIALIZATION.
V_REPID = SY-REPID.
PERFORM BUILD_FIELDCATLOG.
PERFORM EVENT_CALL.
PERFORM POPULATE_EVENT.
START-OF-SELECTION.
PERFORM DATA_RETRIEVAL.
PERFORM BUILD_LISTHEADER USING IT_LISTHEADER.
PERFORM DISPLAY_ALV_REPORT.
*& Form BUILD_FIELDCATLOG
Fieldcatalog has all the field details from ekko
FORM BUILD_FIELDCATLOG.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'EBELN'.
WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'AEDAT'.
WA_FIELDCAT-SELTEXT_M = 'DATE.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'BUKRS'.
WA_FIELDCAT-SELTEXT_M = 'COMPANY CODE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'BUKRS'.
WA_FIELDCAT-SELTEXT_M = 'DOCMENT TYPE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'LIFNR'.
WA_FIELDCAT-NO_OUT = 'X'.
WA_FIELDCAT-SELTEXT_M = 'VENDOR CODE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. "BUILD_FIELDCATLOG
*& Form EVENT_CALL
we get all events - TOP OF PAGE or USER COMMAND in table v_events
FORM EVENT_CALL.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 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. "EVENT_CALL
*& Form POPULATE_EVENT
Events populated for TOP OF PAGE & USER COMAND
FORM POPULATE_EVENT.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-FORM.
ENDIF.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
ENDIF.
ENDFORM. "POPULATE_EVENT
*& Form data_retrieval
retreiving values from the database table ekko
FORM DATA_RETRIEVAL.
SELECT EBELN AEDAT BUKRS BSART LIFNR FROM EKKO INTO TABLE IT_EKKO.
ENDFORM. "data_retrieval
*& Form bUild_listheader
text
-->I_LISTHEADEtext
FORM BUILD_LISTHEADER USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA HLINE TYPE SLIS_LISTHEADER.
HLINE-INFO = 'this is my first alv pgm'.
HLINE-TYP = 'H'.
ENDFORM. "build_listheader
*& Form display_alv_report
text
FORM DISPLAY_ALV_REPORT.
V_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = I_TITLE_EKKO
I_GRID_SETTINGS =
IS_LAYOUT = ALV_LAYOUT
IT_FIELDCAT = I_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
i_default = 'ZLAY1'
I_SAVE = 'A'
is_variant = i_variant
IT_EVENTS = V_EVENTS
TABLES
T_OUTTAB = IT_EKKO
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.
ENDFORM. "display_alv_report
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
i_logo =
I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.
PERFORM BUILD_FIELDCATLOG_EKPO.
PERFORM EVENT_CALL_EKPO.
PERFORM POPULATE_EVENT_EKPO.
PERFORM DATA_RETRIEVAL_EKPO.
PERFORM BUILD_LISTHEADER_EKPO USING IT_LISTHEADER.
PERFORM DISPLAY_ALV_EKPO.
ENDCASE.
ENDFORM. "user_command
*& Form BUILD_FIELDCATLOG_EKPO
text
FORM BUILD_FIELDCATLOG_EKPO.
WA_FIELDCAT-TABNAME = 'IT_EKPO'.
WA_FIELDCAT-FIELDNAME = 'EBELN'.
WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKPO'.
WA_FIELDCAT-FIELDNAME = 'EBELP'.
WA_FIELDCAT-SELTEXT_M = 'LINE NO'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-SELTEXT_M = 'MATERIAL NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MENGE'.
WA_FIELDCAT-SELTEXT_M = 'QUANTITY'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MEINS'.
WA_FIELDCAT-SELTEXT_M = 'UOM'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'NETPR'.
WA_FIELDCAT-SELTEXT_M = 'PRICE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. "BUILD_FIELDCATLOG_EKPO
*& Form event_call_ekpo
we get all events - TOP OF PAGE or USER COMMAND in table v_events
FORM EVENT_CALL_EKPO.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 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. "event_call_ekpo
*& Form POPULATE_EVENT
Events populated for TOP OF PAGE & USER COMAND
FORM POPULATE_EVENT_EKPO.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-FORM.
ENDIF.
ENDFORM. "POPULATE_EVENT
*& Form TOP_OF_PAGE
text
FORM F_TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
i_logo =
I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
*retreiving values from the database table ekko
FORM DATA_RETRIEVAL_EKPO.
SELECT EBELN EBELP MATNR MENGE MEINS NETPR FROM EKPO INTO TABLE IT_EKPO.
ENDFORM.
FORM BUILD_LISTHEADER_EKPO USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA: HLINE1 TYPE SLIS_LISTHEADER.
HLINE1-TYP = 'H'.
HLINE1-INFO = 'CHECKING PGM'.
ENDFORM.
FORM DISPLAY_ALV_EKPO.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = I_TITLE_EKPO
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = I_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT =
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = V_EVENTS
TABLES
T_OUTTAB = IT_EKPO
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.
ENDFORM.
REWARD ME IF HELPFUL. PLEASE -
How to transport the BW query's variable to BO webi report
Hi all
I'd like to know how to transport the BW query's variable to BO 's webi . today ,I created a sap customer varible in my bw system to get the max calmonth in the active table.The varible in the BW side run's well ,but I use this query to build a new univers ,and created a new webi report base on this univers ,but the question is the webi report can't get the varible's value I wann to know how to transport the bw varible value to BO webi report
Thanks and regards,
Peter .zhuI have changed my variaable in my bw query ,I found if you use SAP default variable it is ok in BO side . So I get a guidline by SAP default variable ,I changed my customer variable in variables edite ,don't use 'ready for input' .And then the variable can be useful in BO side .
Edited by: peter zhu on Jun 16, 2008 11:43 AM -
Call transaction in new session with the value at hotspot
Hi all,
As a hotspot functionality I would like to open a new transaction in a new session with the value at hotspot. For that reason, I am using the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
This FM is not working because Parameter ID is not Maintained for the field (Hotspoted). So no value is passing to new transaction.
Please suggest any other way to implement this.
ThanksHi Anil..
This is the Solution for ur Requirement. try this program and change as per ur need.
REPORT ZSEL_CALL_TCODE.
data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
LOOP AT IT_KNA1 .
WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
HIDE IT_KNA1-KUNNR .
ENDLOOP.
CLEAR IT_KNA1-KUNNR.
AT LINE-SELECTION.
CASE SY-LSIND.
WHEN 1.
IF IT_KNA1-KUNNR IS NOT INITIAL.
REFRESH IT_SPA.
IT_SPA-PARID = 'KUN'.
IT_SPA-PARVAL = IT_KNA1-KUNNR.
APPEND IT_SPA.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
EXPORTING
TCODE = 'XD02'
SKIP_SCREEN = ' '
MODE_VAL = 'A'
UPDATE_VAL = 'A'
IMPORTING
SUBRC =
TABLES
USING_TAB =
SPAGPA_TAB = IT_SPA
MESS_TAB =
EXCEPTIONS
CALL_TRANSACTION_DENIED = 1
TCODE_INVALID = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDCASE.
<b>Reward if Helpful.</b> -
Dynamically passing the values to search help
hi
can I pass some values dynamically to search help input field.
If I select a profit centre value from a drop down in separate field it should reflect the corresponding values in
search help which is cost centre input field ( i/p fields is in a column of a UI element table).
If I add one more row also the corresponding column should bears the search help...
thanx in advance.......Data dictionary based search helps can have multiple importing parameters within Web Dynpro. There are few rules that are documented in the online help however:
Be aware that import and export parameters for the search help are determined only within the same context node (see also Transport of Values for the Input Help), and even then only if a Dictionary structure is assigned to the node.
http://help.sap.com/saphelp_nw70/helpdata/EN/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm -
Error in transporting the Transformation to Quality system
Hi All,
I am trying to transport the transformation which has field level routine as well as start and end routine.
I have basically ehanced the standard routine and it works perfectly fine in dev server . I have even loaded the data and generated reports on this cube.
Now i am trying to transport it to Quality system. It throws up some "syntax error in routine" error. Very strange.
All my routine in Dev is working but during transport ther is some issue.
i saw some post on same but they are suggesting to regenerate a new transformation. For me this will be a nightmare as there are so many routnies at field level and as end routine.
Kindly suggest how can i rectify this error.
Note:- I had generated this transformation via old update rules with Migration function.
Thanks & Regards,
AnupHi Anindya,
Below is my source code for one field level routine in transformation.
FORM routine_0080
TABLES
p_monitor STRUCTURE rsmonitor
USING
COMM_STRUCTURE TYPE _ty_s_sc_1__rule_52
CHANGING
RESULT TYPE _ty_s_tg_1_full-srvclen
RETURNCODE LIKE sy-subrc
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.
* init variables
* fill the internal table "MONITOR", to make monitor entries
DATA: ultimo LIKE sy-datum.
IF g_record_no <> RECORD_NO.
g_record_no = RECORD_NO.
CLEAR: employee_wa, person_wa.
CLEAR: employee_md, person_md.
ENDIF.
PERFORM read_md_employee
USING COMM_STRUCTURE-employee
COMM_STRUCTURE-calday
RECORD_NO
RECORD_ALL
SOURCE_SYSTEM
CHANGING employee_wa
RETURNCODE.
employee_md = employee_wa.
PERFORM calculate_ultimo
USING COMM_STRUCTURE-calday+0(6)
RECORD_NO
RECORD_ALL
SOURCE_SYSTEM
CHANGING ultimo
RETURNCODE.
IF NOT employee_md-entrydate IS INITIAL.
RESULT = ultimo+0(4) - employee_md-entrydate+0(4).
IF ultimo+4(4) LT employee_md-entrydate+4(4).
RESULT = RESULT - 1.
ENDIF.
ENDIF.
* result value of the routine
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
* if abort is not equal zero, the update process will be canceled
ABORT = 0.
p_monitor[] = MONITOR[].
CLEAR:
MONITOR[].
CLASS lcl_transform IMPLEMENTATION.
METHOD compute_0AGE_RANGE.
* IMPORTING
* request type rsrequest
* datapackid type rsdatapid
* SOURCE_FIELDS-CALDAY TYPE /BI0/OICALDAY
* SOURCE_FIELDS-EMPLOYEE TYPE /BI0/OIEMPLOYEE
* EXPORTING
* RESULT type _ty_s_TG_1-AGE_RANGE
DATA:
MONITOR_REC TYPE rsmonitor.
*$*$ begin of routine - insert your code only below this line *-*
Data:
COMM_STRUCTURE type _ty_s_SC_1__RULE_20,
l_subrc type sy-tabix,
l_abort type sy-tabix,
ls_monitor TYPE rsmonitor,
ls_monitor_recno TYPE rsmonitors.
data:
l_monitor type standard table of rsmonitor.
REFRESH:
MONITOR.
* Runtime attributs
SOURCE_SYSTEM = p_r_request->get_logsys( ).
MOVE-CORRESPONDING SOURCE_FIELDS to COMM_STRUCTURE.
* Migrated update rule call
Perform routine_0070
TABLES
l_monitor
USING
COMM_STRUCTURE
CHANGING
RESULT
l_subrc
l_abort.
*-- Convert Messages in Transformation format
LOOP AT l_monitor INTO ls_monitor.
move-CORRESPONDING ls_monitor to MONITOR_REC.
append monitor_rec to MONITOR.
ENDLOOP.
IF l_subrc <> 0.
RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD.
ENDIF.
IF l_abort <> 0.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
ENDIF.
I am not able to change the code which are marked with " * ". Where can i change the code here?
Regards,
Anup
Maybe you are looking for
-
Connecting MS-Access database with Oracle Forms
Hai, Can any one suggest as to how I can connect MS-Access database with Oracle Developer Forms. What is the procedure ? Suggest me if I need to install any drivers. Waiting for an early reply. Warm Regards, Raghav. email:[email protected]
-
PA30 Initial Screen - need to take off /delimet infotype menu group
Hi All, If i want to take off / delimit infotype menu group from PA30 screen ( for example - I dont want user to see Gorss/net payroll and Net Payroll infotype tabs) can any one please guide me how to do that? Regards, Amit
-
WriteBack Report tries to UPDATE a new row
I have created a new report that I have enabled WriteBack on. When updating existing items, all is OK. When I go to create a new item, it sometimes attempts to do an UPDATE rather than an INSERT ( which fails ). However, sometimes it works OK. XML as
-
How to get rid of music on lock screen
On my lock screen the music keeps coming up instead of the clock. I have tried to double tab of the home button. It goes away but then the next time my phone is on lock again it is back to the music. Any way to keep the clock showing up?
-
How do I get the promotional $200 credit for my iphone 4s? I ordered a ipnone6 online, but there was no mention of the trade-in credit. Do I need to cancel my order and start over with my local Verizon store to get a credit?