Function Module for creating file name in Application Server
Hi Guys,
Can you suggest me a function module to generate a file name for a flat file to be save on application server using DATASET.
Required filename format : <table name >.<times tamp>.TXT
Thanks in advance.
Hi,
Please try this ...
DATA: BEGIN OF FILE1,
CONST1(01) TYPE C VALUE '_',
FIELD1 LIKE SY-DATUM,
CONST2(01) TYPE C VALUE '_',
FIELD2 LIKE SY-UZEIT,
END OF FILE1.
DATA: FILENAME LIKE EDI_PATH-PTHNAM.
MOVE SY-DATUM TO FILE1-FIELD1.
MOVE SY-UZEIT TO FILE1-FIELD2.
CONCATENATE <table name> FILE1 INTO FILENAME.
Regards,
Ferry Lianto
Similar Messages
-
Function Module for creating Functional Location BOM and Equipment BOM
Hi All,
Is there any function module for creating and changing Functional Location BOM and Equipment BOM ???Hi,
Tables for Eq., BOM: EQST, STKO, STPO.
Tables fro Fun., Loc., BOM: TPST, STKO, STPO.
You can use FMs: CS_BOM_EXPL_TPL_V1, CS_BOM_EXPL_EQU_V2 & CS_BOM_EXPL_MAT_V2 for extracting the appropriate BOM related data.
And for the Alternatives please check the customizing or check with your respective Module experts for the appropriate configuration.
Hope this helps.
Best Regards, Murugesh AS -
Are there BAPI or function modules for creating posting address ?
Are there BAPI or function modules for creating posting address and budget address? We are currently use BDC program and T code FMBSPO_MULT (Posting address) and T code FMBSBO_MULT(budget address), but it is a very slow processing because we have thousands of funds centers.
Your input will be appreciated!
Regards,
Fisher LiLi,
You will have, may be more answers in the technical forum :
https://www.sdn.sap.com/irj/sdn/collaboration
Regards
Valérie -
Function module for uploading file in background
hi friends
i am working on Inbound IDOC interface where in which i am creating a function module for that,
in which based on the idoc received , the interface has to choose the file from the shared folder and it has to move its contents to an internal table
can anybody suggest me what function module can i use.
we cant use GUI_upload,or cl_gui_frontend_services=>gui_upload
because this requires an user to interact in mines it is not the case
thanks in advance
with regards
s.janagarhi,
check this thread,you will get idea how to transfer data from file to internal table.
[https://forums.sdn.sap.com/click.jspa?searchID=17706879&messageID=6281020] -
Function Module for creating condition record (XKOMV table record)
Hi,
I have a requirement as like below,
In the repair order i need to sum the GRWR condition type's conditional values for all the line items (Except deliverable line item) and then i need to create an condition type GRWR under the deliverable line item with the above calculated conditional values,
the table XKOMV will be having details about all the line item's condition types, in this table i need to add one more new record with the condition type of GRWR and the above calculated conditional values under the deliverable line item.
for the above logic i am using the user exit
USEREXIT_SAVE_DOCUMENT_PREPARE
All the above things need to be done when the user click the save button in the transaction (VA01/VA02).
Problem here is table XKOMV contains somany fields so manually we can't create xkomv record, is there any Function module to create condition type record?
Regards,
Manikumar
Edited by: Manikumar Shanmugam on Mar 8, 2008 3:53 PMHi,
You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
Regards
Kiran Sure -
L_TO_CREATE_DN function module for creating TO for a delivery
Hi,
I am using L_TO_CREATE_DN function module to create a TO for a delivery and it is working fine as long as the HU, I am picking has quantity less than the delivery quantity or equal to delivery qty. But whenever I try to pick a HU whose qty is little more than the delivery quantity, its throwing an error. Also, there is tolerance set on the delivery line item (and the qty I want to pick is within the tolerances). When I am trying to do it manually using LT03, it throws a popup about conversion error and is creating the TO taking the rouding into account. Here is the example of the above scenario.
Delivery Qty = 1300 LB (pounds, base unit of measure)
Alternate Unit of measure for this material is Roll (RL)
I am trying to pick a HU which is 1350 LB.
Manual Case : When I use LT03 it throws a popup (saying conversion error) and accepts only
0.963 RL which is equal to 1300 LB and creates a TO. when I see the delivery after creating the TO, the picked qty is 1300LB.
Function Module : When I use the function module, it does throw me the same popup but does not create the TO. Rather it throws an error "Available quantity in bin is zero".hi , it will create only 1 TO with multiple line items
CALL FUNCTION 'l_to_create_multiple'
EXPORTING
i_lgnum = ls_9001_scrn-lgnum
i_bwlvs = lc_bwartwa
i_bname = sy-uname
IMPORTING
e_tanum = ltak-tanum
TABLES
t_ltap_creat = li_ltap_creat
ls_9001_scrn-lgnum = warehouse number
lc_bwartwa = movement type
li_ltap_creat = itab containing the line items with diff material
Just check if it helps
Thanks -
BAPI/ Function Modules for creating Settlement rules for Project in CJ01 .
Hi Experts ,
I need to create Settlement rules for WBS elements in Projects . Please let me know if there are any BAPI or Function Modules for the same . The Function Modules "k_settlement_rules_update" , "IBAPI_ALM_ORDERSRULE_CREATE" & 'K_SRULE_CREATE'
are in "Not Released" status . so our practices does not allow us to use them .. please suggest any other BAPI or FM for creating Settlement rules .
Thanks in advance ...
AnilHi ,
Thanx for ur prompt reply , This function module is used for creating WBS elements . I didnot find any parameters or process to create settlement rule .. Please let me know how to use this or if there are any other BAPI available .
Thanks
Anil -
Function Module for creating order in CRM
Hi ,
I want to create order in crm. i have tried the function module given in SDN but all are for R/3. I have tried BAPI_SALESORDER_CREATEFROMDAT and CRM_SERVICE_ORDER_CREATE , L_TO_CREATE_MOVE_SU but all are for R/3. So please tell me function module which create order in CRM.
Thanks
AbhiieshSales Order
BAPI_BUSPROCESSND_CREATEMULTI->BAPI_BUSPROCESSND_SAVE and BAPI_TRANSACTION_COMMIT must be used.
CRM_ORDER_MAINTAIN-> CRM_ORDER_SAVE and COMMIT WORK must be used.
check this report program in se38
CRM_TEST_ORDER_MAINTAIN
Regards,
Keshav -
Function module for creating Transport Request in 4.7
Hi All,
Can anyone let me know how to create a Transport request for an object programmatically....
I am using the function module TRINT_ORDER_CHOICE but that just gives me the transport request number but does not assigns it to the object which I mention in that function module.
Please let me know the function module which will assign the transport request to the given object....
I am using SAP 4.7 version
Thanks,
SiddarthRe: FUnction Module to create development request automatically
-
Function Module for creating ASSET MASTER
Hi,
Is there any function module for asset master creation.
transaction AS01.
Regards,
Neslin.hi. this is the wrong forum for your question. try to identify the correct forum for your questions please. It'll help you to get good quality answers.
Anyway, what about ASSET_MASTERRECORD_MAINTENANCE and CREATE_ASSET of function group AIST or some custom function module based upon these?
anton -
ABEND while creating file in the application server
Dear All,
Please provide the solution for the following.
REPORT ZMAIN.
SELECT BKORM UP TO 1000
EXTRACT ext.
ENDSELECT
Imagine, now the extract file having 1000 Entries
Reading the above EXTRACT file
LOOP .
submit ZSUB.
ENDLOOP.
End OF Main Program----
REPORT ZSUB.
SELECT BKORM UPTO 500
EXTRACT ext.
ENDSELECT
Here for each submit of the ZSUB, it is creating one EXTRACT file in the application server. When it reaching to create 999, it is going for ABEND.
Can anybody provide the solution to avoid going for ABEND .
Is there any restriction to create extract files in the applciation server?
Thanks in advance.Instead of select/endselect, try to use a loop with internal tables..
There's no limit in the extracts you can do..
<removed by moderator>
Edited by: Thomas Zloch on Nov 2, 2010 5:20 PM - please do not ask for... -> Ok
Edited by: Roberto Vacca on Nov 2, 2010 5:29 PM -
Function module for logical file path and name
Hello all,
I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
Regards,
AnyiPlease check the FM FILE_NAME_GET.
CALL FUNCTION <b>'FILE_GET_NAME'</b>
EXPORTING
logical_filename = 'ZDELCHKREP'
parameter_1 = it_cntry-cntry
IMPORTING
file_name = l_file
EXCEPTIONS
file_not_found = 08.
CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b> EXPORTING
logical_path = 'ZDELCHKREP'
file_name = l_file
IMPORTING
file_name_with_path = l_file.
Message was edited by: Anurag Bankley
Message was edited by: Anurag Bankley -
How to create function module for getting customer name
Hi Experts,
How to create function module? when in import parameter kunnr values to be passed it must give name1 details according to the customer number...
how to write the logic in source code....
Regards,
Thiru. R1. First of all create function group.
2. Create function module using this function group.
3. If only one kunnr is needed at a time, create import parameter for it. But if many kunnr to be entered at a time,use table.
4. Fetch name1 for each kunnr from KNA1 table.
"->> if many kunnr
if not t_kunnr[] is initial.
select kunnr as kunnr name1 as name1
into table t_kunnr_name1
from kna1
for all entried in table t_kunnr
where kunnr = t_kunnr-kunnr.
endif.
sort t_kunnr_name1 by kunnr name1.
delete adjacent duplicates from t_kunnr_name1 comparing kunnr name1.
table t_kunnr_name1 will contain kunnr and its name1.
I hope logic is clear for you now.
Regards,
Aparna -
ABAP Function Module for Output File Compression of HTML file
We would to compress a HTML file that is created during a daily batch run so that it can be sent to the concerned users by email.
THerefore we are looking for a Function Module and code that can do this for us.
Please help.
You can contact me at [email protected]
Thanks.
Suresh RaoWe would to compress a HTML file that is created during a daily batch run so that it can be sent to the concerned users by email.
THerefore we are looking for a Function Module and code that can do this for us.
Please help.
You can contact me at [email protected]
Thanks.
Suresh Rao -
Function module for create outbound delivery
Hi,
Can any one pls tell me the BAPI function module name for create outbound delivery with order reference.
Regards,
MahiHi
This is the BAPI for creating Delivery with Sales Order Reference.
You can use the BAPI <b>BAPI_DELIVERYPROCESSING_EXEC</b>
Check this sample code..
PARAMETERS: p_vbeln LIKE vbak-vbeln.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
END OF t_vbap.
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
SELECT vbeln posnr kwmeng matnr werks
INTO TABLE t_vbap
FROM vbap
WHERE vbeln = p_vbeln.
LOOP AT t_vbap.
t_request-document_numb = t_vbap-vbeln.
t_request-document_item = t_vbap-posnr.
t_request-quantity_sales_uom = t_vbap-kwmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_vbap-matnr.
t_request-plant = t_vbap-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
COMMIT WORK.
READ TABLE t_created INDEX 1.
Write: / t_created-document_numb.
REWARD IF HELPFUL.
Maybe you are looking for
-
Adobe Bridge Search Tool Just Stopped Working
i recently upgraded to CS6 and all was well for a couple weeks then all of the sudden the search tool in bridge just flat out stopped working. i always used it to search for keywords and it worked almost flawlessly until today. i have thousands of ph
-
Java regular expressions using enum
Hi, i have created an enum called MONTHS and would like to include it in a pattern. Can somebody give me a hint on how to do that? Should i do it manually (by creating a string like [Jan,Feb...]) or is there a better way? Thanks
-
SQL Server Compression and Proportional Fill
Our SAP databases are on SQL Server 2012 I am sure you are familiar with proportional fill, we did a major reorg of our SAP databases to ensure this and also to distribute the database over multiple files to be able to take care of many CPU cores we
-
I can not find iPhoto now. It had a question mark on it. I tried moving to another spot in the dock and mistakenly tossed it off the dock and it has disappeared. I can't find it anywhere. How do i get it back
-
Lots of frustrations with iTunes...please help?
I've had my iPod for forever[it's a mini..i'm not sure how many GBs...maybe 2? 4? It holds 1,000 songs ;)], and just recently I got it working again. I reset it, because I wanted to completely start over with adding songs to it. I updated everything