Functional Module for changing the field Reference Key 2 in Tcode FB02
HI,
I have a one requirement to change a field Reference Key2 (XREF2) in transaction FB02. This field appears in FB02 during (refer steps below):
u2022 In Initial screen after entering the Document Number, Company code & Fiscal Year then click on u201CEnteru201D
u2022 In next screen double click on u201CAccount u201C
u2022 In next screen click on u201CAdditional Datau201D. We will get a pop-up window where the field Reference Key2 (XREF2) is there.
We want to change this value of this field. Kindly let me know any Function Module available for this or any other suggestion.
Regards
Naga
I don't know any such BAPI/FM (alas, many threads already) so i suggest you to use SHDB to build a batch input. FI_ITEMS_MASS_CHANGE should not solve your problem.
Regards
Similar Messages
-
Function module to change the reason code for status in a Opportunuity/lead
Hi,
What is the function module to change the opportunity reason. I was able to change the status using the crm_order_maintain but How can I change the reason for that opportunity.
Thanks
naveenYou can use CRM_ORDER_MAINTAIN and populate the parameter IT_SERVICE_OS
or use BAPI_OPPORTUNITY_CHANGEMULTI and populate the parameter SERVICE_OS.
BR,
Florin -
Function module which changes the Storage Unit (SU) Block Data like LS32
Hi,
Is there any Function module which changes the Storage Unit (SU) Block Data as done in LS32.
Thank you,
Prashanth A.Hello Pablo.
Yes we did run LT04 and it does encounter that same error message after clicking the Stock Removal button. But eventually error msg will be removed by entering the value at the Storage Unit Type field because it directly fills in LTAP-LETYP.
We have resolved that the function module will not really fill the desired Storage unit type therefore TO background creation is not feasible in our scenario (non-SU managed transfer to SU-managed storage type). And I found this thread too: http://scn.sap.com/thread/1947358
So issue is still open but we have considered of changing the process since this is still just a new scenario for us.
Thanks a lot for your inputs! -
Function Module for Changing delivery date
Hi Friends ,
I am held up with a scenario of changing the delivery date while creating purchase order. Could you please suggest any function module to change the delivery date in purchase order if it is less than 5 days.
With Regards ,
Sudhir S
Moderator message: please do some own research before asking.
Edited by: Thomas Zloch on Feb 21, 2011 11:45 AMHi praveen for u r requirement there is no need of any FM
Try this code
parameters:
p_date like sy-datum,
p_no type i.
data:
w_date like sy-datum.
w_date = p_date - p_no.
write: / w_date .
it is enogh for u r requirement
plzz reward if it is usefull...
for any further quiries my mail id is [email protected]
plzz dont forget to reward -
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 -
Function Module to change the master data attachments?
Dear Experts,
In SAP we can enclose the attachments for the Master data. Do we have any standard function module to change the Master data attachments.
Let me know if any?
Thanks and regards,
ReddyHi Reddy,
Please make use of function module :
BINARY_RELATION_CREATE_COMMIT
For detailed information on how to use the FM please see the thread below:
USE OF THIS fUNCTION MODULE
Regards,
Dilek A. -
Function module to change the address on the business partner in SAP-ISU.
Can some one send me the function module to change the address of businees partner in SAP ISU.
Hi,
The FM you are looking for is BAPI_BUSINESS_PARTNER_CHANGE
You can use the table PARTNERADDR to fill the Address of the Partner.
Hope this helps. -
Function Module to change the user status of a business transaction
Hi,
I want to change the user status of a business transaction. Plz let me know if there is a function module to change the user status.I found some FMs.
- CRM_STATUS_MAINTAIN_OW
- BBP_PROCDOC_STATUS_CHANGE_DIRE
- CRM_ORDER_CHANGE_STATUS
But these FM says that it has to be used for changing system status.
Thanx,
Sivagami.Rhi Siva,
here is some sample code :
data :
ip_guid type crmt_object_guid,
ls_status type crmt_status_com,
lt_status type crmt_status_comt,
ls_input_field type crmt_input_field,
ls_input_field_names type crmt_input_field_names,
lt_input_fields type crmt_input_field_tab,
lt_obj_guids type crmt_object_guid_tab,
ip_guid = <your guid>.
ls_status-ref_guid = IP_GUID.
ls_status-ref_kind = 'A'.
ls_status-status = lv_newstat.
ls_status-user_stat_proc = 'ZCRMCOM1'.
ls_status-activate = 'X'.
INSERT ls_status INTO TABLE lt_status.
ls_input_field-ref_guid = IP_GUID.
ls_input_field-ref_kind = 'A'.
ls_input_field-objectname = 'STATUS'.
ls_input_field_names-fieldname = 'ACTIVATE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE lt_input_fields.
ls_input_field_names-fieldname = 'STATUS'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE lt_input_fields.
insert IP_GUID into table lt_obj_guids.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_status = lt_status
CHANGING
ct_input_fields = lt_input_fields.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lt_obj_guids
EXCEPTIONS
OTHERS = 2.
COMMIT WORK.
please award points if helps
cheers -
Any function module to change the mode in Planning board
Hi guys,
Is there any function module to change the mode in Planning board?
I would like to call a custom screen to to chagne the mode since the strandard function cannot show enough info.
Thanks.Thanks Bhanu for ur quick reply.
Is that enough to change the technical name in the table RSZCOMPDIR.
Let me give some more information, idea is to change the technical name of all the queries present in a system based on a new naming conventions.
Eg.
Change all the technical name of queries ZQSAP to ZQXYZ.
If there is function module which allows to change the technical name of the queries that not only updates the table RSZCOMPDIR but also all the interlinked tables. -
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 -
Function module for converting the foreign currency to words
hi,
can anybody tell me about the function module for converting the foreign currency to words format.
Like 25.50 USD
should be "Twenty Five Dollar & Fifty Sents."
foreign currency can be anyone like USD, JPY, EUR etc.
Regards
Nitin VarshneyHi,
Try using the FM SPELL_AMOUNT
Check this wiki
[SPELL_AMOUNT|https://wiki.sdn.sap.com/wiki/display/Snippets/SpelltheAmountenteredin+words]
Regards
Sarves -
Function module for displaying the location
Hi,
Could anyone tell the Function module for displaying the location in our system without a file name while downloading, when the user press f4.
thanks* read the default pathname on application server
call function 'FILE_GET_NAME'
exporting
* CLIENT = SY-MANDT
logical_filename = lc_logical_filename_ftappl
operating_system = sy-opsys
* parameter_1 = ' '
* PARAMETER_2 = ' '
* USE_PRESENTATION_SERVER = ' '
* WITH_FILE_EXTENSION = ' '
* USE_BUFFER = ' '
importing
emergency_flag = l_emergency_flag
file_format = l_file_format
file_name = l_file_name_ftappl
exceptions
file_not_found = 1
others = 2. -
Function module to change the date format
hi guys
is there any function module to change the date format
from 08/28/2007(mm/dd/yyyy)
to August 28, 2007.
regards
vamsihi vamsi.,
Use CONVERSION_EXIT_SDATE_OUTPUT to get the month name,
but it will give short form of the month name.
if you want <b>long description of the month</b>,
use this peice of code.
PARAMETERS: V_DATUM(07) TYPE C. "(example input:12-2007)
DATA: V_MON(2) TYPE C,
V_YEAR(4) TYPE C,
V_MONTHNAME(10) TYPE C,
V_FULLDATE(30) type c.
WRITE V_DATUM+0(2) TO V_MON.
SELECT SINGLE LTX FROM T247 INTO V_MONTHNAME
WHERE SPRAS = SY-LANGU
AND MNR = V_MON.
CONCATENATE V_MONTHNAME v_datum+3(4)
INTO V_FULLDATE SEPARATED BY SPACE. "(example output : December 2007)
write: v_fulldate.
<i><b>Reawrd points if useful</b></i>
Chandra -
Standard function module for checking the sales organization and plant
Hi all,
Does have standard function module for checking the relationship between sales organization and plant?
Thanks a lot!
Ninahi
good
check these BAPIS
BAPI_SALESGROUP_GET_DETAIL Sales Group: Display Name
BAPI_SALESOFFICE_GET_DETAIL Sales Office: Display Name
BAPI_SALESOFFICE_GRP_EXIST Sales Office / Sales Group: Existence Check
BAPI_SALESORG_EXIST Sales Organization: Existence Check
BAPI_SALESORG_GET_DETAIL Sales Organization: Display Data
BAPI_SALESORG_OFFICE_EXIST Sales Organization / Sales Office: Existence Check
PLANT=>
BAPI_PROMO_GETSITEPLANNING Detailed Data for the Plants Involved in a Promotion
thanks
mrutyun^ -
Function Module for Posting the Delivery Doument
Dear Experts,
Could you please send me the Function Module for Posting the Delivery Doument.
Thanks & Regards,
Ashok.Hi,
What do you mean by POSTING the delivery document?
Are you mentioning the creation of Goods Issue?
Maybe you are looking for
-
Hi , I am using SQL Developer 1.1.0.23. In this I was trying to use Query Builder. In this I am facing one problem. In our company, we are provided with the view_only schema which are having access to all the objects. Now while using Query Builder, I
-
All of my adobe docs now show up as white items instead of the regular red pdf doc they used to show up as. When I double click on the pdf doc, it opens in the web browser, however, I cannot view the doc from the browser either.
-
SEM_CONTAINS and rulebases
Hi, How do I perform a query using SEM_CONTAINS making use of rulebases? Thanks.
-
Question About Unsupported Excel Function Workarounds
Hi everyone! I hope this is ok to post something like this here. I haven't seen any rules against it so I am hoping I am able to. My apologies in advance if this is something I should ask in another location. My question / issue is in regards to the
-
3560g router, old 12.2 IOS - updating
So i have this older router which has probably never had the firmware updated. Apparently the release is up to 15.x.x and I should update this firmware has we have some issues and I need to eliminate this as one of the possible causes. Since I am go