Alternative of FM ADDR_GET as it is an unrealesed function module
Hi all,
I am using the function module ADDR_GET for getting the vendor address . But my code did not pass the Peer code review as this FM is an unreleased one .
Can anyone suggest any alternative for the FM ADDR_GET which has the same functionality.
Thanks and Regards,
Syed
hi,
try:
FM: ADDR_GET_COMPLETE
TYPE-POOLS: szadr.
DATA adr_kompl TYPE szadr_addr1_complete.
DATA adr1 TYPE szadr_addr1_line.
DATA adtel TYPE szadr_adtel_line.
DATA admail TYPE szadr_adsmtp_line.
DATA adfax TYPE szadr_adfax_line.
CALL FUNCTION 'ADDR_GET_COMPLETE'
EXPORTING
addrnumber = AUFK-ADRNRA
IMPORTING
addr1_complete = adr_kompl
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
internal_error = 3
wrong_access_to_archive = 4
OTHERS = 5.
*read Adress
READ TABLE adr_kompl-addr1_tab INTO adr1
WITH KEY data-date_to = '99991231'.
Similar Messages
-
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 -
Alternative for STRING_CENTER function module
Hi,
Can any one give me the Alternative for STRING_CENTER function module.
it is there in 4.7 when i am using the same in ecc 6.0 it is giving as absolute statement .
Please give the solution for this.Hi,
C147_STRING_SPLIT_AT_POSITION
STRING_SPLIT
STRING_SPLIT_AT_POSITION
check this sample code
DATA: text(10) TYPE c VALUE '0123456789',
text1(6) TYPE c,
text2(6) TYPE c.
PARAMETERS position TYPE i.
CALL FUNCTION 'STRING_SPLIT_AT_POSITION'
EXPORTING
string = text
pos = position
IMPORTING
string1 = text1
string2 = text2
EXCEPTIONS
string1_too_small = 1
string2_too_small = 2
pos_not_valid = 3
OTHERS = 4.
Regards -
Alternative for Function module 'F4_CHOOSE_MCID' in ECC 5.0?
Hi,
Can any one tell me the Alternative for Function module <b>'F4_CHOOSE_MCID'</b> in ECC 5.0?
Helpful answers will be rewarded.
Thanks
KiranHi,
Please use this FM UMC_NOTIF_SEND_EMAIL to send an email in ECC 5.0.
Regards,
Ferry Lianto -
Alternative for Function module 'IDOC_CONFIGURE_0001'
Hi,
Can anyone tell me the alternative for Function module <b>'IDOC_CONFIGURE_0001'</b>. This is obsolute in ECC 5.0
Thanks
KiranHi Kiran,
Please try this FM.
DDIF_FIELDINFO_GET
Regards,
Ferry Lianto -
Alternative Function module in ECC 6.0
Hi,
The function module FI_DOCUMENT_ARCH_JUMP_HEAD_SGL and FI_DOCUMENT_ARCH_READ_DETAILS is available in 4.6c but is not available in ECC 6.0.
I have to import a progam from 4.6 to ECC 6.0.with uses this function module .
Please let me know alternative function module in ECC 6.0
Thanks
DeepaThat's why it's never recommended to use the FMs that have not been released to the customer... You might be able to copy FMs as Z... objects from 4.6 into ECC 6.0. However, it's possible that underlying functionality has changed a lot and it just won't work.
Instead of asking for a replacement FM you might want to explain what exactly you're trying to achieve, then someone might be able to provide an alternative (not necessarily an FM). -
Function module ''ADDR_GET"
Hello,
I am working on a program which uses the function module 'ADDR_GET' which imports 'SADR' ( Company Data ).
The structure SADR contains a field SPRAS (Lnaguage key) which is no where in the whole function module gets filled up.
Just because SPRAS not getting filled up I am having further issues in the program which is using this function module.
not sure why there isnt any code in ADDR_GET to fill SADR-SPRAS. Anyone had the same issue before or anyone with ideas please help..Hi Ramesh,
Did you try passing manually the language key and test your scenario even if you dont get the spars
field. When i check there are conversion routines for that but i dont think conversion routine is an issue here but.
I would suggest to put a break point in Function module and debug and see whats heppening.
Thanks,
Pradeep. -
Alternative of Function module NAMETAB_GET
Hi all,
Our equirment is to find the list of all field from a DDIC structure supply as input.
For this we are using NAMETAB_GET.... but the function module seems obsolute....
Can anybody please suggest a Function Module to find the list fileld of a DDIC structure as input.
AnirbanHi,
You can use FM DDIF_FIELDINFO_GET which gets the table structure with all INCLUDEs (or APPENDs) resolved. It is quite good documented.
Regards, Gerd Rother -
BAPI For listing alternative routing with sequence details.
Dear all,
I want to use BAPI For listing alternative routing with sequence details.
Pl' tell BAPI function Module for routing .
Thanks.I am not sure ,but check with BAPI_ROUTING_CREATE
-
Move file to application server or delete a file from application server
Hi all
I have one application in which if succeful uploading of BMP file from application server is not done , File has to move to another folder like 'ERROR' Folder
but i am unable to do that.
here is the code:
CONDENSE g_t_ws_move.
CALL 'SYSTEM' ID 'COMMAND' FIELD g_t_ws_move
ID 'TAB' FIELD g_t_ws_command_line[].
where
<b>G_T_WS_MOVE= 'MOVE /Y /sapin/XVZ/journeyplan/0000000.BMP /tmp/0000000.BMP'
means i have to move 000000.bmp file from XVZ to tmp directory ,</b>Hello Neetu
Alternatively you could use a combination of the following function modules:
- EPS_FTP_PUT
- EPS_DELETE_FILE
Regards
Uwe -
How to use the cases in button action?
Hi Experts,
I want to get a prompt message if the field is empty.I got it but at the same time if the field is filled I want the other action to be performed that is to call a BAPI and give me output.How can I give two events for the same action.
How to use the cases in button action?
So, please guide me.Urgent need
Regards
NutanHi Nutan,
if I understand you, then you have a simple validation. Therefore you can use the validation functionality of VC for your components. An alternative could be by writing a new ABAP RFC function module like:
BAPI Input parameters as input and BAPI output parameters as output and an additional return code or string for a message:
IF I_FIELD IS INITIAL.
E_RETURN_CODE = "THE FIELD IS EMPTY."
ELSE.
CALL FUNCTION <YOUR_BAPI>
<BAPI PARAMETERS>
ENDIF.
I hope that helps.
Best Regards,
Marcel -
Need to Post Components in Production Order in MB1A through BAPI as Planned Good Issue
Hi ,
I have created a Program to upload data s for MB1A through BDC , it works fine, but for huge data s it takes more time. alternatively created one more Program which updates through BAPI Function Module "BAPI_GOODSMVT_CREATE". It works fine , but one issue noted, after posting through Function Module , components are posted as Unplanned Goods Issue. I need to post the components as " Planned Goods Issue" instead of "Unplanned Goods Issue " . This can viewed through Tcode : C003
Below are the inputs passed for BAPI Function Moduel
**&------Header Contents of bapi Upload-------------------&*
header-pstng_date = sy-datum. " Posting date
header-doc_date = sy-datum. " Document Date
header-header_txt = '000001002280'. " Header text
header-pr_uname = sy-uname. " User Name
header-ref_doc_no = '000001002280'. " Header Ref. Doc. No.
CONCATENATE sy-uname sy-uzeit c_method INTO header-ref_doc_no_long SEPARATED BY '-'. " Refer Text
*Item Data
wa_item-material = '000000000010000800'. "Material
wa_item-plant = '3910'. "Plant
wa_item-stge_loc = 'WIP'. "Storage Location
wa_item-move_type = '261'. "Movement Type
wa_item-entry_qnt = '1'. "Quantity
wa_item-entry_uom = 'PC'. "Unit
*wa_item-res_item = 1. "Reservation Item
*wa_item-reserv_no = " Reservation Number
wa_item-batch = '0000011027'. "Batch No
*wa_item-mvt_ind = 'F'. "Movement Indicator
*wa_item-stck_type = 'F'. "Stock Type
wa_item-orderid = '000001002260'. "Order ID
wa_item-prod_date = SY-DATUM.
*wa_item-GL_Account = '610000'. "GL Account
*TRANSLATE wa_item-batch TO UPPER CASE.
*APPEND wa_item TO it_item.
c_code = '03'.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = header
goodsmvt_code = c_code
TABLES
goodsmvt_item = it_item
goodsmvt_serialnumber = it_sno
return = return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
commit work and wait.
Even i tried to pass "Movement Indicator , GL Account etc" , Still not able to fix the issue. Can anyone suggest how to post the Production Order components as "Planned Goods Issue". I am not sure any other values to be password.
BR,
MuraliI have made something like your :
* Alimtentation de la BAPI de mouvement de stock MM.
move : sy-datum to ls_header-pstng_date ,
sy-datum to ls_header-doc_date ,
* Indique le code mouvement
'03' to lw_code. " 03 normalement, mais je veux que ca plante
loop at lt_ltap
into ls_ltap.
move : ls_ltap-matnr to ls_item-material ,
ls_ltap-werks to ls_item-plant ,
ls_ltap-lgort to ls_item-stge_loc ,
'261' to ls_item-move_type ,
ls_ltap-vsolm to ls_item-entry_qnt ,
ls_ltap-meins to ls_item-entry_uom ,
i_ltak_vb-benum to ls_item-orderid ,
i_ltak_vb-rsnum to ls_item-reserv_no ,
ls_ltap-rspos to ls_item-res_item ,
ls_ltap-rsart to ls_item-res_type.
append ls_item to lt_item.
clear ls_item.
endloop.
I have to put the reservation number to have it works.
Fred -
How to Mask URL in Smart forms
Hi,
i wanted to mask the URL in my smartform so that it is concise and readable, like suppose url is like this http://www.myurl.com/pages/abcd&attr=19093 i wanted to create text which is something like click here on clicking click here it should take me to the desired page which the above mentioned URL ( http://www.myurl.com/pages/abcd&attr=19093 ) actually navigates.
How can i achieve this Smart forms??
Please suggest
Edited by: kranthi kumar on Oct 29, 2010 12:56 PM
Edited by: kranthi kumar on Oct 29, 2010 12:59 PMHi Aidan,
Thanks for your answer, Just got an alternative solution, when i got XSF output from smartform function Module, the same XSF output (me->sf_job_output-xmloutput-trfresult-content) i used in below method to convert to string.
CALL METHOD cl_hrrcf_cs_sf=>convert_xsf_html_to_txtstring
EXPORTING
content = me->sf_job_output-xmloutput-trfresult-content
IMPORTING
html_string = me->doc_properties-output_c
html_tab = me->doc_properties-output_c_tab.
later i realised that URLs in the smartform has got corresponding HTML code as below in the (me->doc_properties-output_c_tab).
<a href="https://www.google.com">
<span>
https://www.google.com
</span>
</a>
when i changed the link in the debugger https://www.google.com which was inside
<span> </span>
to "Click Me", the output was as i expected in the E-Mail which showed me Click Me and when i click that it took me to google web site.
so i decided that i would change this table(me->doc_properties-output_c_tab.) for every URL in code, though it did not seem like right solution, as suggested in this forum there is no straight solution for this, i have no other option.
Please comment.
Thanks,
Kranthi.
Edited by: kranthi kumar on Oct 29, 2010 9:43 PM
Edited by: kranthi kumar on Oct 29, 2010 9:44 PM -
Extract logic/tables/sequence?
Hello,
I'm curious about the sequence in which different kinds of extraction take place leading to data loading into the BW system (either master- or trans. data).
Is this a correct assumtion:
1. Masterdata: during execution of the info package, the function module (alternatively, a view is used as source and no function module is needed) of the called data source goes into the source tables (ex. MARA), returns the data via the rules of the extract structure (incl. appends/user exits).
2. Trans. data init:during execution of the info package, the function module (alternatively, a view is used as source and no function module is needed) of the called data source goes into the source tables (GLPCA), returns the data via the rules of the extract structure (incl. appends/user exits). After the load, a delta table is generated. Within f.e. SD, you have to generate and fill a setup table in order to be able to load th init.
3. Trans data delta: new postings are added to the delta table (in PCA this happens automatically while in f.e. SD, you have to schedule this procedure) from which the new postings are fetched (via function module or view) on execution of the info package in BW.
Is this the way it works in general? Are there any good documents on this topic? Please mail to [email protected]
Regards,
F C
Message was edited by:
F C1. For master data like material, the exractors behave all most the same way.
2. For transaction data, it is diferent for LO comapred to non-LO extractors. for LO transaction data, there are some extra steps you need to do like fillng the set up tables, choosing a delta method, V1,V2, V3.
3. For delta, like I said in 2 above, it is slighly different for LO extractors.
There is lots of info on this subject in SDN. Search with key word LO or cockpit will be very useful.
Ravi Thothadri -
Radio buttons in function module.
Hi,
I have developed a function module which internally calls abap report with SUBMIT command. However, the abap report has radio buttons on selecton screen. So I would like to know how to define radio buttons in function module or is there any alternative to overcome this problem?
ABAP code in function module :
submit zodmr_report with p_vkorg = bukrs
with s_off in vkbur
with s_vtweg in vtweg
with s_spart in spart
with s_dsa in dsa
with s_ext in allocation_id
with p_yyyymm = year_month
and return.
( ABAP report "ZODMR_REPORT" has two radio buttons)
Regards,
SantoshHi,
To the best of my knowledge you need to create an IMPORT parameter of type SY-DYNNY And pass your selection screen to the FM. If this will not serve your purpose, then Instead of Standard Selection Screen with number 1000, use custom defined Screen number.
Cheers
Ram
Maybe you are looking for
-
Can I connect multiple Mac's using the Airport Express?
As subject. I have got an Intel iMac and a MacBook. Can I connect them using the Airport Express? Or in another word, to create a network among them that I can see the other Mac on one Mac? Sorry, if I raised a silly question. But really like to know
-
Moving the TM backupdb folder to another drive
I would like to move my TM backups (Backups.backupdb folder) to a larger drive and have everything proceed as normal. Both my internal drive and an external drive are currently being backed up by TM. Is this directly supported, i.e.: (1) Turn off TM.
-
Age analysis for customers and vendors
Hi All, i needs to create an age analysis report on customers and vendors (0FIAR_C03), analysis could be done on <30 days, >30 days,>60,>90,>120 days , i needs to calculate these based between netdue date for payments and system date. any one can giv
-
Looping Quicktime Movies in Keynote & Keeping them Looped when Rendered
Okay I have a quicktime movie that I am using as the background of my slide show. I have text fly in and out over the movie. I can get the movie to loop when I view the slideshow but when I try to export the slideshow to Quicktime the Background quic
-
How can I add a non icloud email address to icloud
how can I add a non icloud email addres to icloud