cancel
Showing results for 
Search instead for 
Did you mean: 

Header and Item text details not displaying in Capital and Import PO......

Former Member
0 Kudos

Hi Abapers,

I copied the standard PO /SMB40/MMPO_A to ZForm, and customized like changing logos,address,footer etc.., after activating the form and while print previewing the standard purchase order all details displaying including header,item,terms of payment,delivery schedule.

But for Import and Capital PO, the header,item,terms of payment,delivery schedule,etc.., details not displaying nor printing in the form.I didnt changed or customized the above windows in the form, but the above details want to display in the form for Capital and Import PO.

I am getting all the details for Standard PO, but not for Capital and Import PO.

Let me give some suggestions for the above issue.

Thanks & Regards,

Dilip.B

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

Check in the program whether u r calling a different form for Capital PO or not

Check when the item details are printed is their any condition which avoids Capital po line items for not printing , similar to header.

Check both the driver program and the Script during debugging the script ok ..

surya

Former Member
0 Kudos

Hi Surya,

Thanks for your reply.

I am using only one form for all the PO document types, and there is no codes with conditons blocking for Capital and Import PO's.

I am using the standard Purchase Order for this.

I checked the standard smartform, and their is no condition for blocking import and capital PO texts. The below is the code written for retrieving header text in smartform header window..,


* read IMG setting -- table T166K
* append texts allowed to GT_HD_TEXTS
* Head Text Part
CLEAR LS_TEXT.
LOOP AT LT_TEXTS INTO LS_TEXT.
SELECT SINGLE *  FROM T166K  INTO LS_T166K
WHERE DRUVO     = IV_DRUVO  AND
BSTYP     = IS_EKKO-BSTYP  AND
BSART     = IS_EKKO-BSART  AND
TDOBJECT  = LS_TEXT-TDOBJECT AND
TDID      = LS_TEXT-TDID.
IF SY-SUBRC = 0.
APPEND LS_TEXT TO GT_HD_TEXTS.
ENDIF.
CLEAR LS_TEXT.
ENDLOOP.

Thanks & Regards,

Dilip.B

Edited by: Dilipkumar B on Oct 22, 2009 7:58 AM