Modify BADI HR_IN_ER_ADDRESS~GET_CIT_ADDRESS
Dear Friends,
I need to modify BADI HR_IN_ER_ADDRESS~GET_CIT_ADDRESS
Can anybody help me out the whole procedure to write code in it. I am not able to do the same.
Based on the T7INT5-TXGRP I NEED ADDRS.
Based on this T7INT5-addrs = ADRC-ADDrnumber , I NEED VALUES STREET, P O BOX NO, CITY AND PIN CODE FROM ADRC TABLE .
Thanks
Ravi
Thanks for your immediate reply.
I have two values of field TXGRP from table T7INT5.
two values are '01' or '02
where to get these values in the method GET_CIT_ADDRESS.
so that accordingly, either one of the belwo given value can be picked from the mehtod.
ADDR1_VAL-NAME1 = 'IT India'.
sadr-STRAS = 'House number'.
sadr-PFACH = 'Lr'.
sadr-ORT01 = 'noidaI'.
sadr-PSTLZ = '132002'.
ADDR1_VAL-NAME1 = 'IT India'.
sadr-STRAS = 'House number'.
sadr-PFACH = 'Lr'.
sadr-ORT01 = 'noidaI'.
sadr-PSTLZ = '132002'.
Edited by: Ravi Grover on May 10, 2011 10:55 AM
Similar Messages
-
Anybody enhanced BADI HR_IN_ER_ADDRESS~GET_CIT_ADDRESS
hI
I need to enhance METHOD GET_CIT_ADDRESS UNDER BADI NAME " HR_IN_ER_ADDRESS". We have some different requirement.
We have to set conditon on T7INT5-TXGRP, Based upon this tax group condition we need to provide values in the SADR.
We have two values of TXGRP 01, 02.
HOW FORM 16 PROGRAM ( HINCF160) CAN PASS VALUES TO THE METHOD GET_CIT_ADDRESS so that contition can be applied.
Regards,
RaviHi
Check while debugging the method if there is any values in T7INT5 in the global parameters tab.If exists you can get the values using field symbols.
Try the below code.
field-symbols : <fs1> type T7INT5.
constants : c_1 type char6 value 'T7INT5'.
assign (c_1) to <fs1>.
~~~Ganesh Kumar K. -
BADI HR_IN_ER_ADDRESS
Dear Friends,
While taking the output for Form 16 the employer name is overwriiten with the SAP LABS coding from the BADI HR_IN_ER_ADDRESS .
When reffred to SAP they said to deactivate the implementation,but to our notice we have not created any implementation for this BADI.Please help me to figure out how this BADi is active.
While checking the BADI it shows me active through customising,please let me know the path to deactivate this.
thanks.Solved,
The BADI was active at customising level.
Path is Payroll india-other rreports-BADI for Emploeyr adress-Here the BADI was activated.
Removed the check from this. -
Modify BADI for Freight Cost Extension
SAP offers BADI /SAPFCX/RELV_PARMS to update user parameters in determining customer freight document relevancy.
I am informed to use this BADI to code so that USER_UserParm1 can be populated. It is provided in function module /SAPFCX/CFI_RELEVANCE_CHECK.
I have tried a variety of ways to understand how to update this BADI, but nothing has proven with an example or instruction.
Has anyone update these BADI in FCX? Could you please instruct me on how to complete this?
Much appreciated,Go to SE18 and create a new Z implemenation. Enter the name of the SAP provided BADI.
The method with ABAP code will be created. Modify the code and activate. -
Hi!
I need to modify a Badi, can you pls let me know as to how I do it. pls find the reqmnt below :
BADI to be modified:
Z_FAGL_ITEMS_CH_DATA for the account type and number.
The source code must be added within the LOOP at table ct_items, after
getting the account number.
You can use the standard function module 'READ_SACHKONTO_AND_TEXT'
to read the name of the offsetting account.
This is for the account name in FAGLL03.
thanks in advance...hi ,
check this ...
you can use the MODIFY statement in case of the UPDATE statement and change your code accordingl.
Yes you can define an internal table in BADI.
/people/frank.klausner/blog/2007/01/19/nw2004s-workload-statistics-collector-implementing-a-badi-as-user-exit
regards,
venkat. -
Dear friends,
I need to enhance BADI "HR_IN_ER_ADDRESS". Under this i have method GET_CIT_ADDRESS..
We have two TXGRP IN THE TABLE T7INT5 ( Personnel subarea grouping for Tax).
Now i have to put two conditions in the GET_CIT_ADDRESS for taxgrp values 01 or 02.
IF TXGRP1 = '01'.
ADDR1_VAL-NAME1 = 'IT India'.
sadr-STRAS = 'House number"
sadr-PFACH = 'Nagar'.
sadr-ORT01 = 'nOIDA'.
sadr-PSTLZ = 120092'.
ENDIF.
IF TXGRP1 = '02'.
ADDR1_VAL-NAME1 = ' India'.
sadr-STRAS = 'House "
sadr-PFACH = 'Naar'.
sadr-ORT01 = 'nDA'.
sadr-PSTLZ = 130092'.
ENDIF.
HOW AND WHERE TO GET VALUE OF TXGRP FROM TABLE T7INT5 FROM FORM 16 PROGRAM HINCF160, SO THAT I CAN PUT CONDITONS HERE.
Moderator Message : Duplicate post locked. Continue with [Modify BADI HR_IN_ER_ADDRESS~GET_CIT_ADDRESS. |Re: Modify BADI HR_IN_ER_ADDRESS~GET_CIT_ADDRESS]
Edited by: Vinod Kumar on May 10, 2011 2:02 PMHi,
To use this enhancement spot you have to create implementaion for this. Go to SE19 and put this enhancement spot name
create and activate it.
Thanks
Ramesh Manoharan -
Hello Experts,
Will you please help me to solve my problem? I have issue with new form layout where we have to enhance the BADI for CIT my ABAPr is facing problem while enhancing it. Please provide the solution for the same.
Regards,
ARU
Edited by: ARU on May 10, 2011 11:39 AMHi
Actually .My ABAPr is able to see the values in FORM 16. But the requirement is different. I need to check value from TXGRP based upon value we need to set value in SADR.
We have two values in T7INT5-TXGRP 01, 02.
How to gake value from form 16 program to method GET_CIT_ADDRESS in BADI HR_IN_ER_ADDRESS.
Regards,
ARU -
Hi All,
we are working on sap 4.7 version.
in my system new form 16 is not comming and CIT address are not comming
plse tell if sap provide Notes & Patches related to this issue .
Thanks in advance.Hi,
The Form 16 layout has been changed with Note 1528165 but in order to implement this Note you need to be at the minimum Support Pack level of 95 for Release 470. Can you let me know your current Support Pack level?
Regarding your query, The CIT(TDS) address can be maintaned using the BADI HR_IN_ER_ADDRESS. A new method IF_EX_HR_IN_ER_ADDRESS~GET_CIT_ADDRESS has been created for this purpose.
Regards,
Nishtha -
Hi Experts,
We are facing a problem in our production system
(i.e) we have order created in crm and flows to r/3 system and the billing is carried out there and the status of the order in CRM should be changed to complted once the billing is complted.
However it does not happen so for some of orders because,
Item Category ZTAD used in ZOB2 order type is having the object type as SALES ITEM and which are automatically deliver relevant in CRM. In this process system look for the deliver document which is not available (our ZOB2 orders are order related billing) and the system puts the status of the order to inprogress.
options we tried:
a) we have created a new status profile and assigned it to the ZTAD, but on doing so the quantity of the item changes to zero
b) we have created a new item category with object type CUSTOMER DEBIT MEMO REQUEST ITEM but could not assign it the sales document ZOB2 since it's category is SALES.
c) we have Modified badi ORDER_SAVE to make the document complete when ever ZTAD item category is noticed in the sels order, On doing this the sales document flow is not updated.
Can any one suggest solution for this.
Regards
Swaroop
+91-9999444519hi,
you are requested to check whether your item category exists in the combination of
ZIN 0005
with
SALES DOCUMENT TYPE + ITEM CATEGORY + USEAGE + HIGHERLVEL IC = DEFAULT ITEM CATEGORY.
in VOV4.
it will not be there do your item category determinatin there and proceed.
regards,
balajia -
Problem with embargo check for orders with textposition
Hi all!
Our orders get embargo checked by GTS. Some of the orders do have textpositions (Typ AGTX), that causes errors, because they don't have a material number or plant.
Where can I customize, that these textpositions should not be embargo checked?
Thank you for your help.
kind regards
SabineHello Sabine,
you would have to modify BADis for MM0A and SD0A document transfers saying when transferring document with items having AGTX filled not to be relevant for GTS.
Materials Management u2192 Purchasing u2192 Basic Functions u2192 Foreign
Trade/Customs u2192 SAP GRC Global Trade Services- Plug-In u2192
Business Add-Ins for SAP GRC Global Trade Services u2192 Change and
Expand Document Data for Transfer
Sales and Distribution u2192 Foreign Trade/Customs u2192 SAP GRC Global
Trade Services- Plug-In u2192 Business Add-Ins for SAP GRC Global Trade
Services u2192 Change and Expand Document Data for Transfer
Hope it helps,
Best regards,
Gabriel. -
BSW% is not considered for correcting the transactional quantity
I solicit a little help from the Group. We have a Crude Vendor which is also in SAP platform . They have implemeted TSW and now Crude delivery tickets are generated from System.
On scrutinty of ticket It is observed taht BS&W percentage is not considered while calulating quantities in Transaction UOM.
Transaction code : O3QCITEST.
Conv. Group = ZCDR.=53&54A 15 °C CRUDE OIL
UoM Group = CRD.=L/L15/KG/BB6
Transaction Quantity = 100 L.
Material temp = 30 deg-C
Test temp = 15 Deg-C
Test relative density = 870 KGV.
With the above data if you put BSW% = 0, then additional quantities calculated are 0.622 BB6, 85.938 KG, 98.779 L15 , 100 L.
if you put BSW% = 0.5, then additional quantities are 0.618 BB6, 85.508
KG, 98.285 L15 , 100 L.
From above it is clear that the additional quantities in all units except in "L" change whenever the BSW% changes. This shows that BSW% is not considered in calculating the "L" quantity.
In actual practice BSW correction should happen for Transactional Quantity also.
If you have any solution for the above scenarion . please suggest.for necessary correction.
regards
Dipak
[email protected]Dear Vishnu
You r right . Standard SAP behaves that way only. We modified badi OIB_QCI_ROUND_QTY
method: IF_EX_OIB_QCI_ROUND_QTY~ROUND_QTY
coding atatched.
Anyway thanks for reply.
METHOD IF_EX_OIB_QCI_ROUND_QTY~ROUND_QTY .
Local Data
TYPES: T_CTPARAM TYPE OIB_A10,
T_ADQNT TYPE OIB_A05.
DATA: S_CTPARAM TYPE OIB_A10,
S_ADQNT TYPE OIB_A05,
S_ADQNTN TYPE OIB_A05.
DATA : L_BSW(72) TYPE C.
DATA: W_PAR_FLTP TYPE OIB_A10-PAR_FLTP,
WF_BSW TYPE OIB_A10-PAR_FLTP .
DATA: IT_PARAM TYPE STANDARD TABLE OF T_CTPARAM,
IT_ADQNT TYPE STANDARD TABLE OF T_ADQNT,
IT_ADQNTN TYPE STANDARD TABLE OF T_ADQNT.
DATA: W_TABIX TYPE SY-TABIX.
DATA: W_DIMENSION TYPE T006-DIMID,
W_TEXT TYPE T006T-TXDIM,
W_MEINS TYPE T006-MSEHI ,
L_MENGE TYPE MLEA-MEINH ,
WA_PARAM TYPE OIB_A10 .
*-----DATA DECLARATION FOR L15 START -
DATA : WF_ADQNT_L TYPE OIB_A05-ADQNT,
WF_ADQNT_L15 TYPE OIB_A05-ADQNT,
WF_ADQNT_TMP TYPE OIB_A05-ADQNT,
WF_ADQNT_ROUND TYPE OIB_A05-ADQNT,
WF_ADQNT_KG TYPE OIB_A05-ADQNT.
*-----DATA DECLARATION FOR L15 END -
IT_ADQNT = TC_QT2TAB.
READ TABLE ITC_PARAM INTO S_CTPARAM WITH KEY FIELDNAME = 'UMRSL'.
IF SY-SUBRC = 0 AND S_CTPARAM-PAR_CHAR = 'ZCRD' . " . "AMP
READ TABLE ITC_PARAM INTO S_CTPARAM WITH KEY FIELDNAME = 'MEINH'.
W_MEINS = S_CTPARAM-PAR_CHAR.
IF W_MEINS NE SPACE.
CALL FUNCTION 'DIMENSION_GET_FOR_UNIT'
EXPORTING
LANGUAGE = SY-LANGU
UNIT = W_MEINS
IMPORTING
DIMENSION = W_DIMENSION
TEXT = W_TEXT
EXCEPTIONS
UNIT_NOT_FOUND = 1
OTHERS = 2.
ENDIF.
IF W_DIMENSION = 'VOLUME'.
READ TABLE ITC_PARAM INTO S_CTPARAM
WITH KEY FIELDNAME = 'BSWCN'.
WF_BSW = S_CTPARAM-PAR_FLTP .
READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'MT' MANEN = ' '.
IF SY-SUBRC = 0.
W_TABIX = SY-TABIX.
S_ADQNT-ADQNT =
S_ADQNT-ADQNT * ( 1 - ( S_CTPARAM-PAR_FLTP / 100 ) ).
MODIFY IT_ADQNT FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
TC_QT2TAB = IT_ADQNT.
ENDIF.
READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'KG' MANEN = ' '.
IF SY-SUBRC = 0.
W_TABIX = SY-TABIX.
S_ADQNT-ADQNT =
S_ADQNT-ADQNT * ( 1 - ( S_CTPARAM-PAR_FLTP / 100 ) ).
MODIFY IT_ADQNT FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
TC_QT2TAB = IT_ADQNT.
ENDIF.
*-----Start BSW% in Litre Qty----
READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'L' MANEN = ' '.
IF SY-SUBRC = 0.
W_TABIX = SY-TABIX.
S_ADQNT-ADQNT =
S_ADQNT-ADQNT * ( 1 - ( S_CTPARAM-PAR_FLTP / 100 ) ).
WF_ADQNT_L = S_ADQNT-ADQNT .
MODIFY IT_ADQNT FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
TC_QT2TAB = IT_ADQNT.
ENDIF.
*-----End BSW% in Litre Qty--
*---L15 start----
READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'L15' MANEN = ' '.
IF SY-SUBRC = 0.
W_TABIX = SY-TABIX.
WF_ADQNT_L15 = S_ADQNT-ADQNT .
WF_ADQNT_TMP = ( WF_ADQNT_L15 / WF_ADQNT_L ).
CALL FUNCTION 'ROUND'
EXPORTING
DECIMALS = 4
INPUT = WF_ADQNT_TMP
SIGN = 'X'
IMPORTING
OUTPUT = WF_ADQNT_ROUND
EXCEPTIONS
INPUT_INVALID = 1
OVERFLOW = 2
TYPE_INVALID = 3
OTHERS = 4.
WF_ADQNT_L15 = WF_ADQNT_ROUND * WF_ADQNT_L .
S_ADQNT-ADQNT = WF_ADQNT_L15 .
MODIFY IT_ADQNT FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT. " ---Blocked by Prasanta on 08-june-07
MODIFY IT_ADQNT FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
TC_QT2TAB = IT_ADQNT.
ENDIF.
*---L15 end----
*---KG start---
READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'KG' MANEN = ' '.
IF SY-SUBRC = 0.
W_TABIX = SY-TABIX.
READ TABLE ITC_PARAM INTO S_CTPARAM
WITH KEY FIELDNAME = 'BDICH'.
WF_ADQNT_KG = ( WF_ADQNT_L15 / ( 1 - ( WF_BSW / 100 ) ) * ( ( S_CTPARAM-PAR_FLTP / 1000 ) - 11 / 10000 ) ) - ( WF_ADQNT_L15 / ( 1 - ( WF_BSW / 100 ) ) * ( WF_BSW / 100 ) * 9979 / 10000 ) .
S_ADQNT-ADQNT = WF_ADQNT_KG .
MODIFY IT_ADQNT FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
TC_QT2TAB = IT_ADQNT.
ENDIF.
*---KG end---
ENDIF.
ENDIF.
ENDMETHOD. -
Note oss 994326 - IAOM 028 Object not known in CO
Hi,
i would use note 994326 - IAOM 028 Object not known in CO
to clear the field EXT_OBJECT_ID, but the changing parameter C_GL_ACCOUNT is the field (type BILL_ACC_ACGL09-GL_ACCOUNT )e not the structure (type BILL_ACC_ACGL09).
Can any one help me about the modify badi?
Thanks
RaffaellaHi Chandra,
I've the same problem. I've checked the notes and all the settings provided in them are correctly set up in my CRM system.
Can you suggest another kind of solution?
Points if helps,
thanks a lot,
regards,
A. -
OptionTitle & selecting null value
I have an Option [] bound to a DropDown. In the Option [] is an element of OptionTitle. I need my dropdown to set a selected value of null when the OptionTitle is selected.
What happens at the moment is:
If the underlying field is null the OptionTitle is selected (good)
If I select an option the underlying value is selected. (good)
If I reselect the OptionTitle the underlying value is not modified (bad).
Any suggestions?sd4139, thanks for the suggestions: I'd go that route if i had to but the following workaround works for me:
Add an Option with Value "" (empty string) Description "-None-" or whatever you want. the IntegerConverter in my case seems to convert this to a null. I suspect that the StringConverter does the same.
I'm using one array for several dozen dropdowns over various pages so the valuechange event was gonna be a nightmare to implement. -
User Exit/BADI to modify MCHA-HSDAT while saving a process order
Dear all,
I would like to know if there are any user-exits or BADI's to modify MCHA-HSDAT field, while saving process order.
Scenario: There are two material types ZBUL and ZFDF. After releasing the process order and when I save, an entry in MCHA table for material with material type ZFDF is created.I should make a check if MCHA-HSDAT of this ZFDF material is equal to MCHA-HSDAT of ZBUL.
If not, I should replace MCHA-HSDAT of ZFDF material with the HSDAT of ZBUL material.
I have checked user exits 'PPCO0007' and PPCO0014 and PPCO0020 but I could not find MCHA structure to update.
Do, I need to create an implicit enhancement for this?
Thanks in advance!
AravindAravind,
Do the following steps in order to find the best exit for you.
for e.g. using enhancemnt PPCO0020 FM EXIT_SAPLCOKO_005. Use the "Where used list" to get the point where this FM has been called. So in this case you can use "(SAPLCOKO)MCHA" as field symbol.
Any question, let me know.
Alex -
BADI to modify a BP AFTER save
Hello Expert,
i have a scenario in which i have to add information about territory on the BPs after their creation on CRM.
Simplifying:
BPs are created / modified on CRM from R/3 through BUPA_MAIN or BUPA_REL
for each BP in BUPA_MAIN / REL, if the BP has Role "ZROLE" and a relation with the BP "BP_X"add the new BP on the territory "terr_A"
Now I must find a BAdi that is triggered after the commit of creation / update, because i need all the information on DB to use the BOL in order to assign a territory.
All the BAdi I've tried (PARTNER_UPDATE, BUPA_ROLE_CHECK, BUPA_FURTHER_CHECKS, BUPA_GENERAL_UPDATE and so on...) are triggered before the commit so, for example, i can't find the information on the BUT000 as well as I can't use BOL programming to do analisys.
Can you help me?
Thank you a lot...Hello Alberto,
With the BAdis you will have to use FM that can read memory data while getting created for example BUP_MEMORY_BUT000_GET, but you run a risk that this data may get changed in some other BAdi after you have read it.
If you must be sure that data is saved in DB table before you start adding territory information, then you can trigger a job from one of these BAdi. Starting time of the job can be system time + 30 seconds so that you have enough time for data to get saved in tables. In the job program you can check again that data has been saved in table before starting your core logic.
If you have this logic for initial load, then you will have lot of jobs created. Probably best will be to have a separate program for initial load. But if this is for delta, then this solution will not have any problem.
Cheers,
Niraj
Maybe you are looking for
-
Unable to fetch Bach characteristic in MIGO -good receipt from Purchase Order Configuration tab
Dear Gurus, I have activated classification in Material master for characteristic color , variant is activated and material is configurable material, now i am maintaining characteristic as color in PR form PR when i am creating PO Characteristic val
-
How to stop the Sending USSD message on my iPad since upgrading. The eKit SIMM worked fine on my older iPad. Thanks
-
Hi experts can any one tell me how to enhance OM Infotypes. I mean to say what is the Tcode? i think it PPCI is it correct ? and what is the procedure to enhance the OM infotype? if possible explain with an example. Thanks in advance. vamsi.
-
Obiee start page error : Error 500 internal server error---- From RFC 2068
Hi, Atlast after 100s of attempts(it took around 2 months) I successfully installed Obiee 11g on my laptop (simple install type) (lot of errors and lot of issues). Now the problem is whenever I start the BI services "http://systemname:7001/analytics/
-
IPod Artwork Copy to iPod Proceedure
Anyone else find that if they update the artwork of an album or video, and sync up your iPod, that the whole file needs to be transfered again, not just updated with the new artwork. It kind of ***** if you have a 500mb movie and all you do is update