BADI /SAPAPO/AM_ALERTLIST - How to fill values in new field catalogue
Hi,
I need some help for passing values into the field Catalog of an ALERT Monitor.
The requirement is to add new fields in the ALERT Monitor and then populate them with values form the PRODUCT view.
I have implemented method MODIFY_ALERTLIST of BADI /SAPAPO/AM_ALERTLIST. I am able to add the new columns but I am unable to add the values. Actually while debugging i found that even though the NEW values are going into the table T_ALERTS, but the space between the New Added values and the original value is HUGE. Therefore when the Field Catalog is displayed in the Alert Monitor, the NEW Values are not shown.
I am attaching my Code
DATA: l_table_ref TYPE REF TO data,
l_table_ref_1 TYPE REF TO data,
l_fieldcat_str TYPE /sapapo/am_aot_fieldcat_str,
ls_fieldcat TYPE LINE OF lvc_t_fcat,
ls_t_fieldcat LIKE LINE OF t_fieldcat,
l_alert_str TYPE LINE OF /sapapo/alert_tab,
l_str_ref TYPE REF TO data,
l_str_ref_1 TYPE REF TO data.
FIELD-SYMBOLS: <aot_tab> TYPE STANDARD TABLE,
<aot_tab_1> TYPE STANDARD TABLE,
<alert_str> TYPE /sapapo/alert_str,
<aot_str> TYPE ANY,
<alert_str1> TYPE c,
<alert_str_uc> TYPE c.
FIELD-SYMBOLS: <zat103> TYPE c. "ANY.
DATA : l_col_pos TYPE i,
gv_entries TYPE i,
xlength TYPE i.
FIELD-SYMBOLS : <info> TYPE ANY,
<aot_str1> TYPE ANY.
DATA olen1 TYPE i.
DATA: t_pegid TYPE STANDARD TABLE OF /sapapo/amopegid_tab,
t_ordid TYPE STANDARD TABLE OF /sapapo/amoordid_tab.
CLEAR: l_alert_str,
l_table_ref ,
l_table_ref_1 ,
l_fieldcat_str ,
ls_fieldcat ,
ls_t_fieldcat ,
l_str_ref .
*Add new column
READ TABLE t_fieldcat INTO ls_t_fieldcat INDEX 1.
DATA: x1 TYPE lvc_t_fcat,
y1 LIKE LINE OF x1.
x1 = ls_t_fieldcat-fieldcat.
LOOP AT x1 INTO y1 WHERE reptext NE space.
CHECK y1-fieldname NE 'DELIVERY_DATE'.
xlength = xlength + y1-intlen.
ENDLOOP.
DESCRIBE TABLE x1 LINES gv_entries.
Appending Delivery Date
ls_fieldcat-col_pos = gv_entries + 1.
ls_fieldcat-fieldname = 'DELIVERY_DATE'.
ls_fieldcat-ifieldname = 'DELIVERY_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Delivery Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = '/SAPAPO/DELIVERY_DATE' . "'DATS'.
ls_fieldcat-domname = '/SAPAPO/CHAR20'."'/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Delivery Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Start Date
ls_fieldcat-col_pos = gv_entries + 2.
ls_fieldcat-fieldname = 'STARTDAT'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Start Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Start Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Required Shelf Life Date
ls_fieldcat-col_pos = gv_entries + 3.
ls_fieldcat-fieldname = 'SL_MIN_DAT'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Req.SL dte'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Req.SL dte'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Shelf Life Date/Required Maximum Shelf life Date
ls_fieldcat-col_pos = gv_entries + 4.
ls_fieldcat-fieldname = 'SL_MAX_DAT'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'SL Date 2'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'SL Date 2'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending (Availability/Requirements) Date of a Schedule Line
ls_fieldcat-col_pos = gv_entries + 5.
ls_fieldcat-fieldname = 'AVL_REQ_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Schedule Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Schedule Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Req Date/ Shipment end date
ls_fieldcat-col_pos = gv_entries + 6.
ls_fieldcat-fieldname = 'SHIP_MAX_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Req Date/ Shipment end date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Req Date/ Shipment end date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Expected Grading Date
ls_fieldcat-col_pos = gv_entries + 7.
ls_fieldcat-fieldname = 'GRAD_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Expected Grading Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Expected Grading Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Available Date
ls_fieldcat-col_pos = gv_entries + 8.
ls_fieldcat-fieldname = 'AVAIL_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Available Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Available Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
MODIFY TABLE t_fieldcat FROM ls_t_fieldcat.
DATA lvc_t_fcat TYPE lvc_t_fcat.
*CODE FOR ADDING THE NEW VALUES*
ASSIGN Alert Structure to Field Symbols for Unicode
ASSIGN COMPONENT 0 OF STRUCTURE l_alert_str
TO <alert_str> CASTING.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = ls_t_fieldcat-fieldcat
IMPORTING
ep_table = l_table_ref.
*assign dynamic structure
ASSIGN l_table_ref->* TO <aot_tab>.
CREATE DATA l_str_ref LIKE LINE OF <aot_tab>.
ASSIGN l_str_ref->* TO <aot_str>.
ASSIGN l_str_ref->* TO <alert_str_uc> CASTING.
LOOP AT t_alerts INTO l_alert_str.
READ TABLE t_fieldcat WITH KEY aot = l_alert_str-aot
INTO l_fieldcat_str.
CALL FUNCTION '/SAPAPO/ATAB_FIELDCAT_GET'
EXPORTING
aot = l_fieldcat_str-aot
mview = l_fieldcat_str-mview
IMPORTING
table_ref = l_table_ref
t_fieldcat = lvc_t_fcat.
ASSIGN l_alert_str TO <alert_str>.
*copy alert to aot-specific structure
MOVE <alert_str>-info TO <alert_str_uc>.
*Write this code inside the loop
ASSIGN COMPONENT 'DELIVERY_DATE' OF STRUCTURE <aot_str> TO <zat103>. "CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'STARTDAT' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'SL_MIN_DAT' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'SL_MAX_DAT' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'AVL_REQ_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'SHIP_MAX_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'GRAD_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'AVAIL_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
MOVE <alert_str_uc> TO <alert_str>-info.
MODIFY t_alerts FROM l_alert_str INDEX sy-tabix.
CLEAR : <alert_str>, <alert_str_uc>.
ENDLOOP.
I have even tried Concatenating Values, with that method even though the NEW Values are available but they do not fall under the correct Column.
PLEASE help me out cos I am really Stuck.
Regards
Abhishek Sahi
Hi,
I need some help for passing values into the field Catalog of an ALERT Monitor.
The requirement is to add new fields in the ALERT Monitor and then populate them with values form the PRODUCT view.
I have implemented method MODIFY_ALERTLIST of BADI /SAPAPO/AM_ALERTLIST. I am able to add the new columns but I am unable to add the values. Actually while debugging i found that even though the NEW values are going into the table T_ALERTS, but the space between the New Added values and the original value is HUGE. Therefore when the Field Catalog is displayed in the Alert Monitor, the NEW Values are not shown.
I am attaching my Code
DATA: l_table_ref TYPE REF TO data,
l_table_ref_1 TYPE REF TO data,
l_fieldcat_str TYPE /sapapo/am_aot_fieldcat_str,
ls_fieldcat TYPE LINE OF lvc_t_fcat,
ls_t_fieldcat LIKE LINE OF t_fieldcat,
l_alert_str TYPE LINE OF /sapapo/alert_tab,
l_str_ref TYPE REF TO data,
l_str_ref_1 TYPE REF TO data.
FIELD-SYMBOLS: <aot_tab> TYPE STANDARD TABLE,
<aot_tab_1> TYPE STANDARD TABLE,
<alert_str> TYPE /sapapo/alert_str,
<aot_str> TYPE ANY,
<alert_str1> TYPE c,
<alert_str_uc> TYPE c.
FIELD-SYMBOLS: <zat103> TYPE c. "ANY.
DATA : l_col_pos TYPE i,
gv_entries TYPE i,
xlength TYPE i.
FIELD-SYMBOLS : <info> TYPE ANY,
<aot_str1> TYPE ANY.
DATA olen1 TYPE i.
DATA: t_pegid TYPE STANDARD TABLE OF /sapapo/amopegid_tab,
t_ordid TYPE STANDARD TABLE OF /sapapo/amoordid_tab.
CLEAR: l_alert_str,
l_table_ref ,
l_table_ref_1 ,
l_fieldcat_str ,
ls_fieldcat ,
ls_t_fieldcat ,
l_str_ref .
*Add new column
READ TABLE t_fieldcat INTO ls_t_fieldcat INDEX 1.
DATA: x1 TYPE lvc_t_fcat,
y1 LIKE LINE OF x1.
x1 = ls_t_fieldcat-fieldcat.
LOOP AT x1 INTO y1 WHERE reptext NE space.
CHECK y1-fieldname NE 'DELIVERY_DATE'.
xlength = xlength + y1-intlen.
ENDLOOP.
DESCRIBE TABLE x1 LINES gv_entries.
Appending Delivery Date
ls_fieldcat-col_pos = gv_entries + 1.
ls_fieldcat-fieldname = 'DELIVERY_DATE'.
ls_fieldcat-ifieldname = 'DELIVERY_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Delivery Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = '/SAPAPO/DELIVERY_DATE' . "'DATS'.
ls_fieldcat-domname = '/SAPAPO/CHAR20'."'/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Delivery Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Start Date
ls_fieldcat-col_pos = gv_entries + 2.
ls_fieldcat-fieldname = 'STARTDAT'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Start Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Start Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Required Shelf Life Date
ls_fieldcat-col_pos = gv_entries + 3.
ls_fieldcat-fieldname = 'SL_MIN_DAT'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Req.SL dte'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Req.SL dte'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Shelf Life Date/Required Maximum Shelf life Date
ls_fieldcat-col_pos = gv_entries + 4.
ls_fieldcat-fieldname = 'SL_MAX_DAT'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'SL Date 2'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'SL Date 2'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending (Availability/Requirements) Date of a Schedule Line
ls_fieldcat-col_pos = gv_entries + 5.
ls_fieldcat-fieldname = 'AVL_REQ_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Schedule Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Schedule Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Req Date/ Shipment end date
ls_fieldcat-col_pos = gv_entries + 6.
ls_fieldcat-fieldname = 'SHIP_MAX_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Req Date/ Shipment end date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Req Date/ Shipment end date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Expected Grading Date
ls_fieldcat-col_pos = gv_entries + 7.
ls_fieldcat-fieldname = 'GRAD_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Expected Grading Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Expected Grading Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
Appending Available Date
ls_fieldcat-col_pos = gv_entries + 8.
ls_fieldcat-fieldname = 'AVAIL_DATE'.
ls_fieldcat-tabname = '1'.
ls_fieldcat-seltext = 'Available Date'.
ls_fieldcat-outputlen = '10'.
ls_fieldcat-rollname = 'DATS'.
ls_fieldcat-domname = '/SAPAPO/DATUM'.
ls_fieldcat-coltext = 'Available Date'.
APPEND ls_fieldcat TO ls_t_fieldcat-fieldcat.
MODIFY TABLE t_fieldcat FROM ls_t_fieldcat.
DATA lvc_t_fcat TYPE lvc_t_fcat.
*CODE FOR ADDING THE NEW VALUES*
ASSIGN Alert Structure to Field Symbols for Unicode
ASSIGN COMPONENT 0 OF STRUCTURE l_alert_str
TO <alert_str> CASTING.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = ls_t_fieldcat-fieldcat
IMPORTING
ep_table = l_table_ref.
*assign dynamic structure
ASSIGN l_table_ref->* TO <aot_tab>.
CREATE DATA l_str_ref LIKE LINE OF <aot_tab>.
ASSIGN l_str_ref->* TO <aot_str>.
ASSIGN l_str_ref->* TO <alert_str_uc> CASTING.
LOOP AT t_alerts INTO l_alert_str.
READ TABLE t_fieldcat WITH KEY aot = l_alert_str-aot
INTO l_fieldcat_str.
CALL FUNCTION '/SAPAPO/ATAB_FIELDCAT_GET'
EXPORTING
aot = l_fieldcat_str-aot
mview = l_fieldcat_str-mview
IMPORTING
table_ref = l_table_ref
t_fieldcat = lvc_t_fcat.
ASSIGN l_alert_str TO <alert_str>.
*copy alert to aot-specific structure
MOVE <alert_str>-info TO <alert_str_uc>.
*Write this code inside the loop
ASSIGN COMPONENT 'DELIVERY_DATE' OF STRUCTURE <aot_str> TO <zat103>. "CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'STARTDAT' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'SL_MIN_DAT' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'SL_MAX_DAT' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'AVL_REQ_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'SHIP_MAX_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'GRAD_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
ASSIGN COMPONENT 'AVAIL_DATE' OF STRUCTURE <aot_str> TO <zat103> CASTING.
IF sy-subrc = 0.
CLEAR <zat103>.
*Fetch ur own custom value and move to the field symbol. This
*dynamically populates ur structure.
<zat103> = '22.11.1999'.
ENDIF.
MOVE <alert_str_uc> TO <alert_str>-info.
MODIFY t_alerts FROM l_alert_str INDEX sy-tabix.
CLEAR : <alert_str>, <alert_str_uc>.
ENDLOOP.
I have even tried Concatenating Values, with that method even though the NEW Values are available but they do not fall under the correct Column.
PLEASE help me out cos I am really Stuck.
Regards
Abhishek Sahi
Similar Messages
-
How to fill values to custom fields created by EEWB
Hi All,
I am working in CRM 5.0,We have extended the BP transaction with two new fields using EEWB transaction.
ZZABC
ZZDEF
Here goes my problem , i wanted to update data to the new fields using FM.
I tried using BUPA_CENTRAL_CHANGE,where i found the structure of the custom fields .But the FM is working for standard fields but not for Custom fields.
Following are the FM generated in EEWB.
ZZG05_BUPA_EVENT_DINP2
ZZG05_BUPA_EVENT_DLVE1
ZZG05_BUPA_EVENT_DSAVB
ZZG05_BUPA_EVENT_ISDST
ZZG05_BUPA_EVENT_ISSTA
ZZG05_BUPA_EVENT_XCHNG
ZZG05_BUPA_PAI_ZG050100
ZZG05_BUPA_PAI_ZG050101
ZZG05_BUPA_PBO_ZG050100
ZZG05_BUPA_PBO_ZG050101
I have tried using the above FM.But didnt work.
Can you please help me how to proceed just to fill values using FM.
Your suggestions will be highly rewarded.
Thanks,
Gayathri.Hi Shiva,
Thanks for your response.
I have specified the FM that are generated while creating the fields, where i dnt find any update or delete.
Further can u explain "you can play with screen config in the AREA MENU code BUPT".
My requirement is to upload data to those fields through pgm for one time.
Thanks,
Gayathri. -
How to Fill value in Input fields before displaying ADOBE FORM
Hi to all,
Please can anyone tell me how to fill the entry in ADOBE FORM before displaying?
I have written a program to generate ADOBE FORM, but I need while displaying ADOBE FROM some input field should already be filled by value and can not be changed.
Please can anyone tell me how to do that in program?
Below is the program.
DATA: fm_name TYPE rs38l_fnam,
fp_docparams TYPE sfpdocparams,
fp_outputparams TYPE sfpoutputparams.
Parameters: p_pdf_form_name type fname.
fp_docparams-langu = 'E'.
fp_docparams-country = 'IN'.
fp_outputparams-preview = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = p_pdf_form_name
IMPORTING
e_funcname = fm_name.
E_INTERFACE_TYPE = E_INTERFACE_TYPE
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
IMPORTING
/1BCDWB/FORMOUTPUT = fp_outputparams
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
I shall be thankful to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Jul 25, 2011 2:57 PMHello,
you need to provide the information via the interface, which you create for the Adobe form.
And then pass this values via the following function module inside your generation report.
CALL FUNCTION fm_name
check standard report : FP_EXAMPLE_01 as an example! -
How to enter values in the fields of standard SAP Infotype e.g. IT0024
Hi,
How to enter values in the fields of standard SAP Infotype?
e.g. I want to enter values in infotype IT0024(Qualifications) in the field AUSPR(Profincy):-
1-Level 1
2-Level 2
3-Level 3
4-Level 4
5-Level 5
Thanks,
AmeetHi Divya,
I checked with the screen and report which is mentioned by you. But I want to modify/make changes that should appear in the screen when you view details for a particualar employee in Qualifications(IT0024).
Please refer the screen 2000 of module pool MP002400 in SE80. In that screen I want to make change as listbox with key.
Can it be achieved in the same way as mentioned by you before by making standard SAP report as Z and then modify using layout editor?
Please help me out. I think I am almost there.
Thanks,
Ameet -
Recuperate value of new field with a BAdI
Hi everybody,
I am beginner in ABAP.
Currently I have create a new field in SAP CRM thanks to EEWB (Easy Enhancement Workbench). This field is visible is the screen of SAP (tcode BUP3).
I would to recuperate value of this new field at the time when user save a new value.
I have tried to recuperate value in the good table but I obtain the previous value.
I have no idea how to do this !
Do I need to use "dynpro" ?
Thank you by advance for your help !
Best regards,
RémiTry
CALL FUNCTION 'BUP_MEMORY_BUT000_GET'
EXPORTING
iv_partner_guid = l_guid
IMPORTING
es_but000 = ls_but000
EXCEPTIONS
not_found = 1
parameter_error = 2
OTHERS = 3.
IF sy-subrc EQ 1 .
CALL FUNCTION 'BUP_BUT000_SELECT_WITH_GUID'
EXPORTING
i_partner_guid = l_guid
IMPORTING
e_but000 = ls_but000
EXCEPTIONS
not_found = 1
bpext_not_entered = 2
OTHERS = 3.
ENDIF .
Edited by: Arseni Gallardo on Sep 19, 2011 5:55 PM -
How to populate value in other field after entering in one field?
hi everyone.
when i enter value in one field , automatically some xyz value should be populated in second field. How would this be possible without any enter? I mean i don want to perform any action like press enter or like that.Hello manumb6 ,
You coud also use "TimedTrigger" UI element for the same and you can specify the "delay" value in seconds.
Suppose if you enter x value.
After X seconds it will trigger the particular action associated to UI element.
My suggestion would be that you generate this UI element Dynamically when you expect end user to enter the value in the input field and system would keep invoking the method and as soon as your objective is met, Delete the UI element .
Hope this would help.
Regards
Anurag Chopra -
How to give values to the field in free selection via call transaction?
Hi,
I'm using call transaction for transaction "FAGLB03". And i'm passing the values for the fields company code, account number and year using the respective parameter id. But i need to pass the value for Profit center also, which is in the free selction button (near to variant button). I have tried by passing the value thorugh the parameter id. but it is not taking up. The code is as follows:
SET PARAMETER ID 'ACC' FIELD lv_saknr.
SET PARAMETER ID 'BUK' FIELD lv_rbukrs.
SET PARAMETER ID 'GJR' FIELD lv_ryear.
SET PARAMETER ID 'PRC' FIELD lv_prctr.
CALL TRANSACTION 'FAGLB03' AND SKIP FIRST SCREEN.
Here the value of profit center is not filling up in the screen.
If anybody have any clue please replay back.
Thanks in Advance.Hello Pothiraja
If the free selection parameter cannot be filled this way you may try to call the corresponding report using the SUBMIT statement. <b>SUBMIT </b>has the option
... WITH FREE SELECTIONS texpr
For details refer to the ABAP keyword documentation for SUBMIT -> selscreen_parameters.
Regards
Uwe -
How to display values and new char line (blank line)
Hi,
In database, one field contains values followed by new character lines (blank lines) after blank lines there is no values. Finally, I would say the field contains values and blank lines. Every thing is fine in database.
In Crystal Reports the field is displaying only values. Need to display values and blank line.
User is asking after values new character lines (blank line) to be shown. They enter like that in an application. The user doubt is why report is not showing what they enter in the application.
In detail explanation, front end tool is ASP.NET and backend is SQL Server.
User enter some values in note field, after that they hit enter button in the same field, cursor will go next line...user may hit u2018enter buttonu2019 more than 5 times. So note field contain values and some blank lines which are created by after hitting enter button.
If user opens the application, they could see values plus blank lines in the note field.
They are fine with the application.
In Crystal Reports, the note field shows only values.
User is questioning that why we could not see in report we enter.
I checked in .Net application and SQL server database it is fine. It is displaying values and blank line.
Please help me out how to display values followed by blank lines in Crystal Reports - the way they enter in the application.
Thanks and Regards,
Manjunath N. JoginHi,
Sharonmat,
I tried as you suggested. It is still displaying only values.
I would like to explain again.
it is not exactly null values.
In .Net application it is called 'new char line'.
it shows those many lines look like null.
it is working fine in database.
Why it is not working in Crystal Reports? I am wondering...
Thanks for your suggestion.
Debi,
User may enter any number of blank lines or they may not enter blank lines.
That is the reason I can not always give more height or blank text object.
Thanks for your suggestion.
Please suggest me some more suggestions,
Thanks and Regards,
Manjunath N. Jogin -
How to change value in PPMeter field in IQ02
Hi,
Please guide me how can we change the value in PPMeter field in IQ02(in tab 'other').
The device has already been installed and billing for several months has also been done.
Please guide.
Thanks and Regards
Edited by: MPVash Vash on Dec 4, 2008 7:06 AMTransactions SMOD and CMOD are available for enhancing and preassigning fields for devices.
There is one customer exit under the SAP enhancement EMDK0001.
When creating a device using Plant Maintenance (PM), you can enter data directly onto the Other tab page. You do this by using transaction IQ01 to define enhancement ITOB0001. This is not possible via transaction IQ04. In change mode, however, you can use both transactions to access customer-specific fields.
Table EQUI contains device data. The customer include CI_EQUL is used to include customer-specific fields in the database table. You cannot preassign fields for devices. You can use the field selection to display fields for device and connection (both based on equipment) differently.
Regards,
Shiva Kumar -
How to pass value from new pop up window to the input field
Hi,
i have a F4 help on a input type field and adjacent to that two more input fields, on clicking the help on the first input field a new pop up window opens, the value in this pop up window is to be selected to give the value in that field and the other two values should be appeared in the input type. suppose the pop up window has three fields "15 LIMA PLANT 45802 ", so on clicking it in input field only 15 should go to the firstinput fields and "LIMA PLANT" and "45802" should go to new window
do anyone know this?avoid duplicate threads
F4 help in dropdownlistbox and values in input fields
if you feel that the thread heading or content is not what you wanted, you can edit it and leave a note in the same thread that you have edited it.
Raja -
How to get value in custom field(Part OF BOL) in search result view.
Hi All,
I am new to CRM WEBUI and i am facing issue in populating value in one field of search result view.
Current requirement is .
On product f4 , we get search help and search result view.
one custom field need to be added in search result view ( for eg any description field).
This description field is already available in one of z relation maintained in PRODUCT root object.
Solution tried so Far:
1. We enhance one Standard Product structure and add that description field .
2. Add new field( description) in result view context node as attribute by using bol attribute.
3. Customize search result view and display that description field in result.
By doing above three steps, field is available in search result view.
but issue is we are not able to get values.
1st Approach: write code in getter and setter method . Pass the relation name and get the property of description field
in setter method, set the property.
Issue : we were not able to sort the values on this description field. so scrap this 1st approach
2nd Approach: In Event EH_Onsearch Help, we try to use collection wrapper to get current value of description
by using relation name .
We use component controller to set the value of description since searchresult view-conext node->result node is bound to one comp controller node.
but this solution also does not work..
Please advice us what approach we should use to get value in description field and sorting should also work.
Thanks in Advance.Hi Girish,
1. We enhance one Standard Product structure and add that description field .
2. Add new field( description) in result view context node as attribute by using bol attribute.
3. Customize search result view and display that description field in result.
By doing above three steps, field is available in search result view.
but issue is we are not able to get values.
1st Approach: write code in getter and setter method . Pass the relation name and get the property of description field and by using this approach we are able to get value but sorting was not working so we disable the sorting as it was not required by business.
if u need sorting on that field.
then u should go for value node approach and write code for getting value in get set method
and for sorting also , need to write code.
This is my understanding on this .
Please reward if this solution is helpful -
How to send value into current field in table control ABAP
Hi every one,
Im from VietNam and I dont know much about SAP ABAP. Im find out more about it.
I have a problem.
I made a table control with a big internal table at input, it about more than 100 field.
I can set cursor to the field that I want to send value to.
And I want to know any way to send value to that field without use the table control's structure.Hi Nabheet,
Chk this thread, it will be useful to u.
Matchcode Dinamic colum in ALV grid control objects
***Reward Points if useful
Regards
Gokul -
How to pass values in dynamic fields in LX03
HI ,
i want to pass values for dyanmic fields in lx03 program by calling this in my own program through call transction or submit report .LX03 is the report program so you have to use Submit report.
See the simple example :
REPORT ZTEST_98 .
DATA: t_param LIKE rsparams OCCURS 10 WITH HEADER LINE.
parameters p_LGNUM like lagp-lgnum obligatory.
start-of-selection.
t_param-selname = 'S1_LGNUM'.
t_param-kind = 'P'.
t_param-low = p_lgnum.
APPEND t_param.
*-- Period
SUBMIT RLS10030 VIA SELECTION-SCREEN
WITH SELECTION-TABLE t_param
AND RETURN.
Just press F1 on submit and you get good documentation.
Thanks
Seshu -
How can I add a new field for Belgium in T588M?
Hi experts,
I am trying to change the infotype 0002 screen for BElgium. This is how I am doing T588M > new entry > MP000200 > alt. screen 2012 > var. key 12 > feature p0002 >.
I also maintained 12 as the var. key for the countr yBE in P0002 feature. I want to add P0002-GBDEP (state) field which is already there for MP000200 screen 2000 which is the SAP standard screen. why it does not copy this field when I create this field for Belgium. HOw can I bring it for BEl. Please advise.
Thanks a ton,
JEss...As P0002-GBDEP is not included in screen '2012', you'll need to create an additional custom screen to show this field. Then, you'll need to config table 'T582C' to have 'MP000200' / screen '2012' to have this custom screen as an 'include' screen (e.g. if your new custom screen is ZP000200 / screen '0100', then in T582C, you'll need an entry with 'MP000200' '2012' ZP000200' '0100'.
-
How to modify (add a new field) existing SOAP data source ?
Dear Friends,
I am getting data from Legacy databases (from different Views) mapped to the BW through XI.
There is an existing SOAP Data source which is mapped to the non-R/3 source system Views through XI.
My question is:
Now I wanted to add a new field to the existing SOAP Data source, which will be mapped to the newly added field in the source system by XI.
Please advice how could I modify the existing SOAP data source?
Thanks,
VenkatMy plan is to add the new InfoObject(field)/BIC/ZXXX in the Datasource --> Map that field to the Info Object Zxxx in Comm Str. --> Extras (menu) --> Create BW Data source with SOAP connection --> Regenerate the PROXY --> so that now the XI guys could map the new Infoobject in my Datasource to the new field in the Legacy database tables
But why is that I am not able to add a new field in the Datasource ? I am trying this way: RSA1 --> Infosource tab --> Dbl. click on the existing Datasource --> here...I am trying to add new field in the Datasource...
is there any other special place where I could add a new field to the existing SOAP Datasource ?
Please help..?
Maybe you are looking for
-
I want to convert my kids existing itunes accounts to sub accounts under the new family feature....is that possible? I have added them to my family but they show up as adult accounts. I would like them to be child accounts.
-
Icons at the bottom of iBooks don't load
I opened iBooks last night to download one of my dads books on my iPad 4 but saw that the bottom icons did not load. I have logged out and logged back into itunes and completely reset my iPad. Running IOS 8.1.
-
Why is radio not showing on iTunes update (and it is ticked in preferences)?
I upgraded to iTunes 11. Regret. Radio does not show. I checked Preferences and it's ticked. ALSO the update eliminated all my podcasts apparently. Can i get them back? What is the point of this update?
-
How-to manual for Terminal for OS X 10.5.8
I cannot find, on this site, an operating manual for beginners for using Terminal for OS X 10.5.8. [Videos don't cut it for me; I need something I can print in large font, but I couldn't find a video either.] Must contain details and definitions.
-
USB mic static, robot noise after period of time
Hello everyone, This is the original issue: https://discussions.apple.com/thread/2166616?start=75&tstart=0 I have some answers (not solutions) for this issue and a response from Apple's engineers regarding the it. After extensive testing, recording t