Problem in BADI- MIGO Posting
HI,
I have faced one problem while posting MIGO. As per the Badi , if Material price not maintained then system Should give error message. But for us ABAP dump is coming.
In our Method, we are writing as
message a999(zfi) with 'ZFI999 : Posting Not Possible'.
in Function Module MB_POST_GOODS_MOVEMENT , the following place only got error.
IF NOT sy-subrc IS INITIAL.
MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH "385830
sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
MESSAGE A263.
ENDIF.
My Requirement is , how can i write the Message in my class and i need only error message .
With Thanks,
Neptune.M
Hi,
I have tested for error message E, I, S. But if i use other than A, then system will allow to post the GRN.
But My requirement is i need error message . not dump and not allow to post.
With Regards,
Neptune.M
Similar Messages
-
Different Migo posted on the same delivery note number with the same vendor
Hi Experts,
We are facing a peculiar problem while saving migo in the sytem. The system is allowing to post more than one migo with the same delvery note number with the same vendor code in the same financial year. Ideally shystem should give some informative / error messgage during saving one migo. In our company, we capture party invoice number in the delivery note option. Our problem is more promintent if the vendor is non excisable.
How to check this problem.
Regards
GRHi,
In Standard SAP, no check is available on "Delivery Note" field for duplicacy. This is only available for "Reference" field in MIRO.
If you want to have a check on "Delivery Note" field in MIGO then go for some ABAP Development using BAdi or Enhancement Spot "MB_MIGO_BADI". -
Problem in BADI, error message not getting displayed
Hello Experts,
I am facing a strange problem in BADI.
The requirement is that the user should not be allowed to change the plant field
on the screen of standard MM transctions for PO/PR amendment.
I have written the code in separate BADIs for PO and PR.
I am displaying an error message if the user tries to change the field.
For PO, it is working fine.But for PR, the same code is not working.
The control is going over to the BADI for PR and rest of the code is working fine.
But the error message is not getting displayed for PR amendment.
Can anybody please suggest the possible cause of problem and some solution to it.
Thanks in advance.Hi
See the sample BADI code for PR which raises an exceptions and do accordingly
BAdI Name: ZPUR_RFQ (Implementation name) Purchase Requisitions
Definition Name: ME_REQ_POSTED
Interface Name : IF_EX_ME_REQ_POSTED
Implementing Class: ZCL_IM_PUR_REQ
Method : POSTED
METHOD if_ex_me_req_posted~posted .
DATA : v_mtart TYPE mtart.
DATA l_s_eban TYPE ueban.
LOOP AT im_eban INTO l_s_eban.
IF l_s_eban-estkz NE 'B'.
CLEAR v_mtart.
SELECT SINGLE mtart INTO v_mtart FROM mara WHERE matnr = l_s_eban-matnr.
IF v_mtart EQ 'ZERS' OR v_mtart EQ 'FHMI' OR v_mtart EQ 'UNBW'.
MESSAGE e000(zm_msg) WITH 'You are not allowed' 'to create PR for stock items'.
ENDIF.
ENDIF.
IF l_s_eban-knttp NE 'F' OR l_s_eban-pstyp NE '9'.
IF l_s_eban-knttp NE 'A'.
IF ( l_s_eban-pstyp NE '9' AND l_s_eban-pstyp NE 'D' )
AND l_s_eban-matnr EQ space.
MESSAGE e000(zm_msg) WITH 'You cannot create'
'a PR without material number'.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
<b>Reward points for useful Answers</b>
Regards
Anji -
MIGO - Posted lines can appear more than once
Hi Gurus,
when posting inb. dlvs. with MIGO, sometimes we get some of the lines posted multiple times, I guess we've understood the reason why but we're still looking for a solution (instead of saying to the user "leave the transaction and get back in later..."):
The "multiplication" of lines happens when MIGO is executed several consecutive times and at least one material/batch is still being processed by the previous MIGO posting:
1) start MIGO, key in inb. dlv. number, execute Post
2) perform the same as # 1 with a new inb. dlv. number and execute Post
if at least one of the materials/batch from inb. dlv. # 1 is also contained within inb. dlv. # 2, due to slow performance, you could get the following error message: "Batch xy of material abc is already locked by asdfg"; MIGO screen will remain empty, field to key in inb. dlv. number will be cleared.
At this point, if the user will type in (again) the same inbound delivery number + F8, assuming the lock had been removed in the meantime, the program will "double" the lines (or add the lines up to the one the program reached before to raise the error message).
Sounds like a program bug, error message M3682 should stop the program or clear the buffers, otherwise there's no way the use can know something was read and stored "behind the scenes" and is going to be used as soon as the lock will disappear.
Any help/suggestion will be really appreciated.
EnricoPlease, try to provide as much information as possible, instead of as little as possible. What’s the time interval chosen in the Remove copy from server popup menu?
It looks like Mail has lost track of which messages have already been downloaded and is downloading them again, or maybe it’s failing to remove them from the server according to your settings.
Try to remove from the server all the messages that have already been downloaded by clicking the Remove now button -- check for new mail first, just in case there is something amiss and that function doesn’t work as expected.
If Preferences > Accounts > Advanced > Remove now fails to remove the messages from the server, you can try to do so manually using the Account Info window. In order to use that feature, choose Get Info (⌘I) from the Action menu (gear icon) located below the mailboxes list in the main Mail window. -
Account Determination error during MIGO Posting
Dear All,
Kindly help resolve error duirng MIGO posting "ACCOUNT DETERMINATION FOR ENTRY GBB____ZOB TF01 not possible". This is Message no. M8 147.
The error happens once the transaction is being saved.
Hoping for your positive response.
Thanks and regards,
chingHi,
Goto OBYC Transaction.
Select the Procedure as ' GBB" and enter the Chart of Accounts ( for Your Company code)
Enter the Valuation modifier as assigned to others.
Enter the General modifier as ZOB
Enter the Valuation class ( with respect ROH/SFG others)
Enter the Debit/ Credit G/L account
save then proceed your transaction MIGO.
rgds
Chidanand -
BADI for post processing of IDOC BOMORD
Hi experts ,
I want a BADI for post processing of IDOC BOMORD. Actually after IDOC processing BOM got updated in system and i want to schedule the explosion of BOM in process order after it. Please update me with the solution.
Thanks
Nitin kapoorRoberto, thanks for your prompt reply (as always).
Actually, it seems that the deletion of the prior infopackage request is performed before executing the infopackage again (not after), I apologize. I will try your suggestion, though. If this is actually the correct FM, then I will award you full points!
I must admit, though, understanding the parameters of the FM are difficult. Can you aor anyone else provide more details? -
Dear friends,
The basic price of material is 100 inr and excise amount is 20inr. Total value is 120INR. Our requirement is In MIGO posting if excise is not captured amount updated for GR/IR clearing account and inventory posting should be -100 and +100 respectively. How to make it?
Thankyou
Sameerhi
as the 20 rs ia the excise amount u cant load it to the inventory
in MIGO u can selectt the option of no excise duty then system will only post normal MIGo without the excise posting
now if u dont have excise ,then do not give tax code in po or change it before gr
as there will be no excise tax code ,u can select no excise and post the GR
hope it clears
regards
kunal -
Please Help its Urgent ***POPUP at the time of MIGO Posting*****
Hi all,
Please help me on this issue,
I want to display one popup at the time of migo posting and that popup ask to user that " How much labels you wants to print?" and in next of that i want one text box or input field in that user inputs the number of labels he wants to print.
I have tried using various POPUP functions but i have not got any FM which fulfill my requirement so please help me on this issue?
Kind Regards
Sudarshan GaikwadThe standart POPUP* function modules seem to either give an option to output descriptive text, or ask for a dictionary based field as an input. As you want both in one popup you may need to write your own custom pop-up.
Create a function group with a Z function module and add a dialog screen with the required text and input field to this function group.
Take a look at function POPUP_GET_VALUES as an example - A custom written one could be a lot simpler.
Then call this function from your user exit.
Andrew -
Hi Yann/Vadim,
Facing a problem in BADI can u please help me out...
I am implementing sourcing dashboard.
I am facing problem while implementing the badi BBP_ECS_PO_OUT_BADI in SRM. and BBP_PO_INBOUND_BADI in R3.
i have written following code in BBP_ECS_PO_OUT_BADI in SRM
method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
data : ls_item type BBP_PDS_PO_ITEM_D.
data : w_customer_fields type BBPS_IF_CUSTOMER_FIELDS_PI.
move 'POITEM' to w_customer_fields-refobject.
move 'CATALOGID' to w_customer_fields-fieldname.
move ls_item-catalogid to w_customer_fields-container.
append w_customer_fields to ct_bapi_customer_fields.
endmethod.
i have created field zsrmcatalogid field in R3 in EKPO table.and i am now implementing the Badi in R3 for BBP_PO_INBOUND_BADI .....in extended classic scenario.
i have written following code in R3 BADI
method IF_EX_BBP_PO_INBOUND_BADI~BBP_MAP_BEFORE_BAPI.
data : wa_customer_fields type bbps_if_customer_fields,
wa_bapi_te_mepoitem type bapi_te_mepoitem,
wa_bapi_te_mepoitemx type bapi_te_mepoitemx,
wa_extensionin type bapiparex.
data : txt_960(960) type c.
read table bbp_customer_fields into wa_customer_fields with key
refobject = 'POITEM' fieldname = 'CATALOGID'.
if sy-subrc eq 0.
move wa_customer_fields-container TO
wa_bapi_te_mepoitem-zsrmcatalogid.
wa_bapi_te_mepoitemx-zsrmcatalogid = 'X'.
endif.
clear txt_960.
clear wa_extensionin.
write wa_bapi_te_mepoitem to txt_960 left-justified.
wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.
wa_extensionin-valuepart1 = txt_960(240).
wa_extensionin-valuepart2 = txt_960+240(240).
wa_extensionin-valuepart3 = txt_960+480(240).
wa_extensionin-valuepart4 = txt_960+720(240).
append wa_extensionin to bapi_extensionin.
clear txt_960.
clear wa_extensionin.
write wa_bapi_te_mepoitemx to txt_960 left-justified.
wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
wa_extensionin-valuepart1 = txt_960(240).
wa_extensionin-valuepart2 = txt_960+240(240).
wa_extensionin-valuepart3 = txt_960+480(240).
wa_extensionin-valuepart4 = txt_960+720(240).
append wa_extensionin to bapi_extensionin.
endmethod.
But its not working...
The PO details are not passed from SRM to R3.......
PLEASE CAN U GIVE ME EXACT CODE FOR CHANGES TO BE MADE IN THIS BADI ..AS IT IS NOT WORKING...
Can anybody help me regarding how to debug the BADI in R3.
Thanks in Advance...Hi Ravi,
You can transfer the standard SRM catalog ID field to R/3 tracking number field (if not already used for another purpose) in the R/3 PO.
This will avoid to implement the R/3 inbound bapi.
Here is an extract of the code.
The ECS PO badi example was here used to transfer the unlimited delivery flag to R/3 PO for a Z combination of criteria as well as the transfer of <b>catalog ID</b> to <b>tracking number field</b> in R/3 PO :
method IF_EX_BBP_ECS_PO_OUT_BADI~BBP_B46B_PO_OUTBOUND.
update unlimited delivery flag in R3 PO for combination of vendor +
Product Category maintained in the bespoke table ZUD_PC_VNDR ..
LOOP AT ct_bapi_poitem INTO ls_bapi_poitem.
lv_tabix = sy-tabix.
IF ls_bapi_poitem-po_item IS NOT INITIAL.
READ TABLE it_item INTO ls_item
WITH KEY number_int = ls_bapi_poitem-po_item
del_ind = ' '.
IF sy-subrc = 0.
Set Unlimited delivery Flag
read table li_zud_pc_vndr into ls_zud_pc_vndr
with key partner = ls_partner-PARTNER_ID
category_id = ls_item-category_id.
if sy-subrc eq 0.
ls_bapi_poitem-UNLIMITED_DLV = 'X'.
endif.
Set the Dummy catalog.. entry..
if ls_item-catalogid eq c_dummy.
ls_bapi_poitem-TRACKINGNO = c_noncat.
endif.
ls_bapi_poitem-GR_BASEDIV = ' '.
modify ct_bapi_poitem from ls_bapi_poitem index lv_tabix
transporting UNLIMITED_DLV TRACKINGNO GR_BASEDIV.
ENDIF. "READ TABLE it_item ..
ENDIF. "IF ls_bapi_poitem-po_item ..
ENDLOOP. "LOOP AT ct_bapi_poitem ..
endmethod.
Kind regards,
Yann
PS : please do reward helpful answers )) -
User Exit or BADI while posting GRs.
HI all,
I am looking for a User Exit or BADI while posting Goods Receipts for Purchase Orders.
I need to change the <b>POSTING DATE</b> on the receipt for certain document types.
i found a user exit : MB_CF001, but this is not allowing me to change the posting date on the material document.
Thanks for your help in advance.Hi Ravi,
This is ULitity program which takes Tcode or program name as a input and gives the BADI existing in the program. Please Allocate me the point if it is usefully to you
REPORT ZBADI_CHECK .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase. -
HI,
At the the of MIGO posting .One FI document will create.
Please let me know how will appear the text in FI document.
Where we have to put text in MIGO screen and any other setting from FI side .
I have tried all MIGO screen text but in FI document text is not appearing
Please give advise asap.
Rgd
AmitHi,
First check the field status group assigned to that GL account. Then go to OBC 4 ...Select the field status group ...which is assigned to that GL account ...then click on general data and make text as required/optional entry.
After completing the MiGO.. check the fi document and double click on the line item .... it will go to the journal screen...enter there text...
Radha -
Problems navigating through old posts
I am having problems navigating through old posts. The slower the forums get, the longer it takes me to read them, and the further behind I get in reading them. Eventually, when trying to read posts that are a couple of months old in the SQL and PL/SQL forum, when trying to navigate from one post to the other, I frequently get an error message. This happens whether I try to use my browser's back arrow to the previous page or click on a page number on the forum page, or change the start number in the url. However, sometimes I actually get back to the page and can select the next post. It is not consistent. Sometimes I can click on the same thing four times in a row and the first three times I get the error, but the fourth time I get a page of posts. So, the error message is not actually saying what is really going on. The following is the error message that I keep getting:
"You have reached the maximum amount of pages in this set of content results. If you are looking for something specific, try applying a content type filter or entering a search term."Yes, I am still seeing the problem sporadically.
-
Hi Friends ,
Following error i am geting in MIGO posting for assets....please help
Authorization missing for Company code 1000 Asset class IN4200
Message no. AA048
Diagnosis
Authorization for Company code 1000 with Asset class IN4200 is missing.
System Response
You cannot create, change or post data in this object.
Procedure
If you want to create or change, use an object for which you have authorization. The display transaction will indicate your missing authorization in the initial request screen.
If you need the authorization for this object, contact your Systems SpecialistHie Balegar.
How did you resolve your error? My client is experiencing the same error AA048 but using t-code SU53 reports missing authorisations which are maintained, have even went further to re-transport the role to no avail. Can you assist with possible solution. -
Il Mac non si connette ai clou per problema con indirizzo di posta elettronica
MI COMPARE IL SEGUENTE MESSAGGIO : IMPOSSIBILE CONNETTERE IL MAC AI CLOUD PROBLEMI CON INDIRIZZO DI POSTA .....COSA DEVO FARE ?
Hi,
Please refer to the help document below to get the verification email:
Didn't receive expected email from Adobe
Regards,
Sheena -
UE or BADI within MIGO Posting
Hi all.
I need to call Z transaction within the posting action of MIGO process. I had tried to use MB_MIGO_BADI and MB_DOCUMENT_BADI but when I tried to write set up a break point it didn't stop there.
Does anyone has an idea about a specific user-exit or BADI ?
Thanks,
RebekaTry these steps to search for a BADI->
http://abap-explorer.blogspot.com/2008/07/how-to-search-for-badis-click-here.html
http://abap-explorer.blogspot.com/
Maybe you are looking for
-
BI 7 : Command to export a table structure of SAP R/3 into a script/text ?
Hi All. Greetings. Am New to SAP R/3 system. And request help. We are trying to pull data from SAP R/3 thro Bussiness Objects Data Services into Oracle. For now : we create a target oracle table looking at the table structure of SAP R/3 from SE 11.
-
BOOTCAMP error while installing Windows 7
I am attempting to use BOOT CAMP to install Windows 7 and I keep getting this error message. The USB drive connected to this Mac contains a bootable volume. In order to install Windows 7 from the DVD, the Boot Camp Assistant needs to disable this fun
-
What is wrong with the edit biling info screen. it cannot verify my address. i triple check my address info and it is correct.
-
I'm looking for a way to toggle video mirroring on & off on an intel imac. My MacBook Pro has a dedicated key, but the Apple Wireless Keyboard does not. Does anyone know of a key command or an applescript that can do this?
-
Hi, I have a PO which has excise conditions maintained in it. But at GR I didn't take its excise. Now when I am doing MIRO system is showing cenvat clng entries. There is a note available to avoid this MIRO entry. May I know the note number? thanks,