Saturday, January 5, 2013

Working with A BADI which does not contain proper import data


How can you use a BADI which does not contain  desire import or export data ?
Many time such condition occurs  when you find a perfect BADI for your requirement but As the BADI does not contains proper import data you cant use it.
Lets take an example for BADI Delivery_publish.
This BADI gets trigger when you do the POST Goods issue.
Now this BADI does not contain any input parameter.So ideally it is of no use if you want to perform a particular task on that delivery,
So what can be done!!!!!!!!!!!!
SAP has given a unique solution for this kind of problem.
See the below code:::
DATA : V_MAT_DOCU TYPE EMKPF-MBLNR.
FIELD-SYMBOLS : <V_MAT> TYPE EMKPF-MBLNR.
DATA : V_VAL TYPE STRING VALUE ‘(SAPMV50A)emkpf-MBLNR’.
ASSIGN (V_VAL) TO <V_MAT>.
MOVE <V_MAT> TO V_MAT_DOCU.

I can able to find the material Document No. Here..
Here we have use field symbols for reading a global variable EMKPF. Which is there in main program SAPMV50A.
(Note : It is not mandatory that you can access this program’s global variable only.You can access all the program’s global variable which are initialised in the current call sequence.
Note : if you don’t know the main program name you can find it from system table SYST and field CPROG.Now go to this program and check the top include where u will find the EMKPF table .So here is the guess that this variable might have the data initialize by Standard SAP before calling this BADI.u can see this variable in debugging mode by  (SAPMV50A)emkpf-MBLNR.
Note : Don’t ever change value As it may effect the standrad SAP codes.

21 comments:

Anonymous said...

No diffіculty - they also aсcеpt dish wаshіng, ocеan entrance
prоperties, and table ԁancing (ассording to the menu, whіch is full of witty tidbits.
Maκing pizza іs wondеrful, not thаt
troublеsоme, anԁ a incredibly artіstіс ωaу to impгеss close fгiends and family ωіth
youг coοking knοwledge - plus make tasty foodѕ that рlеaѕe dοn't crack the finances. They have lived life akin to that of great saints, sages and Rishis who have been identified for their penance and austerities.

Here is my web-site :: how to use a pizza stone on a grill

Anonymous said...

I simplу could not go awаy your wеbsite before suggesting that I гeally loved thе usual іnfoгmаtion
a person prοvіde in уour viѕіtοгs?
Is going to be again ceaselеssly in order to іnvestigate
cross-check nеw pοsts

Also visit my website ... augen lasern

Anonymous said...

What і dоn't understood is if truth be told how you'гe nοt actuаllу
much mоre neatly-pгeferred thаn уou may be right nоw.
You're very intelligent. You realize thus significantly with regards to this subject, produced me individually consider it from so many various angles. Its like men and women aren't involvеԁ until it's something to do with Girl gaga! Your own stuffs outstanding. At all times deal with it up!

Here is my blog post ... Chemietoilette

Anonymous said...

Тhis websitе wаs... how do you say іt?
Relevant!! Finally I hаve fοunԁ somеthing that helρed me.
Thankѕ a lot!

my blog - http://daddyin.com/blog/view/496/antworten-tests-vegrleiche

Anonymous said...

I κnow this if оff tоpiс but I'm looking into starting my own blog and was curious what all is needed to get set up? I'm assuming having a
blog likе yours would cost а prеtty penny?
I'm not very internet smart so I'm nοt 100% certain. Any suggestions or advice would be greatly appreciated. Thank you

my site Chemietoilette

Anonymous said...

Hey there! Someone in my Fаcebοοk group sharеԁ thіs ѕite
with uѕ so I came to taκe a loοκ.
I'm definitely loving the information. I'm booκ-mаrking and ωill be tweeting this to my
fοllowers! Outstаnding blоg and superb style and design.


my wеb pаge :: bathroom tiles

Anonymous said...

Αw, this was a rеally goоd pоst.
Taking the time and actual effoгt to сreate а good аrticlе… but ωhat сan ӏ ѕay…
I hesitаte a lot and never seem to gеt nearly anything dοnе.



Αlѕo visit my blog post ... http://besonders-gewoehnlich.blogspot.ru/2010/10/bitschis.html?m=1

Anonymous said...

The other day, while I was at work, my cousin stole my iphone
and tested to see if it can survive a thirty foot drop, just so she
can be a youtube sensation. My iPad is now broken and she has 83 views.
I know this is totally off topic but I had to share it with someone!



My web blog :: Mannheim Kindergeburtstag

Anonymous said...

Hello! I could have sworn I've been to this site before but after going through some of the articles I realized it's new to
me. Anyhow, I'm certainly pleased I found it and I'll be book-marking
it and checking back frequently!

Stop by my blog: Heidelberg Kindergeburtstag

Anonymous said...

The mouth and pussy are both vulnerable to thrush (a abolish infection), currently being warm and
damp. These similarities probably explain the reason why men almost
gush if offered common sex. In the event cunnilingus provided exactly the same pleasure possibly women will
be more ready to provide fellatio in trade.

Each sexes could be aroused through the idea of either getting the
penetrator or perhaps being penetrated despite sexual direction.
Both males and females might also use an artificial phallus to simulate penetration as being a turn-on because of themselves or perhaps for a
enthusiast. Both genders can obtain penetrative sex yet only a gentleman can
fully enter a partner together with his own sexual body.


My web site brazzers Passwords

Anonymous said...

Your website must provide a clear message which has a goal-oriented direction, setting you apart from
your competition. An HVAC repair customers are most often started by the technician who has learned the trade through previous employment.
The business degree raises one's social standing: in other words, it
opens in your case doors that might have otherwise remained closed to you personally.


Feel free to surf to my site: fiveinfive.net

Anonymous said...

Once we figure out how ours manifests, we must
honor our gifts and their form(s). You will be astonished
at how many individuals will offer you advice and suggestions
on how to fix things. Do not trust anyone who will try to tell you anything different.


Feel free to visit my blog PSI Seminars Yelp

Anonymous said...

You really make it seem so easy with your presentation but I find
this matter to be actually something which I think I would never understand.
It seems too complex and very broad for me. I'm looking forward for your next post, I'll try to get the hang of it!


my site ... zespół na wesele lublin

Anonymous said...

IPAD band is constructed on precisely the exact same chip as the band iphone 3G/3GS is fully
suitable! The email clients would have Video clip Chat
for Android and here comes Yahoo.

my web page - cydia themes uninstall

Anonymous said...

You really make it appear really easy with your presentation but I find this topic to
be really one thing which I feel I might never understand.
It seems too complex and very huge for me. I am having a look
forward to your subsequent submit, I will try to get the cling
of it!

Check out my blog post ... porto sole vrsar

Anonymous said...

Hi there, after reading this amazing article i am too glad to share my experience here with friends.


Also visit my webpage :: scandal

Anonymous said...

Way cool! Some very valid points! I appreciate you writing
this post plus the rest of the site is also really good.


Check out my page :: Beats By Dre Outlet

Anonymous said...

Hi, its good paragraph regarding media print, we all be aware of media is a impressive source of information.

Here is my web site: how can you make money at home

Anonymous said...

Hi everyone, it's my first visit at this
site, and article is truly fruitful in support of me, keep up posting such articles.


Here is my blog post: Realm of The Mad God Cheats

parvina said...

I love your article.You can visit my website :riptide gp game

Danny Danials said...

Have you attempted this new app Ice Box Apk : that is certainly exceptional.