FM to change field LIKP-FAKSK
Hi Experts,
I am searching for a function module or BAPI to change the field LIKP-FAKSK in delivery. I already tested BAPI_OUTB_DELIVERY_CHANGE, BAPI_OUTB_DELIVERY_CONFIRM_DEC etc. but they do not contain the field LIKP-FAKSK.
Any ideas which FM I can use for this?
Regards
Henryk
Hi,
check this bapi 'BAPI_CUSTOMERQUOTATION_CHANGE' in that
check the strucure BAPISDH1.
some of the structures where i found the field FAKSK check the structures it may be useful
BAPIDLVHDR
BAPILEDLHEAD
BAPIORDERS
BAPISDH1
BAPISDHD
BAPISDHD1
BAPISDHEAD
BAPISDHEAD1
BAPISDORDERSBOS
Thanks & Regards,
Sateesh.
Similar Messages
-
Hi,
My requirment is, need to clear the billing block field (LIKP-FAKSK) for Delivery header. Can I use standard BAPI "BAPI_OUTB_DELIVERY_CHANGE". If not please suggest with other BAPI or Standart Function Modules.
I searched in many Outbound Delivery BAPIs, but billing block field (LIKP-FAKSK) does not existing in sturcture of these BAPIs.
Please suggest me with any BAPI or Function Modules. or Any Idea how to proceed.
ThanksHi Experts,
Any Idea or suggetions for my abouve quary. Your suggestion r importent for me now.
Normally we can change from VL02N tcod for single fields. But in my report i have to use BAPI or and Funation Modules for Delivery header.
Regards -
Changing field length of a standard field in standard table VBEP
Hi,
Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP.
Thanks & Rgds,
PradeepNo you cannot change the field length
thanks
G. Lakshmipathi -
How to find out Last Changed Fields for a line item of a PO
Dear All,
Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?Hello,
Check the table CDHDR,CDPOS for PO items,
Check this code:
REPORT ZV_GET_LATEST_SO .
DATA: BEGIN OF ITAB OCCURS 0,
OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
OBJECTID TYPE CDHDR-OBJECTID,
CHANGENR TYPE CDHDR-CHANGENR,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
UTIME TYPE CDHDR-UTIME,
TCODE TYPE CDHDR-TCODE,
TABNAME TYPE CDPOS-TABNAME,
TABKEY TYPE CDPOS-TABKEY,
FNAME TYPE CDPOS-FNAME,
CHNGIND TYPE CDPOS-CHNGIND,
END OF ITAB.
TABLES: CDHDR,CDPOS.
DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
*REFRESH AUSG.
CLEAR CDHDR.
CLEAR CDPOS.
CDHDR-OBJECTCLAS = 'EINKBELEG'.
CDHDR-OBJECTID = '0000001784'. " Purchase order number
**SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
**B~TCODE
**B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
**INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
** A~OBJECTID = B~OBJECTID
** A~CHANGENR = B~CHANGENR
** WHERE OBJECTCLAS = 'VERKBELEG'
** AND OBJECTID = '0000001784'.
*SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
* AND OBJECTID = '0000001784'.
*IF NOT LT_CDPOS[] IS INITIAL.
* SELECT *
* INTO TABLE LT_CDHDR
* FROM CDHDR
* FOR ALL ENTRIES IN LT_CDPOS
* WHERE OBJECTCLAS = LT_CDPOS-OBJECTCLAS
* AND OBJECTID = LT_CDPOS-OBJECTID
* AND CHANGENR = LT_CDPOS-CHANGENR.
*ENDIF.
** SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
*LOOP AT ITAB.
* WRITE: ITAB-UDATE."ITAB-UNAME.
*ENDLOOP.
*--- Interne Tabellen -------------------------------------------------
DATA: BEGIN OF ICDSHW OCCURS 50. "Ausgabeaufbereitung
INCLUDE STRUCTURE CDSHW. "Zwischendatei
DATA: END OF ICDSHW.
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
DATE_OF_CHANGE = CDHDR-UDATE
OBJECTCLASS = CDHDR-OBJECTCLAS
OBJECTID = CDHDR-OBJECTID
TIME_OF_CHANGE = CDHDR-UTIME
USERNAME = CDHDR-USERNAME
TABLES
I_CDHDR = LT_CDHDR
EXCEPTIONS
NO_POSITION_FOUND = 1
OTHERS = 2.
LOOP AT LT_CDHDR.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
* ARCHIVE_HANDLE = 0
CHANGENUMBER = LT_CDHDR-CHANGENR
* TABLEKEY = '00000000 '
* TABLENAME = ' '
* IMPORTING
* HEADER =
TABLES
EDITPOS = ICDSHW
* EDITPOS_WITH_HEADER =
* EXCEPTIONS
* NO_POSITION_FOUND = 1
* WRONG_ACCESS_TO_ARCHIVE = 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.
LOOP AT ICDSHW.
IF ICDSHW-TABKEY+3(10) = '0000001784'
AND ICDSHW-TABKEY+13(6) = '000001'.
ENDIF.
ENDLOOP.
ENDLOOP.
Vasanth -
How to change field VBAK-CMNUP using VA02
Hi EXPERTS,
How to change field VBAK-CMNUP (Date of next credit check of document) using VA02?
Seems it is hard to find it on the screen of VA02.
Thanks in advance.Hi,
Check these notes:
Note 635727 - VBAK is filled with date only if block is set
Note 588649 - Next date (CMNGV) - meaning and function
Regards,
Eduardo
PD: I forgot the Note 588649 - Next date (CMNGV) - meaning and function.
Edited by: Eduardo Hinojosa on Jun 11, 2009 11:39 AM -
Changing fields color in CL_GUI_ALV_GRID using class
Hi,
I've written a lot of posts but still I have problem with changing color for CL_GUI_ALV_GRID.
I have class ZKSL_CL_4_17_ALV_GRID_OO with 3 methods : SELECT, HANDLE_DBL_CLICK AND DISPLAY_ALV
I want to change fields color every time I double click on IT.
METHOD SELECT.
DATA:
lt_sflight TYPE TABLE OF zkslt_sflight,
ls_layout TYPE lvc_s_layo,
lr_custom_container TYPE REF TO cl_gui_custom_container,
lr_my_class TYPE REF TO zksl_cl_4_17_alv_grid_oo.
SELECT * FROM zkslt_sflight INTO TABLE mt_sflight
WHERE carrid = iv_carrid AND
( fldate IN it_date OR
price IN it_price OR
planetype IN it_type )
CALL FUNCTION 'Z_KSL_SCREEN'.
ENDMETHOD.
from FM z_ksl_screen i call screen 400 and from status_400 output I call method DISPLAY_ALV
METHOD display_alv.
DATA:
lr_custom_container TYPE REF TO cl_gui_custom_container,
lt_sflight TYPE TABLE OF zkslt_sflight,
lt_catalog TYPE STANDARD TABLE OF lvc_s_fcat,
ls_catalog LIKE LINE OF lt_catalog,
ls_layout type slis_layout_alv,
lr_my_class TYPE REF TO zksl_cl_4_17_alv_grid_oo.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZKSLT_SFLIGHT'
CHANGING
ct_fieldcat = lt_catalog[].
************BULID LAYOUT
ls_layout-no_input = 'X'.
ls_layout-colwidth_optimize = 'X'.
ls_layout-totals_text = 'Totals(201)'.
ls_layout-info_fieldname = 'LINE_COLOR'.
IF mr_gui_alv_grid IS INITIAL. "-----------------------------------if----------------------&
CREATE OBJECT: lr_custom_container
EXPORTING
container_name = 'DISPLAY',
lr_my_class.
CREATE OBJECT mr_gui_alv_grid
EXPORTING
i_parent = lr_custom_container.
SET HANDLER lr_my_class->handle_dbl_click FOR mr_gui_alv_grid.
CALL METHOD mr_gui_alv_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'ZKSLT_SFLIGHT'
is_layout = ls_layout
i_save = 'A'
CHANGING
it_outtab = Mt_sflight
it_fieldcatalog = lt_catalog.
ELSE. "-------------------------------------------------ELSE---------------------&
mr_gui_alv_grid->refresh_table_display( ) .
ENDIF.
ENDMETHOD.
In handler i am trying to change fields color and call method display sending new out_table
CALL METHOD me->display_alv
CHANGING
ct_fieldcat = lt_fieldcat.
Please give me some easy advice how to do that.
thank you in advice.Thank you Klaus for your reply,
The problem is that I need to make this using classes.
I tried to make my structure data with LVC_T_SCOL as you wrote,
a field of table type LVC_T_SCOL in the structure of your output table
DATA BEGIN OF lt_data.
INCLUDE STRUCTURE sflight.
DATA cellcolors TYPE lvc_t_scol .
DATA END OF lt_data.
TYPES: BEGIN OF mtt_tab.
* INCLUDE STRUCTURE ZKLST_sflight. " I get error that I cannot use ref to abap dic
INCLUDE TYPE ZKSLT_SFLIGHT.
TYPES: cellcolors TYPE lvc_t_scol ,
END OF mtt_tab.
After making type mtt_tab
i declare data lt_tab TYPE STANDARD TABLE OF mtt_tab.
and when I try to copy table mt_sflight (it is atribut of calss) like below
LOOP AT mt_sflight INTO ls_mt .
* READ TABLE lt_tab INDEX sy-tabix ASSIGNING <ls_tab>.
* MOVE-CORRESPONDING <ls_mt> TO <ls_tab>.
* UPDATE lt_tab FROM TABLE mt_sflight.
MOVE-CORRESPONDING ls_mt to lt_tab.
ENDLOOP.
I am getting error "lt_tab is not internal str or table with header"
Can you help me with this? -
In sets (t-code GS01-04): How to change Field name
HI,
I have created sets for rule in validation by t-code GS01. Where I have given Tbale name BSEG and Field name KOSTL(Cost Center No). Now, I want to change field name SAKNR (GL NO) instead of cost center. When I am trying to change field name t-code GS02, there is field name is in display mode and no way to change it.
As I have lot of entries in each set, so that creation of new sets is very hard job again. Further when I trying to create new sets by reference it didnt change the table name and field name.
Please provide me a solution.
KhalidHi,
Hope it is not possible, logically total field is changing and the dependent entrie will not stay as it is. I don't think this is possible.
Eventhough the values are same but the fields are different.
VVR -
Changing Field Labels of module pool screen dynamically
Hi All,
Can anybody tell me how to change field label of text field in dialog screen dynamically.
The Screen/Transaction is standard one.
I have created a Enhancement point for this change in one of PBO module's subroutine for this screen.
This Field label is defined as a 'Text' field only. We can't change it any more as it is standard one.
Can anybody tell me the solution for the same.
I have to change this label value as per some validations and its corresponding text field value will remain as is.
Thanks,
Deep.Hello,
I think it is not possible, but try changing the name by Looping on screen table on PBO,
Bye
Gabriel -
How to change field text in standard trasaction
Hi,
In XD01 transaction i need to change the standard field label, How difficult/easy is it to change field label of a SAP standard field? Is there any other way to change the screen text. please let me know.
regards
JayaHi Jaya,
You can change the label on the screen directly - BUT this would be a modification.
There is a way to change field labels without a modification, but that has to be done on the data element level.
For that just find out the data element that is referenced and create a Text Enhancement for that Data Element which is NOT a modification.
- Goto transaction CMOD
- Choose Menu 'Goto'
- 'Text Enhancements'
- 'Keywords'
- 'Change'
- Put in the data Element Name and confirm
- You'll have the possibility to change the Label texts for
Short, Medium and Long Field Label
Heading
Short Description
- Make your Changes and save
- Done
Where ever that data element is referenced you'll see your own text.
Hope that helps,
Michael -
Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
I am using this code :
<HTML>
<HEAD>
<SCRIPT>
function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var colCount = table.rows[0].cells.length;
for(var i=0; i<colCount; i++ ) {
var newcell = row.insertCell(i);
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
switch(newcell.childNodes[0].type) {
case "text":
newcell.childNodes[0].value = "";
break;
case "checkbox":
newcell.childNodes[0].checked = false;
break;
case "select-one":
newcell.childNodes[0].selectedIndex = 0;
break;}}}
function deleteRow(tableID) {
try {var table = document.getElementById(tableID);
var rowCount = table.rows.length;
for(var i=0; i<rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if(null != chkbox && true == chkbox.checked) {
if(rowCount <= 2) {
alert("Cannot delete all the rows.");
break;}
table.deleteRow(i);
rowCount--;
i--;}}}catch(e) {alert(e);}}
</SCRIPT>
</HEAD>
<BODY>
<INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
<INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
<TABLE id="dataTable" width="350px" border="1">
<TR>
<TD width="32"></TD>
<TD width="119" align="center"><strong>Activity</strong></TD>
<TD width="177" align="center"><strong>Cost</strong></TD>
</TR>
<TR>
<TD><INPUT type="checkbox" name="chk"/></TD>
<TD>
<select name="s1" id="s1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</TD>
<TD><input type="text" name="txt1" id="txt1"></TD>
</TR>
</TABLE>
</BODY>
</HTML>Hi,
Let me make sure u r working with table control.
First u have to create a event(VALIDATE) to do the validation.
Inside the event,
1. First get the current index where user has pointed the curson
2. Once u get the index read the internal table with index value.
3. Now u can compare the col1 and col2 values and populate the error message.
1. DATA : lo_elt TYPE REF TO if_wd_context_element,
l_index type i.
lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
CALL METHOD LO_ELT->GET_INDEX( RECEIVING MY_INDEX = l_index.
above code should be written inside the event.
Thanks, -
Buyer not able to change fields of SC in sourcing cockpit in SRM 7.0
Hi
We are on SRM 7.0 , SP 07 . We are in classic mode.
Buyer is not able to change fields of shopping cart in sourcing cockpit like delivery date and quantity . He is able to add supplier and create PO . Even when he creates draft PO , he is not able to edit the fields of shopping cart like delivery date and quantity. Is it a standard Bug , is their any OSS SAP Note for this
Regards
AshishAs per SAP Standard BUYER can only vendor and Enter price and create a follow on document.
Buyer does not have a control to edit other data.
Buyer wants to they can do it in ME21N ..PO
not in the shopping cart -
Hi...
How can I change field contents in ABAP New debugger..?
Thanks,
Naveen.IHi,
There a column named Change...beside the field(Pencil mark).
Double click on it,
field content will change to editable mode...
change the content and hit ENTER. -
Get value of changed field of create_decision_popup window in lineedit mode
Hi there,
i'm calling a create_decision_popup popup in lineedit mode.
So i could edit the values of the selected line.
How could i acces the value of the changed fields after closing the popup window in the event_sel event.
Here my code:
v_popup = comp_controller->window_manager->create_decision_popup( iv_title = 'Window title'
iv_selection_mode = 'LINEEDIT'
iv_display_table = gt_table
iv_visible_columns = lt_visible_columns
iv_visible_row_count = lv_row_count ).
v_popup->set_on_close_event( iv_event_name = 'event_sel' iv_view = me ).
v_popup->open( ).
DATA: lr_outputnode TYPE REF TO cl_bsp_wd_context_node.
lr_outputnode ?= v_popup->get_context_node( 'OUTPUTNODE' )
Thanks,
Regards TomSdYou want to edit the selected value from popup, so first populate the selected row in table and then edit in the table.
Open the popup using :
CALL METHOD me->comp_controller->window_manager->create_decision_popup
EXPORTING
iv_title = 'Route'
iv_description = 'Route'
iv_selection_mode = 'SINGLE'
iv_visible_row_count = '10'
iv_display_table = gt_route
iv_visible_columns = lt_table
RECEIVING
rv_result = gr_popup.
gr_popup->set_on_close_event( iv_event_name = 'DEC_POPUP_CLOSED' iv_view = me ).
gr_popup->open( ).
Now on close event i.e. DEC_POPUP_CLOSED write the code to transfer the selected row into the table.
lv_outputnode ?= gr_popup->get_context_node( 'OUTPUTNODE' ).
lv_index = lv_outputnode->get_selectedrowindex( ).
IF lv_index IS NOT INITIAL.
READ TABLE gt_route INTO ls_route INDEX lv_index.
lr_col ?= me->typed_context->zroute->collection_wrapper.
CREATE DATA lr_tab_data.
CREATE OBJECT lr_valuenode
EXPORTING
iv_data_ref = lr_tab_data.
lr_valuenode->set_properties( is_attributes = ls_route ).
lr_col->add( EXPORTING iv_entity = lr_valuenode ).
REFRESH: gt_route.
CLEAR: gr_popup.
endif.
Now you can see the selected row in your table view and the popup will be closed.
To make the row editable go to htm page on which table view is created, and then modify
editMode = "ALL"
in <chtmlb:configCellerator> -
Short dump - field LIKP-WAERK is uknown
Hi,
When compiled my adobe form which has one import parameter of type custom structure which has currency field whose reference field are declared as likp-waerk,
I get a short dump stating Field LIKP-WAERK is uknown. At the statement in lt_params:
dynamic call of the generated function module
CALL FUNCTION m_fm_name
PARAMETER-TABLE lt_params
EXCEPTION-TABLE lt_exceptions.
In the function module when checked in the code that dumps out,
PERFORM %OUTPUT USING 'AMT_FROM' %WORKAREA1-AMT_FROM 'CURR' 'P' 'LIKP-WAERK' LIKP-WAERK ' '.
I think in the ref value instead of variable LIKP-WAERK it should have been blank like ' '.
But I do not know a way to rectify this dump.
Really appreciate if you anyone could please help me out.
Edited by: Bharathi M on Nov 28, 2010 8:46 AM
Edited by: Bharathi M on Nov 28, 2010 9:23 AMHi,
May I know how this was corrected? I'm facing the same issue.
Thanks,
Jeff -
Changing fields of Logical database BRF
Hi;
I have a changing problem
I use brf logical database in my program but I want to change attributes of some selection fields.
Ex:I want to do mandotary year field.I can't dı it.I can add new field but I can't change fields of BRF.
How can I do?try this:
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE SCREEN-NAME.
WHEN 'BR_GJAHR'.
SCREEN-REQUIRED = 1.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
hope tha helps
Andreas
Maybe you are looking for
-
Hi All I have a requirement in my JSP application to send documents stored on a system by FAX to a fax machine, I had also the requirement to send mails but that was solved using JavaMail. But is there any method through which a FAX can be sent to a
-
I am burning a DVD on a blue ray burner with DVD settings, I burned one disc, the sound came on only after a while during playback. I burned another disc using identical settings and there was no sound file at all. Is it a problem with Encore or wi
-
Hi, There's something I need to do with the search APIs, and I'm not sure if it's possible. I need to join a table on itself. My problem is, the two columns I need to use for the join are not of the same data type. One of them is a String and the oth
-
Why JSTL change the encoding of response?
Dear all, I use JSTL to display multiple language, and it can work fine. I also have a servlet to let the user to select the display language. All the request and response encoding is set to UTF-8, but I found that when user choose language to Chines
-
Monthly payment for Adobe Forms Central
Dear all, I need Adobe Forms Central for my master thesis from now till January 2015. According to the Adobe website I have to pay for one year. Since I am a poor student, do you know how I can solve this? Thank you very much in advance.