on 2010 Feb 02 9:32 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SORTED THANK YOU ALL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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.
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.
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.
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.
User | Count |
---|---|
91 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.