Updation of (SAPMF05A)BKPF- fieldname in BADI
Hi,
I want to update following filed "SAPMF05A)BKPF-<fieldname>", please suggest how to update
I have written the following code to do so but the <fs_bkpf> get the valur but field "SAPMF05A)BKPF-<fieldname>" does not get updated.
Data declarations
CONSTANTS :
C_BKPFZZBUNIT_SRC(26) TYPE C VALUE '(SAPMF05A)BKPF-ZZBUNIT_SRC'.
Field Symbols
FIELD-SYMBOLS: <bkpf> TYPE STANDARD TABLE ,
<fs_bkpf> TYPE ANY.
Local Variable Declaration
DATA: L_DATA(26) TYPE C,
l_field(26) type c,
l_field1(80) type c,
l_BKPFZZBUNIT_SRC(26) TYPE C VALUE '(SAPMF05A)BKPF-ZZBUNIT_SRC',
CTR TYPE I.
fill export parameters from interface attributes
EX_BKPF = ME->IF_EX_FI_HEADER_SUB_1300~BKPF.
L_DATA = C_BKPFZZBUNIT_SRC.
ASSIGN (L_data) TO <fs_bkpf>.
assign EX_BKPF-zzbunit_src to <fs_bkpf>.
ENDMETHOD.
thanks
Pankaj,
I am not clear what exactly you are doing in your code. I think you have assigned to different variables to the same field symbol. So, only the latest one will be present.
L_DATA = C_BKPFZZBUNIT_SRC.
ASSIGN (L_data) TO <fs_bkpf>.
assign EX_BKPF-zzbunit_src to <fs_bkpf>.
Here you have assigned L_DATA and also EX_BKPF-zzbunit_src to the same variable. So, now <fs_bkpf> will have the address of EX_BKPF-zzbunit_src.
L_DATA = C_BKPFZZBUNIT_SRC.
ASSIGN (L_data) TO <fs_bkpf>.
Once this is done, directly assign the value to <fs_bkpf>.
<fs_bpkf> = '100'.
This should update the variable.
If NOT please explain the coding once.
Regards,
Ravi
Note : Please mark the helpful answers
Similar Messages
-
Updating iphone3 is it good or bad?
updating iphone3 is it good or bad?
updates are always good. you should always update as soon as you have an update available.
-
Updating another infotype in the in_update badi
Hi Experts.
We are upgrading from 4.6c to ECC.
We are updating a lot of infotypes using HR_INFOTYPE_OPERATION (passing no_commit = x) in the in_update Badi.
Now when the infotype being updated in the in_update fails, HR_INFOTYPE_OPERATION internally issues a ROLLBACK WORK.
See these lines from the FM:
IF RETURN IS INITIAL.
READ TABLE MODIFIED_KEYS INDEX 1.
MOVE MODIFIED_KEYS(8) TO KEY(8).
MOVE MODIFIED_KEYS12 TO KEY8.
ELSE.
IF NOT NOCOMMIT IS INITIAL.
ROLLBACK WORK.
ENDIF.
It worked correctly in 4.6c.
Now in ECC, it starts giving a dump - saying that ROLLBACK work is not allowed within the in_update.
Short text of error message:
ROLLBACK WORK during ON COMMIT or ON ROLLBACK
It sounds logical - but I am not sure how come it was working in 4.6c.
Any work arounds to it? Anyone else also encounter it?
Thanks in adv.Hi Aishi!
I had a short look inside HR_MAINTAIN_MASTERDATA (in HR_INFOTYPE_OPERATION) - seems like there are some call transactions. A call transaction has invariably a commit work inside, so the parameter "nocommit" just defines a "dialog" parameter.
Looks like the logic of the update was changed - or the "in_update" badi wasn't really called in update task earlier.
Best way: search for other ways to update master data (without commits) - at least much better than the risk of additional commits in update task.
BR, Christian -
Converting an update statement to modify statement in BADI
Hai I want to convert an update statement to nodify statement . Can we define the internal table in BADI. Give me the code
Hi,
We can define internal tables in BADI.
Example:
Implement BADI ME_PROCESS_PO_CUST and in the method PROCESS_ITEM
DATA: ls_mepoitem TYPE mepoitem.
*get item data
ls_mepoitem = im_item->get_data( ).
IF ls_mepoitem-adrn2 EQ space AND
ls_mepoitem-adrnr EQ space.
Retrieve the adddres or hardcode as per ur reqmt.
*transfer the address to ls_mepoitem-adrn2.
MOVE v_adrn2 TO ls_mepoitem-adrn2.
CALL METHOD im_item->set_data
EXPORTING
im_data = ls_mepoitem.
ENDIF.
Asha -
Hi
I have to update Item(Product/Product category) Description in Lead duriing Creat/Change.
1..I can't do same in CRM_ORDERADM_I_BADI as Ited Guid is geting created after coming out of this Badi...
2..Also in ORDER_SAVE BadI~CHANGE_BEFORE_UPDATE does n't work as it has no export params...
ALso tried CRM_INTLAY_put_DATA ,But this adding more lines..
DO we have any way to update the Item(product) description in Memory....in CHANGE_BEFORE_UPDATE method..
Thanks in Advance...Hi Frédéric,
Finally I got it..ADM_I create is triggering for each line addition...
But ADM_I change is not triggering on change of same line...
But Item product obj - change event is triggering on change of item/product.
Thank you for continous help..
These 2 together ,I got the solution...
Trans. Category BUS2000108 Lead
Execution Time 10 End of Item Processing
Priority 5
Object Name ORDERADM_I Administration item
Event AFTER_CREATE
Attribute <*>
Function ZGD_CRM_ON_CREATE_LEAD_I
Trans. Category BUS20001 CRM Bus Transactions
Execution Time 1 Immediately
Priority 1
Object Name PRODUCT_I Item product data
Event AFTER_CHANGE
Attribute <*>
Function ZGD_CRM_ON_CHANGE_LEAD_I
Cheers
Prasad
Message was edited by: Ranganatha Prasad Kurupati -
Problem in updating Data for infotype P0009 through BADI
Hi,
we are facing a problem while trying to update value of Date field for infotype P0009 through PA30.
we have tried to update by using BADI hrpad00infty, we are providing value in new_innnn structure of method
AFTER_INPUT, but the value is not getting updated for that PARNR.
Can anyone help me regarding the same?Hi
HRPAD00INFTY BADI methods don't allow to modify any values of the current record being processed, but there's a possible wworkaround accessing memory fields using field-symbols:
method IF_EX_HRPAD00INFTY~AFTER_INPUT.
FIELD-SYMBOLS: <fs> type p0009.
assign ('(MP000900)P0009') TO <FS>.
if sy-subrc eq 0.
<FS>-YOURFIELD = YOUR_VALUE.
endif.
endmethod. -
TC VA02,When change plant ,auto update the condition,what exit or BADI can?
When i run t-code VA02 and change the shipping plant of item.
I want it to update codition auto.
How can I acheive?
Is there EXIT or BADI for it?
TKS a million~~
Edited by: lorryhappy on Jun 3, 2009 12:08 PMin line with what i have mentioned previously,
pl let us know whether u want the change before creation of subseq doc (delivery etc) or after creation of it ?
suggestion: always write the problem in detail with all the info u can give as possible, since that helps others to understand ur problem and give good soln.
rgs,
ak -
How to update Sold-To Party (In ORDER_SAVE BADI)
Hi,
I have a requirement as follows:
In for a Sales Order, In ORDER_SAVE BADI, I have to do validation for Sold-to Party. If validation fails, I need to display an error message and I need to clear the Sold-to Party field, hence user has to select another sold-to party.
Could you please let me know, how can I clear the sold-to party, in ORDER_SAVE BadI. Any FM's to do that?
Thanks,
SandeepHello Sandeep,
why you want to delete the sold-to ? I think its just easier to give a error message in the log, so the users could enter a new sold-to. Within the badi order_save you can prvent saving with exception do_not_save - see note 1519171 for detailed information.
Best regards
Rene -
Fix the problem and stop with the zoom in of every webpage. Its an awful thing for every photografer.
''This change in Firefox version 22 is a really bad idea. Many people will not tolerate going to about:config to fix this. And they shouldn't have to.''
Agreed, put feedback at input.mozilla.org/feedback -
Update to 10.4.9 Gone Badly
After suffering for several weeks with 10.4.8 (software and system crashes all over the place) I tried 10.4.9 tonight.
Things just got worse. After installing the new version of iTunes, the Apple Software Update began installing 10.4.9. I left the room, came back, and discovered that the installation had stopped because of an error (I didn't write it down). So I re-booted and tried again. 99 percent of the way through the 10.4.9 installation, my system crashed. Every time I try to re-boot, the grey Apple appears, the circular rotating thing rotates... then a black rectangle appears in the middle of the screen and everything freezes.
I've run Disk Warrior, but haven't been able to boot back into OS X. The only thing I've been able to do on this computer is boot from my OS 9 disk and then change the Start Up disk to 9.2.2. That's how I've managed to get to this discussion board.
Any theories?
Thanks in advance...
DouglasI'm running my HD from a PCI ATA card.
And here's my latest update:
I seem to be in good shape at this point. I'll explain what I've done for future readers.
As someone in another thread mentioned, my B&W can only support one HD. So I replaced the old one with a new 300 gig drive, which I then partitioned into two 149 gig drives. OS 9 loaded fine into the first partition. OS 9.2.2 loaded fine. And Tiger loaded fine. I then upgraded to the 10.4.7 combo and stopped there. (remember that all of my system instability problems started with the 10.4.8 upgrade and then got worse with 10.4.9)
I've bought an external USB HD case, which I plan to use to convert my old HD into an external USB drive. I haven't set it up yet, but my hope is that I'll be able to rescue my e-mail, Safari bookmarks and other info from the original drive. And then I'll be able to use it as a back-up external HD. -
Firmware update on DVD Multi Burner gone bad
Hi all,
I just downloaded and tried to update the ODD in my T510, but during the update it just went "FAILED" (despite I followed the instructions to the letter) - and now the ODD is lighting up as a christmas tree all the time. The thinkpad can still detect the drive, so I can reflash the unit, but there is 3 possible firmware files - which one is the correct one?
Firmware
Quote:
GT30N LT10 Serial Ultrabay Enhanced
GT30N LG10 ThinkPad SL410, SL510, L412, L512
GT30N LE10 ThinkPad Egde 14", 15", E40, E50
Now - is it the LT10, LG10 or LE10 I need to reflash with?
I know for a fact that the unit is the GT30N, pulled it out and confirmed it (also the device manager says it is)
The lenovo update utility does not provide me the option anymore to flash the unit sadly.
/me
Solved!
Go to Solution.HI,
i have hupgrade and download this files:
http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-70448
i have installed GT30N LT10 Serial Ultrabay Enhanced but now my support doesn't read the films in dvd.
Which are your driver e firmware?
Help!!!!
w510 i7-720qm 7gb 320G wwan
dvd multi Fru 45N7465
H-L DATA STORAGE
MODEL: GT30N (ALIK711) S/N BOCRIV2112127
DRIVE: AO LGE-DMGT30N (B)
My O.S. w7 prof 64bit
WMP works well
error: impossible to access the device,it is probable that you don't have him the necessary autorizations
Thinkpad X1 carbon 2gen
Thinkpad X230
thinkpad T420 -
10.8 update & why using cracked software is bad, lessons learned.
1st, does everyone like the 10.7 and 10.8 updates? I get nervous evertime I see them as its my work, so thank you for any responses.
Anyway, I remember I once had a cracked version of a PC program called ACID, somewhat like Garage Band, in a way, but not really. Some say it was the guy or 1 of them, that created ACID by Sonic Foundry, then SONY, that created GB?!? True or not, I do not know.
What I know, and I know quite a bit was once I decided to buy it, I got the company I work for involved, got a few FREE copies, for friends and colleuges and the next thing you know I am scoring a multi million dollar TRI STAR Columbia trailer on a $100 sound card. I also got paid around $15,000.00 for 1.5 worth of work.
So, what did I learn? Paying for it makes it legit and yours and may open doors. Yes it would be great if you hated something you could get your money back but we're not there yet but will one day, the other is, I have a Mark III Canon 5D yet while I am called a great photographer, someone that is a PRO PRO like NATIONAL GEOGRAPHIC PRO, could probably run circles around me with a Point and Shoot. So it's not the hardware or software but how well you are at and with your craft.
Just a message and lesson I learned!
Thanks and please let me know about the update!What the bloody feck?????
-
Small error updating ca-certificates. Is it bad?
I got a couple of these errors upgrading ca-certificates:
error adding /etc/ssl/certs/AC_Raíz_Certicámara_S.A..pem
keytool error: java.security.NoSuchAlgorithmException: SHA384withECDSA Signature not available
I'm guessing it's harmless, but just double checking.So the problem is most likely in the showFinalStats() function?
It looks like you are adding the final screen at y=75, but if this is an up-down scrolling game shouldn't that probably be a dynamic number? It isn't clear what you are adding that to, so perhaps that is the problem as well. Some traces in that function would probably help you diagnose the problem -
Hello all,
I hoping to get some expert opinion on some upcoming patches to our environment. We are 3 releases being on applying CPU's to our environment and it is that time of year where testing is needed for Year-end patches. Does anyone see any issues with combining the year-end and CPU's? Would it be recommended that we hold off on the applying CPU's because of not experiencing any major problems in our environement, then schedule to gradually get up to date once the year-end patches are in place?
The desire to install CPU's is to not fall too far being on the CPU's.
Thanks in advance for any recommendations.My recommendation is to combine the CPUs with the rest of your patches. CPUs do not affect functionality - they patch security holes/issues in software. Since you will be testing for yearend patches, you can take advantage of this opportunity to also include CPU patches, else separate testing and downtime will be required for the CPU patches. This is the approach we have in our organization. We have yet to encounter an issue with this approach.
HTH
Srini -
Badi or Exit for Update in MIGO
Hi ,
The requirement is whenever i am doing GRN in MIGO , the Bill of lading field in header stored in table MKPF & field FRBNR , should be automatically filled with a system genarated internal number. That is while we are posting MIGO. I will be able to see the Bill of lading number in display mode of MIGO.
I need a BADI or exit which can update the Bill of lading field during GRN( creation of material doc).hi,
try this:
Enhancement
MB_CF001 Customer Function Exit in the Case of Updating
MBCF0011 Read from RESB and RKPF for print list in MB26
MBCF0010 Customer exit: Create reservation BAPI_RESERVAT
MBCF0009 Filling the storage location field
MBCF0007 Customer function exit: Updating a reservation
MBCF0006 Customer function for WBS element
MBCF0005 Material document item for goods receipt/issue
MBCF0002 Customer function exit: Segment text in materia
Business Add-in
MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and
MB_DOC_BADI_INTERNAL BAdIs During Creation of a Material Document (S
MB_ME_CSGMT_BADI_SAP BAdI: Consignment Processing - Stock Transfer
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
MB_RESERVATION_SCR Screen BAdI for Retrofit DFPS
MB_RESERVATION_UPCHD BAdI for Creation and Changing of Manual Reserv
MB_RES_BAPI_CHANGE BAdI: Execution of Changes to Reservation Field
MB_RES_BAPI_CREATE1 BAdI: Adoption of Customer's Own Fields as Rese
MB_RES_BAPI_DETAIL1 BAdI: Display of Customer's Own Fields in Reser
MB_STOR_LOC_BADI_GTS BADI to Check and Change Storage Location (GTS
MB_DOCUMENT_BADI_SAP BADI for Creation and Changing of a Material Do
ARC_MM_EBAN_CHECK BAdI: Enhancement of Archivability Check (MM_EB
ARC_MM_EBAN_PRECHECK BAdI: Enhancement of Archivability Check (MM_EB
ARC_MM_EBAN_WRITE BAdI: Enhancement of Scope of Archiving (MM_EBA
ARC_MM_EINA_CHECK BAdI: Enhancement of Archivability Check (MM_EI
ARC_MM_EINA_WRITE BAdI: Enhancement of Scope of Archiving (MM_EIN
ARC_MM_INVBEL_CHECK BAdI: Enhancement of Archivability Check (MM_IN
ARC_MM_INVBEL_WRITE BAdI: Enhancement of Scope of Archiving (MM_INV
ARC_MM_MATBEL_CHECK Prüfung ADD-ON-spezifischer Kriterien für MM_MA
ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking
MB_CIN_LMBMBU04 posting of gr
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI BAdIs During Creation of a Material Document
Edited by: Ierardi Leo on Jul 10, 2008 12:43 PM
Maybe you are looking for
-
Is this a bug? come in to see the code please
I am using Flex Builder 3 code name "Moxie". The basic idea is having a linkedbutton on a panel, then if you click on the linkedbutton, both the linkedbutton and the panel underneath catch the mouse click event. Is this a bug? I am expecting only the
-
Can I install three of hard drive on Ultra-10??
Help me, plz~~ I have Ultra-10 with Solaris 8. <Primary IDE channel> Rear hard drive(master-device 0) --------- Front hard drive(slave-device 1) ----------- Motherboard J15(primary channel) <Sencondary IDE channel> hard drive(master-device 0) -------
-
Exchange 2010 - Getting report on local internal email
Hi, I am trying t get one particular stat out of my Exchange 2010 server using Powershell and could use some help. I simply want the total number of emails sent internally within my single exchange server. Below is the Powershell command I have tri
-
Animation in illustrator cs4: pan & rotate across large image while animating text?
Hi there - I have a fairly large circular starmap image - it's a fantasy piece simulating an ancient painted star map with stars, ancient constellation figures, and calligraphic text. Basically a bitmap background from PShop, vector layers with stars
-
Hi , How to find the logs for the LO extraction that have been done already ? Is there a provision to see date wise ? What does the Log file convey to us ? How we can we the log file effectively ? Regards kumar