Help in reading IS_BIL_INVOICE-HD_ADR in invoice smartform
Hi,
I need to read IS_BIL_INVOICE-HD_ADR in my Invoice smart form. Can someone please let me know how can I read it.
When I write code as follows, I am getting error.
data: lv_HD_ADR like IS_BIL_INVOICE-HD_ADR.
read table IS_BIL_INVOICE-HD_ADR into lv_HD_ADR with key partn_role = 'AG'.
What mistake am I doing ?
Regards
Sudhaker
What kind of error?
Take a look at the standard Smartform LB_BIL_INVOICE. It has a global item GS_HD_ADR (TYPE LBBIL_HD_ADR) declared. Then the code goes like this:
CLEAR GS_HD_ADR.
* get customer adress number
READ TABLE IS_BIL_INVOICE-HD_ADR INTO GS_HD_ADR
WITH KEY BIL_NUMBER = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER
PARTN_ROLE = 'WE'.
ADRNR = GS_HD_ADR-ADDR_NO.
Also keep in mind that in your node you must have IS_BIL_INVOICE in the Input Parameters.
Hope this helps.
Similar Messages
-
Bill to party address printing in standard invoice smartform
Hi Experts,
I am trying to modify the standard invoice smartform as per client requirement.In the payment window, i deleted the fields which are not necessary and I have to print bIll to party address in payment information window. I wrote the code like this in program lines.
CLEAR GS_HD_ADR.
get customer adress number
READ TABLE IS_BIL_INVOICE-HD_ADR INTO GS_HD_ADR
WITH KEY BIL_NUMBER = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER
partn_role = 'RE'.
ADRNR = GS_HD_ADR-ADDR_NO.
DATA : IT_ADRC TYPE STANDARD TABLE OF ADRC with header line
WA_ADRC like line of it_ADRC.
SELECT * FROM ADRC INTO TABLE IT_ADRC
WHERE ADdrnumber = GS_HD_ADR-ADDR_NO.
read table IT_ADRC INTO WA_ADRC index 1.
Next I Created one text node and I inserted fields like
&wa_adrc-name1&
&wa_adrc-street&.
In SE16 , data is there for name1 and street fields of ADRC table. when I am trying to activate the form , iam getting warning message as field&wa_adrc-name1& has no defined value. In the output, data is not displayed for bill to party address. Please tell me the solution.Hi Parwez,
Sorry Iam very busy from morning.So,Iam unable to reply .You can ignore the warning messages.
In global definitions, types tab write the following code.
types:begin of ty_adrc,
addrnumber type AD_ADDRNUM,
name1 type AD_NAME1,
street type AD_STREET,
city1 type AD_CITY1,
city_code type AD_CITYNUM,
end of ty_adrc.
types:wa_adrc type table of ty_adrc.
In global data,
it_adrc type table of ty_adrc
wa_adrc type ty_adrc
In the program lines of address window, write this code.
CLEAR gs_hd_adr.
get customer adress number
READ TABLE is_bil_invoice-hd_adr INTO gs_hd_adr
WITH KEY bil_number = is_bil_invoice-hd_gen-bil_number
partn_role = 'RE'.
adrnr = gs_hd_adr-addr_no.
SELECT name1 street city1 city_code FROM adrc INTO corresponding fields of TABLE it_adrc
WHERE addrnumber = gs_hd_adr-addr_no.
loop at it_adrc into wa_adrc.
READ TABLE it_adrc INTO wa_adrc with key addrnumber = gs_hd_adr-addr_no.
endloop.
try with this code -
Problem in invoice smartform requirement
Hi,
Invoice smartform was developed without using the control structures, as some problems is occuring,
i have used the control structures, earlier while calling the function module from the driver program.
they have passed internal table it_head in the driver program and in the form interface of the smartform
as i am using control structures i have taken in the loop. and passed work area from driver to smartform
changing in the form interface of the smartform
the runtime error is coming as The field "WA_HEAD" cannot be changed.
can any pls expalin what is the wrong going on and steps to correct it.Hi,
That will happen because you are using local structure in driver program,passing internal table of local structure to global intetface at smartform ,you are using the same structure as in driver program at smartform interface(that is local to driver program).
create Global structure in SE11,,then use the same structure to create internal table in both side(in driver and smartform)
run time error will clear.
any help revet back
Thanks... -
Hello,
I have written a bespoke invoice smartforms. The problem I am having is that sometimes the smartform is generating a 'next page' when it does not need to. There is a Footer detail defined within MAIN. The smartform lists the items and then prints the footer detail and then it sometimes prints the next page but with just the general information (i.e logo, title, invoice number, etc). In some instances there is no item information so there is no secondary window expected to displayed on the next page.
My question is, how do I stop this additional page from being produced when there are no items to be displayed on this page? I thought that the 'next page' is only suppose to be generated when it cannot fit the items all on the first page.
Has anybody experienced the same problem? Any help would be appreciated.
Thanks in advance.Hi,
I had this requirement, where the items should be displayed only on 1 page, as it was an Excise Invoice.
If the Items spill over to the next page, I generate an error Pop-up message, thereby stopping the Print-preview processing.
In your MAIN window, put this code to chk the current page no.
if sfsy-formpages > 1.
message 'Items splilling over to next page' type 'E'.
return.
endif. -
Printing double line / small box residing in main box - Invoice smartform
Hi,
I have 2 Invoice smartforms, meant for Country_A and Country_B. We r on ECC 6.00
Country_A is printing fine.
But, when comes to Country_B, in ITEM table, the header box, (where column labels are printed), one more box is printing!! it looks like (not exactly) instead of single line ________ its printing ======, so, pls. let me know, Wht culd be the reason?
Thank youHi,
Check that if you used table borders in attributes of line types.
And also check if you are using sy-unline...
Regards,
Shankar. -
VF01- invoice smartform in PDF format to be sent thro' mail
Hello Gurus,
We have a requirement from our client that we need to trigger a mail of invoice smartform in PDF format on saving in VF01.
Can any body suggest the steps in NACE and also output..
RegardsAs per your post, I understood that,
After saving Invoice , automatically Invoice has to send in PDF format to the respective email id maintained in CMR-Payer master
if yes, this involves ABAP & BASIS ,
ABAP- Program & FOrm routine has to created & assigned in respective output type & type-PDF (Check in NACE- Output type)
for this, you need to maintain the Condition record- VV31 - with medium as "Mail" -
or else,
you can do this manually also, in VF31- you can give a print & save in PDF format- you can send it - but its complete manual process. -
Regarding Purchase Invoice Smartform
Hi.I need to develop a purchase invoice smartform.I am having the following fields.
1) g/l Account
2)Narration
3) Posting Date
4)Bill Number
5) Bill DAte
6)PO No
7)PO Text
8)Voucher No
9)Voucher date
10)quantity 11) rate 12)amount13)discount 14 ) sales tax
What are the tables & Fields required for these.I'm not sure whether to take these from rbkp rseg or from purchase tables.
It's very urgent.
Helpful answers would be appreciatedHi
Look at the tables EKBE.
RKPF and RSEG for the pur invoice info and if needed look at the tables BSIK and BSAK also for the accounting info
Regards
Anji -
Regarding Purchase Invoices Smartform
Hi.I need to develop a purchase invoice smartform.I am having the following fields.
1) g/l Account
2)Narration
3) Posting Date
4)Bill Number
5) Bill DAte
6)PO No
7)PO Text
8)Voucher No
9)Voucher date
10)quantity 11) rate 12)amount13)discount 14 ) sales tax
What are the tables & Fields required for these.I'm not sure whether to take these from rbkp rseg or from purchase tables.
Helpful answers would be appreciated.hi
you can use RBKP and RSEG tables for Vendor invoice (purchase) form output
if needed you can use EKBE, BSik and BSAK tables alos
Regards
Anji -
Invoice smartform wrong format date
Hi All,
In the invoice smartform we have using the standart date form; thats means that the format date comes from the user profile (SU3 or SU01) in the default tab. In our case the users have the following form DD.MM.YYYY; but the output shows the format YYYY.DD.MM.
Our IT guy told me, he have no found nothing wrong in the debuging; because we are using the standart tool.
Has someone had these error? How resolved it?
Thanks,
JCRHi,
I remember other possibility. Check in the smartform (tcode SMARTFORMS) for the field, you can have a coding for it. Check the before commands (SET LOCALE and GET LOCALE). Look for the help of an ABAPer if you don't know this tool.
Regards,
Eduardo
PD: or the command WRITE date TO field_date FORMAT yyyymmdd.
Edited by: Eduardo Hinojosa on Jul 15, 2010 10:05 AM -
Hi experts,
I have seen invoice smartform step by step procedure in the following link.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/printing+invoices
But when Iam trying this smartform, we dont have predifined types like y_ty_vbrk in our server. So, can anyone tell me what are thedeclarations to be maintained in form interfaces and global variables and what shoulb be written in the types declaration. In the link,in one screenshot we have
OPERAND . but in our server we have INTERNAL TABLE. what should we have to write there for activating the smartform without errors.in FORM interface you have belwo strctures.
most of the data you will get IS_BIL_INVOICE if not there you will create own internal table in smartform itself..
IS_BIL_INVOICE TYPE LBBIL_INVOICE
IS_NAST TYPE NAST
IS_REPEAT TYPE NA_REPET -
Gurus..need help in reading data from virtual infocube
Gurus,
I have to read data from an virtual infocube...I am trying to use FM RSDRI_INFOPROV_READ to read data but it doesn't work..
I am doing exactly what has been done in the demo program RSDRi_INFOPROV_READ_DEMO...
Please help me...its really URGENT...
Thanks
samCheck out this thread....
must be helpful
Re: Read data from 0BWTC_C02 via ABAP -
Hi,
Need some help on read statement.
I need to read the records which starts with some character and need to specify the same in where condition as below.
read table i_itab
into w_itab
with key objnr = w_itab-objnr
stat CS 'E'
Binary search.
Getting error as should not use CS in the read statement. How to read the records which starts with letter 'E' only in this case.
Can anyone help me out in this.
Regards,
RamYou should be able to do a binary search to get the first record and then do indexed reads to get subsequent records.
Something like:
DATA tab_index LIKE sy-tabix.
SORT i_itab BY objnr stat.
IF sy-subrc = 0.
tab_index = sy-tabix.
ENDIF.
WHILE sy-subrc = 0.
IF w_itab-stat CS 'E'.
* process record.
ENDIF.
tab_index = tab_index + 1.
READ TABLE i_itab INDEX tab_index.
IF sy-subrc = 0.
IF i_itab-objnr <> w_itab-objnr.
sy-subrc = 9.
ENDIF.
ENDIF.
ENDWHILE.
Rob
Message was edited by: Rob Burbank -
Invoice Smartforms or Sapscript for Argentina
Gurus,
Does anyone knows if SAP provided an Invoice smartform or sascript specific for Argentina?
Thanks,
ApollohELLO,
You can take a copy of MEDRUCK sapscript and customize it to your needs.
I´d recommend to create a new sapScript instead.
Bye
Gabriel P -
Adobe Reader XI 11.0.3 Help Adobe Reader XI Help not working!!
Dear All,
I've got the below error when click on : Help>Adobe Reader XI Help
Please suggest the solution how to fix my reader help.
Also followed following link to trouble shoot but no luck!!
http://helpx.adobe.com/acrobat/kb/error-online-help-content-cannot.html
Your help is very much appreciated.
Regards,
NEYIGAPULAHi Pat,
Here is the solution worked but not sure we can implement this or not.
Installed Adobe AIR
Installed Adobe Help Manager
- Downloaded offline PDF
Changed Adobe Reader EXE AcroRd32.exe compatibility settings to Windows XP SP3
Launched Adobe Reader > Prompts "protected mode" windows to disable> Disabled Protected mode>Help working fine now
Would you mind tell me the importance of Protected mode in New version of Adobe reader.
Regards,
Srinivas N -
Need help to read Instant messenger packet
I need help to read the IM packet from the LAN.Can anyone help me? I doing my project to monitor the IM in LAN.If got example,pls show me.
There are several problems with this. First, it is not possible to separate IM packets from any other packets floating around a network. Second, to peek at packets intended for other computers is a pretty big no no.
If you really need to do this, build a proxy server or some layer in the middle of your IM where you can record
I need help to read the IM packet from the LAN.Can
anyone help me? I doing my project to monitor the IM
in LAN.If got example,pls show me.
Maybe you are looking for
-
How to excute a batch file from Analyzer Report
Hello, I trid to use the service launch executable and in the browse i used a batch script which doesn't execute when i click on the button.
-
Mail App connecting to Exchange via IMAP - Address Book Images
Not a life or death problem, I have multiple accounts in Mail App - some using POP3, Some using IMAP. The IMAP accounts don't show Address Book images at all. The POP3 accounts are fine. Odd one, any ideas why?
-
Hi all, I´m trying to create a phsysical data service that uses two physical data services (one Store procuredure and one table). I what two create a join clause between my strore procedure and my table, but i got this error message: +"cannot create
-
Re: multiple methods - Help
It looks you used it, what are you saving the extra 5 duke'd for ? Noah
-
How do I disable the guest account
Can someone show me how to disable the guess account from the log-in screen?