To find function module to update the field kbetr.
hello friends ,
i have a problem , i want to update kbetr field in konp table and i am searching for a function module . Is there any function module with which we can update kbetr field in konp table.
Hi,
check th thread:
Problem with BAPI_PRICES_CONDITIONS
Similar Messages
-
Creation of function module for updating the ztable
Hi,
I am sending the requirement for ceation of function module for updating the ztable.
Requirement----
Table Updation rule (New record)
While creating a new record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO-------> Sales Delivery no in case of sales orderShipment no in case of transfer order
UNAME----
> User ID
ZORDTYPE----
> SALEOR in case of sales orderTRANSF in case of transfer order
ZREFDOCNO----
>Sales Order no in case of sales orderPurchase Order no in case of transfer order
ZREFDOCNO1----
>Delivery no in case of transfer order
The table handling function will calculate the following fields
Table field Probable Values
ZREQNO----
>Running serial number (incremented by 1 for each new record)
ZREQDAT -
>System date
ZREQTIME----
> System time
ZSTATUS----
>OPEN (for all new records)
Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
Table Updation rule (Status Update)
While updating a record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO----
>Sales order no in case of sales orderShipment no in case of transfer order
ZSTATUS----
>CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
The table handling function will calculate the following fields
Table field Probable Values
ZSTATDAT----
>System date
ZSTATTIME----
> System timeDo you have to create/update new record in Ztable through Function Module ?
or you need to write FM only for validation?
Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
Let me know clearly what exactly u need ?
Regards,
Kiran -
What is the Function MOdule that returns the fields in database table order
Hello Folks
I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
FAQ. Please search before posting your question.
Edited by: Suhas Saha on Oct 10, 2011 10:19 PMHi,
You can use this BAPI.
<b>BAPI_SALESORDER_GETLIST</b>
Reward if useful.
Regards,
Vimal -
CRM function module to update the attribute in the classification TAB of BP
Hi All,
Can any body let me know if there is any functionmodule to update the CRM function module to update the attribute in the classification TAB of BP tcode.
I have searched a lot i get FM to update the marketing attribute and not the attributes in the classification tab.
Thanks in Advance
Edited by: Sharath Kumar on Dec 2, 2010 4:48 PMFor material bom: CSAP_MAT_BOM_CREATE
and CSAP_ORD_BOM_CREATE for Order BOM.
Regards,
Ravi -
Hi All,
Can any one tell me is there any Remote function module to update the values of components in STPO table while creating Sales order BOM, Material BOM, and WBS BOM. For example I want to update the Spare Part Indicator for Item components based on Plant.
Please do the needful..
Regards
YathishHi Naren,
Thanks for ur reply,
The BAPI that you have gave is to update only Material BOM. But I want to Change and create spare part indicator for 4 BOM's, ie Sales Order BOM, Eqipment BOM and also Material BOM and WBS BOM.
Can u please shed some light on it,so that it would be helpfull to me.
Thanks
Yathish -
Hi All,
Can any one tell me is there any Remote function module to update the values of components in STPO table while creating Sales order BOM, Material BOM, and WBS BOM. For example I want to update the Spare Part Indicator for Item components based on Plant.
Please do the needful..
Regards
YathishFor material bom: CSAP_MAT_BOM_CREATE
and CSAP_ORD_BOM_CREATE for Order BOM.
Regards,
Ravi -
Function Module to update the FI and Logistics Invoice
Hi All,
Is there any function module which updates the FI and Logistics Invoice simultaneously?
Regards,
Adapala MFor material bom: CSAP_MAT_BOM_CREATE
and CSAP_ORD_BOM_CREATE for Order BOM.
Regards,
Ravi -
Function Module to update the sales order header status
Hi,
I am looking for a function module to update the Sales order header status.
Pls. let me know if anybody has used any FM to update the SO status.
Thanks,By mentioning status do you mean Object status or Document status??
For Object status you may use FM: STATUS_MAINTAIN
For document status it changes according to flow.
Regards
Eswar -
Bapi or function module to update rstgr field in bseg table
what is the bapi or function module used to update the fields in bseg table particularly "rstgr" field?
Hi,
Use Bapi
BAPI_ACC_DOCUMENT_POST
Regards,
Prashant -
Function Module to Update the Profit Center in Profit Segment of SO?
Hi,
I am updating the profit center with help of user exit in the sales order at the time of saving it. But my problem is it doesnt appear in the Profit Segment in the Account Assignment.
So if i go to the change mode of a Sales Order do some change and save it, the profit center get determined automatically. Now if one goes into the display mode of the same order and goes into Account Assignment of a particular item we can see that the Profit Center in the Profit Segment pop-up is not updated.
My question here is, is there a function module to derive/update the profit segment so all the details get updated in the user exit used to update the profit center?Hi Deepika,
Did you find any way to update the discount pricing in camapign.
Thanks,
Satya -
Function module to update the SPRPS field in infotypes
Hi Guru's
I m developed the workflow for personal data maintain in ESS with single approval. Employee can able to update his personal data and saved.
Now the workflow will trigger to HR for approval .Before the workitem send to approval i need to update the PA0002-SPRPS = X and after getting approval i have to remove the flag.
Is the any function module / BAPI to upadte PA0002-SPRPS = X.
Thanks,
Pasumpon KaruppaiahHello,
Use BAPI_PERSDATA_CHANGE with LOCKINDICATOR = 'X'.
Below are call sequence,
BAPI_EMPLOYEE_ENQUEUE
BAPI_PERSDATA_CHANGE
BAPI_EMPLOYEE_DEQUEUE
Regards,
Sameer -
Function module for updating the values in table VTTK
Hi,
I am working on a report in which I need to update the value of field tdlnr of table vttk for a particular shipment number. I need to do this using functional module and I am not been able to find one. If anyone knows answer to this plz help.
Thanks in advance,
Priyanka.As noted above, RETURN table must be supplied empty, it is for BAPI to return the messages back to the calling program. You simply need to define an internal table, pass it to BAPI as is and then analyze this table after the BAPI call. For example:
DATA: BEGIN OF it_return OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_return.
CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
<...>
TABLES
<...>
return = it_return.
LOOP AT it_return.
MESSAGE
ID it_return-id
TYPE it_return-type
NUMBER it_return-number
WITH
it_return-message_v1
it_return-message_v2
it_return-message_v3
it_return-message_v4.
ENDLOOP.
Hope this helps. -
BAPI or Function Module to Update the Alternative Payer (KNZA) of Customer
Hi Experts,
My client requirement is to update the Customer Permitted Alternative Payer during creation of BP
Would you please let me know the any BAPI or Fictional Module available to UPDATE the u201CPermitted Alternative Payer (KNZA)u201D of Customer Master.
iam trying SD_CUSTOMER_MAINTAIN_ALL function module, its failed to update the KNZA tables. please help to close the issue.
Thanks in Advance.
Venkatesh M.Hi Ravi,
Thanks for the quick reply.
The Function Module, what you are given is BTE. it will not trigger when creating of contract.
My Requirement is when creating the contract for the particular BP, we need to UPDATE the Alternative Payer of Customer.
Here i required BAPI or Function Module to change or Update the customer master Alternative Payer (KNZA).
Regards,
Venkatesh M -
Function Module to update the file path/name into Infopackage
Hi Experts,
I have some flat files which will be loaded to the directly daily. My requirement is to update the file name into the infopackage dynamically. Please suggest any function module or program for it.
Thanks,
KittuIn Higher versions, we can use the below code:
call method CL_GUI_FRONTEND_SERVICES=>ENVIRONMENT_GET_VARIABLE
exporting
VARIABLE = 'TEMP'
importing
VALUE = LV_TMP
exceptions
CNTL_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.
call method CL_GUI_CFW=>FLUSH
exceptions
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
others = 3.
if SY-SUBRC <> 0.
Error handling
endif.
concatenate lv_tmp '\' into folder_path.
But need to know in the lower versions like 3.1h and 4.0, -
Function module to update the classification of each of the devices 'IQ02'
Can any one please tell me if there is any Function module or BAPI that can be used to update the device classification details. I am referring to the classification details that are updated for each of the device serial numbers using Transaction 'IQ02'
Please see the following code
log initialization
CALL FUNCTION 'BAPI_LOG_INIT'.
do some initializations
CLEAR db_update.
create classification data
CALL FUNCTION 'CACL_OBJECT_ALLOCATION_MAINT'
EXPORTING
object_type = x_auto-header-object_type
class = x_auto-header-class
class_type = x_auto-header-class_type
STATUS =
STANDARD_CLASS =
DELETE_ALLOCATION =
CHANGE_NO =
I_OBJ_NOT_CHK = ' '
I_DATUV =
I_NO_DEFAULTS = ' '
TABLES
object_identification = x_auto-data
EXCEPTIONS
error = 1
warning = 2
OTHERS = 3.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_LOG_CLOSE'
TABLES
return = lt_return.
LOOP AT lt_return INTO wa_return WHERE type = 'E'.
mac_msg_putx co_msg_error wa_return-number
wa_return-id
wa_return-message_v1
wa_return-message_v2
wa_return-message_v3
wa_return-message_v4
space.
ENDLOOP.
RAISE input_error.
ENDIF.
* transfer validation data
CALL FUNCTION 'CACL_OBJECT_VALIDATION_MAINT'
EXPORTING
object_type = x_auto-header-object_type
class = x_auto-header-class
class_type = x_auto-header-class_type
CHANGE_NO =
I_OBJ_NOT_CHK = ' '
I_DATUV =
I_NO_DEFAULTS = ' '
TABLES
object_identification = x_auto-data
validation_maint = x_auto-value
EXCEPTIONS
error = 1
warning = 2
OTHERS = 3.
IF sy-subrc <> 0.
CALL FUNCTION 'BAPI_LOG_CLOSE'
TABLES
return = lt_return.
LOOP AT lt_return INTO wa_return WHERE type = 'E'.
mac_msg_putx co_msg_error wa_return-number
wa_return-id
wa_return-message_v1
wa_return-message_v2
wa_return-message_v3
wa_return-message_v4
space.
ENDLOOP.
RAISE input_error.
ENDIF.
* transfer to data base without commit
CALL FUNCTION 'CACL_CLASSIFICATION_SAVE'
EXPORTING
i_commit = ' '
i_no_upd_task = 'X'.
close internal log
CALL FUNCTION 'BAPI_LOG_CLOSE'
TABLES
return = lt_return.
set update flag if everything went well
db_update = 'X'.
Maybe you are looking for
-
Passing parameters into 11g agent (ibot) scheduled report/dashboard
Hi, Does anyone know whether or not you can pass in or set parameter values when scheduling a report or dashboard using 11g agents (ibots)? Thanks in advance Phil
-
I downloaded Java JDK, and when I tried to install it, it keeps giving me an error message. "Error 1311.Source file not found. C\Users\David\Appdata\Localow\Sun\Java\jdk1.6.0_18\sb160180.cab. Verify that the file exists and that you can access it" Co
-
Repetitive asking for password to access PSE12
I just bought Photoshop Elements 12 after having the trial version. I think I uninstalled the trial version (I think I was asked too) and now Adobe keeps asking me for my password, over and over and over. What am I doing wrong????
-
Content-Length missing in SOAP request
In Oracle Application Server, a SOAP request like : POST /eai_esn/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&WSSoap=1 HTTP/1.1 SOAPAction: "document/http://siebel.com/marketing/import:MktgImportServiceInvokeImportJob" User-Agent: Axis2 Host:
-
HI all, How to create Profile for CAT2 Tcode. when we execute the CAT2 tcode, we have a field Data Entry Profile. if we select F4 option for that it will display list of Profile.. i want to create a new profile.. how can we create