Funtion Module IDOC_INPUT_INVOIC_FI help
I am trying to post an inbound 810 using FM IDOC_INPUT_INVOIC_FI and I keep getting the follwoing error message F5 566 - Specify a Tax Jurisdiction Key. I am using IDOC Type INVOIC01 and I am populating the E1EDK04 and E1EDP04 records. I have entries in OBCA, OBCB, OBCD, and OBCE. Can anyone point me in the right direction as to what I am missing in my IDOC?
Hey Mazurek,
Can you please update this thread with the solution? Iu2019m having the same issue.
Since your thread is not too much old and it is closed (Answered) as well So can I look forward to hear from you?
Cheers
Similar Messages
-
Variable size item formulla key funtion module,
I am developing user interface for manual reservation (cutsom development). User wants to calculate quantity of material if he enters size1, size2 and size3. Also he wants that a formula key option to be provided so that he can mention conversion formula. Is there any standard function module for variable size formulla funtion module.
I want to use same logic of variable size item formulla of bom in the above custom template.
Please suggest.Hi
The function module EVAL_FORMULA and FORMULA_EVALUATION may help you as they all export calculated values as output. Please go to SE37 to click the button 'Function module documentation' to see more information.
Or go to SE80 to check the function group CALC to see more function.
Best Regards
Leon. -
Funtion Module to convet Date's month from numeric to words ???
Hi guys,
I have a requirement such that:-
For Date:- 06.07.2007 (DD.MM.YYYY)
i want it to display as 06-July-2007
Is there any funtion module to do that.
Regards
RahulHi,
Please use code as under :
data : date(10),
text1(26),
num1(10),
test_day(15),
o_date(20),
idate type sy-datum.
data : Day(2), month(2), Year(4).
data : ODay(2), Omonth(2), OYear(4).
data : Ltext Type T247-LTX.
date = '06.07.2007'.
day = date+0(2).
month = date+3(2).
year = date+6(4).
concatenate year month day into idate.
CALL FUNCTION 'HR_IN_GET_DATE_COMPONENTS'
EXPORTING
idate = idate
IMPORTING
DAY = oday
MONTH = omonth
YEAR = oyear
LTEXT = ltext.
concatenate oday '-' ltext '-' oyear into o_date.
write : O_date.
Reward points, if helpful,
Sandeep Kaushik -
In the Funtion Module: SO_NEW_DOCUMENT_ATT_SEND_API1- How to add TO and CC email ids?
In the TABLE parameter RECEIVERS, there is field RECEIVER where we pass email ids and field COPY which should be 'X'.
But my concern is how will it distinguish that which email ids should be in TO and which should b in CC?
Kindly help. Thanks in advance.
Thanks & Regards,
Anindita GhoshHello Anindita,
Say you need to send mail to 2 receivers and the 1st one is TO and the second is CC.
Just create 2 entries in the internal table of type SOMLRECI1.
wa_receiver-receiver = <email id of TO>
wa_receiver-express = 'X'.
wa_receiver-rec_type = 'U' (if sending to an external internet id - yahoo,gmail etc)
append wa_receiver to it_receiver.
clear wa_receiver.
wa_receiver-receiver = <email id of CC>
wa_receiver-express = 'X'.
wa_receiver-rec_type = 'U' (if sending to an external internet id - yahoo,gmail etc)
wa_receiver-copy = 'X'.
append wa_receiver to it_receiver.
clear wa_receiver.
Hope this helps
Regards
Sachin -
Availability of a Funtion Module
Hi All,
I am having a RFC, which connects with other systems to get some required date. Now my question is that, If the RFC Funtion Module is not availabe on the target system i get a short dump. Now i want to handle this situation, is there any standard way of finding out whether the function module is available on the target system or not.
Thanks & Regards,
Ravi.Hi,
U call 3 exceptions mentioned below when calling the RFC after all the exceptions...
1. communication_failure
2. system_failure
3. others
Hope it helps!!
Regards,
Pavan -
Which Funtion module can get print parameter in the background?
Hi all,
I know the FM"GET_PRINT_PARAMETERS"can get the print parameter, but I find it can't get the print parameter in background. Does anybody know Which Funtion module can get print parameter in the background?
Thanks in advance!
NinaHi Nina,
This is text copied from SAP HELP.
FU GET_PRINT_PARAMETERS
Text
Read, determine, change spool print parameters and archive parameters
Functionality
The function module GET_PRINT_PARAMETERS is used to define, modify and
display the print and archive parameters. Using this function module is
the only correct way to modify a print or archive parameter record. The
print parameters are closely related and contain a check total. This
check total becomes invalid if any of the print parameters are changed
and causes a runtime error when the print parameters are used later.
The module recognizes the following modes (values of parameter MODE):
'PARAM' Normal case. Define the print parameters for the
current program. The values that are not defined
are specified from the user master record or are
assigned default values. The print parameter screen
displays the PRINT key. This mode is used
if the MODE parameter is not specified.
'PARAMSEL' Like PARAMS, except that the print parameter screen
includes an option to activate the selection
screen.
'BATCH' Define the print parameters for a background job.
In this mode, the name of the report to be started
is passed with the REPORT parameter.The REPORT
statement of the specified report is checked for
LINE-SIZE and LINE-COUNT definitions. These
definitions are passed as default specifications.
Furthermore, the SAVE key is offered
instead of the PRINT key in this mode.
Check the BATCH MODE. -
Why again funtion modules in ABAP OO ?
if you look at the code inside
cl_gui_frontend_services->gui_upload they use gui_upload function.
there is no difference.
internally the class also uses GUI_UPLOAD ..........
there is conflict like data consistancy problem with function module ..
why again sap is using funtion modules in class method ...
Instead sap can develope method purely by coding in method know ?
Can any body explain what are the advantages and disadvantages ?Hi,
I think the FM can be used by only one way, with the same calls way( depending for parameters ) and always with the same behavior.
But if you extends the class you can inherits the class's components and insert new attributes.
This is one of the benefits of the OO.
Each SAP's release, many FM are being modified to OO.
Regards,
Marcelo Ramos -
How to Update crmd_customer_h TABLE Using CRMV_EVENT Through Funtion Module
Hi
How we can update customer_h table using the CRMV_EVENT Where i implemented logic below in the Funtion Module.
data: lt_doc_flow TYPE crmt_doc_flow_wrkt,
lw_cust_h_com TYPE crmt_customer_h_com,
lw_input_field_names TYPE crmt_input_field_names,
lt_input_field_names TYPE crmt_input_field_names_tab,
lt_objects_to_save TYPE crmt_object_guid_tab,
lw_guid TYPE CRMT_OBJECT_GUID.
DATA : lv_process_type TYPE crmt_process_type.
data: wa_doc_flow type CRMT_DOC_FLOW_WRK.
data: wa_customer_h type crmd_customer_h.
* Function module for retriving the Process type.
CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
EXPORTING
iv_orderadm_h_guid = iv_header_guid
IMPORTING
ev_process_type = lv_process_type
EXCEPTIONS
admin_header_not_found = 1
OTHERS = 2.
if lv_process_type eq 'ZG01'.
CALL FUNCTION 'CRM_DOC_FLOW_READ_OB'
EXPORTING
IV_HEADER_GUID = iv_header_guid
IMPORTING
ET_DOC_FLOW_WRK = lt_doc_flow.
read table lt_doc_flow with key objtype_a = 'BUS2000116' INTO wa_doc_flow. "gc_object_type-service.
if sy-subrc eq 0. "set flag for service order
lw_cust_h_com-ref_guid = wa_doc_flow-objkey_a.
lw_cust_h_com-ZZTRAIL_FLAG = 'X'.
lw_cust_h_com-mode = 'A'.
lw_cust_h_com-ref_handle = '0000000001'.
lw_guid = wa_doc_flow-objkey_a.
INSERT lw_guid INTO TABLE lt_objects_to_save.
endif.
lw_input_field_names-fieldname = 'REF_GUID'.
lw_input_field_names-fieldname = 'ZZTRAIL_FLAG'.
lw_input_field_names-changeable = ' '.
INSERT lw_input_field_names INTO TABLE lt_input_field_names.
Maintain Customer H
CALL FUNCTION 'CRM_CUSTOMER_H_MAINTAIN_OW'
EXPORTING
is_customer_h_com = lw_cust_h_com
CHANGING
ct_input_field_names = lt_input_field_names
EXCEPTIONS
header_change_error = 1
header_create_error = 2
error_occurred = 3.
ENDIF.
*endif.
*Clearing local variables
clear: lv_process_type,
lw_cust_h_com,
lw_input_field_names.
*Free internal tables
free: lt_doc_flow,
lt_input_field_names.Hi Faisal
I think your not clear with what i am saying anyhow i will again explain you my requirement
As per my requirement
1)in the service order search report i need to add a field called "Has trail order with No Follow up" with values "Yes" & "Blank"
For above Field i added using the structure CRMST_QUERY_SRVO_BTIL and through configuration i am able to display the field in webui as per (Attachement Pic 1)
2)When i search with search criteria as "Has trail order with No Follow up" with "Yes"
Then in result list i need to show the service order those having follow up as trail orders(sales order) only.if for next document trail order having any follow up then those service orders dont want to show in result list.
For above requirement i implemented F.M using CRMV_EVENT & I configured for BUS2000115 And BEFORE_SAVE The Order
The FM Will get trigger when i save the service order and for that service order if create any follow up and try to save the trail order then This FM Will trigger and in this i am doing validations.
3)Add one AET Trail Flag field is added under CUSTOMER_H Table.
4)in the FM I am validating for if the trail order having the preceding document as service order then i need to make flag as "X" For that service order in customer_h
if suppose when i delete trail order from the service order then that flag must need to be "unset" from the CUSTOMER_H.
Why bcoz we are doing above process is do show records in result list based on Flag values
these flag checks are validating in the BADI Which we implemented for search logic.
Please refer below Login for my requirement:-
Proposal to have a custom “flag” field (background at table level,
crmd_customer_h) linked to service order which gets flagged whenever at
least one Trial order is created and saved from the Service Order.
The flag value should be cleared when all the trial orders created and
saved as follow up transactions are deleted from the system.
Similarly for Trial Orders will use the same custom “flag” field
which gets activated when at least one follow up is created and saved from Trial Order.
The flag value should be cleared when all the follow up transactions from
the Trial Order are deleted from the system.
When the above search criteria “Has Trial order with no follow up”
“is” “Yes” is applied then the logic derives all the service
orders which satisfy additional search criteria applied in the search and
for these Service orders checks if the custom flag field is checked to
derive all Service orders which have Trial order. The custom flag values
values are derived from crmd_customer_h table in CRM.
4 )Further for all the Trial Orders determined in Step 3
check if the Trial Order has a follow up by checking if the custom flag field
is checked. The custom flag values are derived from crmd_customer_h table in
CRM.
5) If step 4 is not met populate the preceding Service
Orders in the Result list -
Funtion Module in accounting document
Hi All,
Can someone tell what function module is called while creating the accounting document and what are its important import and export parameters?
Regards
VijayHi Vijay,
The most important funtion module responsible to creating accounting documentt is RV_ACCOUNTING_DOCUMENT_CREATE . Below are its important import and export parameters:
Import parameters
CASH_SALE_ACCOUNT : contains the cash clearing account, if this is not to be posted to the customer
CPD_ADRESS: must be filled if you are posting to a one-time customer
DOCUMENT_OLD : contains the $000000x number of the billing document, as VBRK-VBELN already has the final value, XVBRP and so on still contain $000000x
INVOICE_HEADER : Contains the billing header VBRK
I_COMP : Control parameter, if only CO is to be posted
I_COMP_CHECK : Control parameter if only CO is to be posted (check run)
CHECK : Controlling for error messages (issue immediately or in log)
MODE : Change mode ( A = old, B = new)
MODE_TYPES : Scope of change (1=rebate/2=VPRS)
Differences can occur due to the update of cost price conditions or rebate conditions in billing documents that have already been posted. These two fields (MODE and MODE_TYPES) are required to enable the posting of those differences to CO-PA.
RRREL: If this field is set, the billing document contains revenue recognition items
BOKRE : If this field is set, the billing document is rebate-relevant
These two fields (RRREL and BOKRE) are required for the new cancellation function as of Release 4.6A. This is because the new cancellation procedure cannot be implemented for revenue recognition or rebate relevant billing documents.
Export parameters
O_VBRK_RFBSK: This is set if an error has occured in account determination ( characteristic B)
O_KONV_CHANGED: This is set if XKOMV is changed in account determination
Regards
Roop -
Inbound funtion module to process PORDCH02 IDOC
Hi,
I am getting a inbound purchase order PORDCH02 IDOC and i need to change the purchse order based on the idoc value , pls let me know the standard inbound purchase order funtion module attached to inbound process code.
Thanks
RaviHi,
The message type and basic idoc type for the processing of purchase orders:
PORDCH PORDCH01 -- For change
PORDCR1 PORDCR101 -- For Create
Regards,
Ginu Litta Raj -
ERROR WHILE ACTIVATING FUNTIONAL MODULE
HI everybody,
i have created one functional module
code is correct
but at last while activating i am getting error like
'REPORT OR PROGRAM STATEMENT MISSING OR PROGRAM TYPE IS
I(INCLUDE).
COULD U PLZ SUGGEST ME HOW TO SOLVE THIS ERROR
REGARDS
HRIDHAYANJILI.Hello,
Go to the main program of the Funtion module. and do activate. Select all the deactivated programs related to Function group and then press activate.
Regards,
Naimesh -
How to get Documentation on Funtion Module
hi Experts,
I want to know where can we find the documentation of a FM like for a badi... you can get it from spro..srm...Business add in... where u can click on documentatio....
But how to get documentation fo Funtion module , for example if want to get docs related to FM "BBP_PD_SC_GETDETAIL" how to get it....
Thanks
sameerHi. If you go to SE37 and enter the FM name, then press display, there is a button top right called "Function Module Documentation".
It is not maintained for every function though, if the button is greyed out there is nothing. If there is nothing there I do not know if there is anywhere else to look, apart from SDN of course....
Regards,
Dave. -
User exit available in the funtion module mentioed below.
I have inbound idoc of the idoc type VEHCLE01.i have few new fields and i added as an extended idoc
I need to process this idoc in the inbound side for create and change mode by refering message funtion of the idoc of it msfunction is 1 create and if is 2 change.
for achiving this i am using two funtion module as below in my zfuntion module.
1)DOC_INPUT_VEHICLE_CREATE
2)IDOC_INPUT_VEHICLE_CHANGEMULTI
for processing the custom fields in the idoc i need to take care in some userexit of this funtion module,pls let me know the userexist where i need to take care of the custom field data from the idoc
Thanks
RaviHi Ravi
there are multiple Badi available, u have to check that which one is useful for you.
find the package name in which your function modules are (it is ISAUTO_VLC).
go to se84 ->business add in->definitions.
enter package name in selection screen and analyze available BADi for your purpose.
Thanks
Vishal Kapoor -
GUI_Download funtion module problem
HI All,
I am Using GUI_Download funtion module for downloading data from internal table to flat file. But one of the field is having the value ОАО "САН Интербрю Украина"
After downloading data, the letters are being replaced by # in the download.
If any one know please let me as early as possible.
Thanks in advance.....
SatishCheck the sap documentation for the funtion module(Especially for CODE page)
Character Representation for Output
Description
Use parameter CODEPAGE to specify the desired target codepage. If this
parameter is not set, the codepage of the SAP GUI is used as the target
codepage.
Value range
4-digit number of the SAP codepage. Function module
SCP_CODEPAGE_BY_EXTERNAL_NAME returns the SAP codepage number for an
external character set name such as "iso-8859-1". Function module
NLS_GET_FRONTEND_CP returns the related non-Unicode frontend codepage
for a language.
You can specify the desired codepage interactively, if the parameter
with_encoding of method file_save_dialog is set by
cl_gui_frontend_services.
SPACE: Codepage of the frontend operating system.
Regards,
Ravi -
Badi or exit avilable in funtion module MASTERIDOC_CREATE_SMD_MATMAS
I need to populate data for the extended IDOC type ZMATMAS05 , I had configured my Message type ZMATMAS to the funtion module MASTERIDOC_CREATE_SMD_MATMAS to create IDOC , is there any badi or exit availabe in MASTERIDOC_CREATE_SMD_MATMAS to populate my extended idoc segments,pls let me know immediatly.
Thanks
RavishankarYes, you can use the Exit - EXIT_SAPLMV01_002 and in the include you can populate your custom segments.
Best Regards,
Ameesha
Maybe you are looking for
-
Assign ext material proc profile to order type and plant
Hi friends , I want to make purchasing group and purch organisation fields non editable for external material procurement.how can i do it. REgards AM Edited by: Amehra on Jul 4, 2011 8:26 AM
-
I have an Epson RX520 printer if I connect it to My new iMac will it work or will I have to buy ANOTHER app.??
-
Oracle SOA Suite 11.1.1.5 and weblogic server with OEPE
Hello Where can I find the installers for Oracel SOA Suite 11.1.1.5 and corresponding supported weblogic server with OEPE. I want to install this on Debian and on Oracle Solaris 10 both, so better to have generic installers. Few months ago, i could f
-
Whats the difference from "restricted passcode" and "enter passcode"?
What's the difference between a restricted passcode and enter passcode
-
Restore Lion 10.7.3 from Time Machine Backup Fails
Follwoing a hard disk failure and installing a new disk, I connected to my Time Capsule to restore my Mackbook Pro running Lion. Choosing the latest backup resulted in it restoring about 36% of the drive and failing with a subsequesnt reboot from whi