cancel
Showing results for 
Search instead for 
Did you mean: 

miro - enhancement

Former Member
0 Kudos
197

hi friends,

i have requirment in TCODE - MIRO where the user comes and gives all the values such as

invoice date

reference

amount

PO Number and

click on the G/L ACCOUNT and

gives GL ACCOUNT and AMOUNT and clicks on ENTER

then in the TEXT column the text should be displayed such as VENDOR NUMBER, NAME and REFERENCE.

is it possible to do if so how can i do it... can i have some input pls.

thank you,

pasala.

Accepted Solutions (1)

Accepted Solutions (1)

nirajgadre
Active Contributor
0 Kudos

Hi,

Try to create the substitution step at the item level using transaction OBBH.

In the step--> in prerequisite condtion put the SY_TCODE = 'MIRO'.

In substitution field select the USER EXIT.

Copy the substitution program RGGBS000 as the Y or Z program and maintain the same in the V_T80D table.

In the user exit you will find out the standard structures BKPF, BSEG.

concatenate the data as per your requirement and pass this to the BSEG-SGTXT.

Former Member
0 Kudos

hi niraj,

thank you so much for the reply,

i am new to this enhancement and i have never done before your clearer input really helps me.

i have gone to tcode : OBBH and where can i set the precondition?

i dont see anywhere pls i will be looking for your reply

thank you,

pasala.

nirajgadre
Active Contributor
0 Kudos

Hi,

try to use below link for creating the substitution...

[http://help.sap.com/erp2005_ehp_03/helpdata/EN/27/06e23954d9035de10000000a114084/frameset.htm]

Former Member
0 Kudos

hi niraj

Tools ® Maintain Validation/Substitution/Rules ® Maintain Substitution.

but i cant see under tools the substitution... sorry for asking little things... the reason for my asking is i have never done this kind of work and i really need your help.

thank you,

pasala.

Former Member
0 Kudos

hi niraj,

i have created a substitution and step in step 1 in the prerequisite when i want to write it does not allowm to write anything..

it is in non-editable mode... how can i give my code in pre-requisite?

can i have some input pls?

thank you,

pasala.

Answers (2)

Answers (2)

Former Member
0 Kudos

SORTED THANK YOU ALL.

Former Member
0 Kudos

hi friends,

i have created a substitution and created a step when clik on prerequisite it does not allow me to write anything as it is non-editable mode can anyone pls tell me how to do it.

thank you,

pasala.

nirajgadre
Active Contributor
0 Kudos

Hi,

you need to use of the fields available in the tab strip and use the button available in the screen to enter the values in the prerequisite.

Former Member
0 Kudos

hi niraj,

thank you for the reply,

in first step i have seen SYST-TCODE but how can i give as you said syst-tcode = MIRO

Now how can i give MIRO in the prerequisite?

i really thank you,

pasala.

nirajgadre
Active Contributor
0 Kudos

Hi,

Click on equal to button and then on the constant button and give the constant as MIRO.

Former Member
0 Kudos

Hi Niraj,

thank you for your valuble contribution and time.

as you said....

i have created SUBSTITUTION in OBBH.

1. CREATED SUBSTITUTION

2. CREATED A STEP.

3.I N PRE-REQUISITE i have said like this ST-TCODE = 'MIRO' BKPF-BUKRS = 'TR05'

4. IN SUBSTITUTION - I HAVE SELECTED AS USER EXIT.

NOW :

in my company the prog is already been copied as ZF_GGBS000 and and maintained in the table V_T80D

so can i use this program?

after this what can i do where should i write the code?

am almost their please your help is highly required and really looking forward to your reply.

thank you,

pasala.

nirajgadre
Active Contributor
0 Kudos

Hi,

1. In created program create the exit U*** as as the exit present in the program.

exits-name = 'U***'. " name of the exit start with U and three digit number

exits-param = c_exit_param_none.

exits-title = 'text'. " Value For Substituting

APPEND exits.

2. Assign that exit in the created substitution in OBBH.

3. Write the form routine .

form U***.

Enter the logic for the population of the text in the BSEG-SGTXT.

Endform

Former Member
0 Kudos

thank you niraj GREAT answer

can i use the prog that which alredy available in my company? and write the logic?

1. STEP

data: begin of exits occurs 50,

name(5) type c,

param like c_exit_param_none,

title(60) type c,

end of exits.

exits-name = 'U100'.

exits-param = c_exit_param_none.

exits-title = text-100. "display vendor name,number and ref on texts

append exits.

2. STEP

i have selected the U100 in the OBBH.

3.STEP

DOUBT : in the prog do you want me to declare ---

form su01

logic

endform.

now how can i get the values that are available on the MIRO tcode?

thank you,

pasala.

nirajgadre
Active Contributor
0 Kudos

hi,

you can use the same program and create your own exit in the same program.

you will get the Entered data inside the std structure BKPF,COBL,BSEG.

you can check the same by putting the break point in side u r exit.

Former Member
0 Kudos

hi NIRAJ,

I have used the same prog

written the code and maintained in the OBBH

the EXIT IS = U001.

in the substitution i have selected the U001.

BUT it does not take to my routine.

i have writen tHE ROUTINE Like this.

form U001.

endform.

but once i give the EXIT NAME in the SUBSTITUTION It does not move anywhere.

but when i trying to select the EXIT it goes DEBUGGER and not after my selction of EXIT - U001.

CAN YOU PLEASE TELL WHAT I NEED TO DO NOW.

thank you,

pasala.

Former Member
0 Kudos

hi Niraj,

good morning,

can i have some input pls... i am desperately looking for your reply.

thank you,

pasala.

nirajgadre
Active Contributor
0 Kudos

Hi,

To check the substitution ..

Put the break point in the exit name. U001.

form U001.

put the break point.

Endform.

now run the transaction miro and check at the time of save whether the code is stopping into debugging mode.

Former Member
0 Kudos

hi Niraj,

thank you for the reply.

small doubt niraj...

1. To write the routine in the program do we need to double click anything where by system asks us to create ROUTINE? or do we manually write FORM and ENDFORM?

2. In PRE-REQUISITE i have writen the code like this... is it correct to reach to the point of MIRO TEXT?

SY-TCODE = 'MIRO' AND BKPF-BUKRS = 'TR05'

3. In SUBSTITUTION i have selected the field for USER-EXIT is BSEG-UGTXT(TEXT).

thank you,

pasala.

nirajgadre
Active Contributor
0 Kudos

Hi,

1. you need to goto to the routine and enter the form and endform routine manually.

2. the pre-requisite is only to trigger the exit and exit will get call for each line item.

3. when you enter the save button this exit will trigger and you will get the BSEG data into the stucture so pass the data in BSEG-SGTXT for each line item.

Former Member
0 Kudos

THANK YOU... NIRAJ.