Steps:
1)Transaction: crmc_webreq
2)Select the request categorie: ZWR
3)Request data structure:
Create, change and display fields.
Once you done with adding fields.
Save
4)Req. Cat. View:
Give the Form and Interface name
Click on Generate.
Check in SFP: Interface XML will be udated
Monday, November 18, 2013
Friday, February 15, 2013
Text value with include text on same line in SAPScripts
Using Subrotine pool we can solve the issue.
Write the code in SAPScripts
/: PERFORM TEST IN PROGRAM ZTEST_XML
/: USING &T166A-TXNAM&
/: USING &T166A-TDOBJECT&
/: USING &T166A-TDID&
/: CHANGING &DES&
/: ENDPERFORM
* &DES&
*Create a Report
REPORT ztest_xml.
DATA: lv_name TYPE thead-tdname.
DATA ls_input TYPE itcsy.
DATA ls_output TYPE itcsy.
DATA : c_id TYPE thead-tdid,
c_object TYPE thead-tdobject,
lt_line TYPE TABLE OF tline,
ls_line TYPE tline.
*&---------------------------------------------------------------------*
*& Form TEST
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->INPUT text
* -->OUTPUT text
*----------------------------------------------------------------------*
FORM test TABLES input STRUCTURE itcsy output STRUCTURE itcsy.
READ TABLE input INTO ls_input WITH KEY name = 'T166A-TXNAM'.
lv_name = ls_input-value.
READ TABLE input INTO ls_input WITH KEY name = 'T166A-TDID'.
c_id = ls_input-value.
READ TABLE input INTO ls_input WITH KEY name = 'T166A-TDOBJECT'.
c_object = ls_input-value.
* Get long text
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = c_id
language = sy-langu
name = lv_name
object = c_object
TABLES
lines = lt_line
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
DATA lv_long_text TYPE string.
LOOP AT lt_line INTO ls_line.
CONCATENATE ls_line-tdline lv_long_text INTO lv_long_text
SEPARATED BY space.
CLEAR ls_line.
ENDLOOP.
CONCATENATE 'Text you want:' lv_long_text INTO lv_long_text
SEPARATED BY space.
READ TABLE output INTO ls_output WITH KEY name = 'DES'.
IF sy-subrc = 0.
ls_output-value = lv_long_text.
MODIFY output FROM ls_output INDEX 1.
ENDIF.
ENDFORM. "TEST
Note: Check the text length.
Saturday, January 26, 2013
Information for beginners-Experts
* RPUAUD00 all the changes made to info type.
* ST05 Get all the select query trace.
* SE16N - &sap_edit - Change the data base entries and add new entries. (/h - fields GD-SAPEDITand GD-EDIT pass values 'X'
* SAP GUI for HTML - we can custom menu bar, help etc. Article Found in SCN Click here.
* Workflow agents substitute - RMPS_SET_SUBSTITUTE Tcode and substitute new agent.
* Debug SAPScripts - use program RSTXDBUG or SE71- option - utilities - activate debugger.
* Debug SAP Smartforms - from SAP link click here
* GENERATE_SUBPOOL_DIR_FULL - DUMP - SAP Note - 0000539253. (Click here for more details)
* Header/Item LongText issue in Smartform - PO - SAP note 1740705.
* Check HCM Process form Config with report - RPASR_CHECK_PROCESS
* Run Payroll - HUNCALC0 report
* Delete Payroll Results - RPUDEL20 report
* Create BP in ERP using “FPP1” transaction code. Just give name and country and date of birth and / or date of death.
* OTR Text - get OTR text cl_wd_utilities=>get_otr_text_by_alias( 'Alias name' ). Created in sotr_edit.
Note:
I will keep on updating this, please provide any useful information through comments. So that i can place them here.
Thank you.
* ST05 Get all the select query trace.
* SE16N - &sap_edit - Change the data base entries and add new entries. (/h - fields GD-SAPEDITand GD-EDIT pass values 'X'
Or try Function Module SE16N_INTERFACE and place an X in EDIT and SAPEDIT. Often this function module still works after &SAP_EDIT has been disabled. BTW, using FM SE16n_Interface even enables you to make a cross-client select.You just have to set the parameters: I_CLNT_SPEZ,I_CLNT_DEP to 'X' and supply appropriate contents in table IT_SELFIELDS.
* Portal Level - Read-only mode. Object is currently locked by user System Administration -> Monitoring -> Object Locking. There you see all locked objects. You can select your object and unlock it.* SAP GUI for HTML - we can custom menu bar, help etc. Article Found in SCN Click here.
* Workflow agents substitute - RMPS_SET_SUBSTITUTE Tcode and substitute new agent.
* Debug SAPScripts - use program RSTXDBUG or SE71- option - utilities - activate debugger.
* Debug SAP Smartforms - from SAP link click here
* GENERATE_SUBPOOL_DIR_FULL - DUMP - SAP Note - 0000539253. (Click here for more details)
* Header/Item LongText issue in Smartform - PO - SAP note 1740705.
* Check HCM Process form Config with report - RPASR_CHECK_PROCESS
* Run Payroll - HUNCALC0 report
* Delete Payroll Results - RPUDEL20 report
* Create BP in ERP using “FPP1” transaction code. Just give name and country and date of birth and / or date of death.
* OTR Text - get OTR text cl_wd_utilities=>get_otr_text_by_alias( 'Alias name' ). Created in sotr_edit.
Note:
I will keep on updating this, please provide any useful information through comments. So that i can place them here.
Thank you.
Subscribe to:
Posts (Atom)