Tables for Purchase Requistion Header and Item Texts
Hi,
In which Tables does Purchase Requistion Header and Item Texts will be stored.
Thanks in advance
Not sure , you can try with T166K , T166P
Similar Messages
-
Transaction to Mass Update Header and Item text in Purchase Order
Dear All
Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
One Single Text For Ex :" This is a Dummy PO" .
This text needs to be updated in large number of POs.
Please let me know your views
Reg
ShyamHi Shyam,
You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
"You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
for services in the PoServicesText table. Texts can only be replaced complete."
Regards,
Purnima. -
Z-Report for PR using ES language not getting the Header and Item text deta
Hi,
We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
Please guide me.
Thanks
ShitalHave you maintained Tetexxt in ES language or is it that you are expecting on selecting ES the text from En will get coverted to ES and display in your report?
-
What table stores delivery header and item texts?
Hi Gurus,
Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
Can you please tell me which table store the texts?
Best regards,
Pavan>
Pavan1 wrote:
> Hi Gurus,
>
> Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
>
> Can you please tell me which table store the texts?
>
> Best regards,
> Pavan
This stores in text objects so you need to pass
Here is simple thing to find what to pass to the read_text function module.
Go to delivery - If you want to find header text - GOTO (on application menu) - Header -texts - Double click on the text where you enter text - GOTO (on application menu) - Header - This will give you a popup kind of screen where you can find the
text name (if it is header - only delivery number and if it is item - deliverynumber + item number ) , lang, Text id, Text object
This will give you the required parameters... . -
Trigger delta and extract header and item texts for sales order
Hi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
ShreyasHi,
I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
Nothing else is changed on the order except the header or item texts.
Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
Thanks
Shreyas -
How to upload the Header and Item texts
Hi ,
I need to upload the Header and Item texts , what is the process to upload.................................
Regards,
Raghunath.Shi,
see the sample code.
report ZVENDOR_BANK
no standard page heading line-size 255.
*-----tables declaration
tables:lfa1,lfbk,t100.
*-----data declaration
data:begin of it_dummy occurs 0,
dummy(100) type c,
end of it_dummy.
data:begin of it_lfa1 occurs 0,
lifnr like lfa1-lifnr,
ktokk like lfa1-lifnr,
name1 like lfa1-name1,
sortl like lfa1-sortl,
land1 like lfa1-land1,
end of it_lfa1,
begin of it_lfbk occurs 0,
lifnr like lfbk-lifnr,
banks like lfbk-banks,
bankl like lfbk-bankl,
bankn like lfbk-bankn,
koinh like lfbk-koinh,
end of it_lfbk.
data:bdcdata like bdcdata occurs 0 with header line.
start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\Rvelagapudi\Desktop\vendor.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = '#'
TABLES
DATA_TAB = it_dummy
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
loop at it_dummy.
if it_dummy-dummy+0(1) = 'H'.
it_lfa1-lifnr = it_dummy-dummy+1(4).
it_lfa1-ktokk = it_dummy-dummy+5(4).
it_lfa1-name1 = it_dummy-dummy+9(7).
it_lfa1-sortl = it_dummy-dummy+16(2).
it_lfa1-land1 = it_dummy-dummy+18(2).
append it_lfa1.
else.
it_lfbk-lifnr = it_dummy-dummy+1(4).
it_lfbk-banks = it_dummy-dummy+5(2).
it_lfbk-bankl = it_dummy-dummy+7(8).
it_lfbk-bankn = it_dummy-dummy+15(8).
it_lfbk-koinh = it_dummy-dummy+23(4).
append it_lfbk.
endif.
endloop.
loop at it_lfa1.
refresh bdcdata.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-KTOKK'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
it_lfa1-lifnr.
perform bdc_field using 'RF02K-KTOKK'
it_lfa1-ktokk.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-LAND1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
it_lfa1-name1.
perform bdc_field using 'LFA1-SORTL'
it_lfa1-sortl.
perform bdc_field using 'LFA1-LAND1'
it_lfa1-land1.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-KOINH(02)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
data:FNAM(20) TYPE C,
IDX TYPE C.
move 1 to idx.
LOOP AT IT_lfbk WHERE LIFNR = IT_lfa1-LIFNR.
CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-banks.
CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-bankl.
CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-bankn.
CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
it_lfbk-koinh.
IDX = IDX + 1.
endloop.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
call transaction 'XK01' using bdcdata mode 'A'.
endloop.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM. "BDC_DYNPRO
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> SPACE.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM. "BDC_FIELD -
Header and Item Texts for Sales Order
Hi,
Can any one help me on Header Text and Item Text...........
<b>STXH & STXL</b>
TDOBJECT :__________
TDID:_____________
TDNAME :_______________
Regards,
Raghunath.SHi
Double click on the related text
it will open Text editor
from Menu GOTO-> header
for SO HEADER Texts
then you see the 4 paramters like OBJECT (VBBK),ID,OBJECTNAME (sales Order No) and LANG
FOR SO ITEM texts
OBJECT (VBBP table), ID, OBJECTNAME(SO no plus ITEM No) and LANG
You have to pass these 4 parameters to READ_TEXT fun module to fetch the corresponding texts
see the doc on READ_TEXT
READ_TEXT
READ_TEXT provides a text for the application program in the specified work areas.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
Function call:
CALL FUNCTION 'READ_TEXT'
EXPORTING CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters:
CLIENT
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
<b>Reward points for useful Answers</b>
Regards
Anji -
Detecting change on header and item texts for sales order in user exit
Hi,
In the user exit of VA02, I need to identify/detect if header or item texts for sales order is changed or not.
Please advise on this.
Regards,
ShreyasNormally system stores the old values in XTables and new values in YTables. Check if you have access to these in your user exit. If you give the user exit name, someone will be able to guide you.
hith
Sunil Achyut -
Header and Item Text is not replicating from ECC6.0 to SAP CRM 7.0
Hi SAP Experts,
When the text is added at header and item in Texts tab from SAP CRM then this is transferring into ECC6.0 but the otherway round is not working i.e., from ECC6.0 to SAP CRM.
Would appreciate for giving solution.
Thanks in advance.
Best Regards
SucchiHi Succhi
There are a number of oss notes to check: 1169856, 720147, 550343, and 549209
Please make sure that the text tables are included in the filter as per note 720147.
Also include the configuration as per note 549209.
It is necessary that the same text types exist in both systems so please review the configuration carefully.
I hop this helps.
Best Regards
Gavin -
User exit for change PO (me22n) for save header and item text.
Hi Experts,
I have a requirement to read the header texts/item text at run time .
please tell me is there any save user exit for tc me22n .
Thanks in Advance.
PareshTransaction Code - ME21N Create Purchase Order
Exit Name Description
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
No of Exits: 35
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal -
Hi
Requirement is to copy the text from PO to Inbound delivery.Need how and what are all the step in configuration required?
-PrabuHi,
Solution
This note should help to map the text determination procedure from the
purchase order in the system correctly.
The function 'Text from purchase order' is available as of Support
Package SAPKH46B32 in Release 4.6B and SAPKH46C23 in Release 4.6C.
The following consultation refers to Customizing as of Release 4.70 and
higher - transaction VOTXN.
However, it is also relevant for Releases 4.6B and 4.6C as of the
Support Packages mentioned above - transaction VOTX.
Customizing for the procedure texts from purchase order -> delivery
1. Delivery type definition
Define your own delivery type for texts from purchase orders.
Since preceding documents from purchase order and sales order may
exist for deliveries, a separate delivery type is required for a
correct text determination.
Create access sequences
Example: instead of replenishment delivery RD -> new ZRD
2. Text determination procedure definition
Use transaction VOTXN (VOTX) and create your own text procedure at
header level as well as at item level.
3. Creating access sequences
For the new text determination procedures, use text objects EKKO and
EKPO to create new access sequences.
If you only want to find texts in this access sequence that were
created manually in the purchase order, text object EKKO or EKPO is
sufficient.
Here you should also maintain the condition for both text objects.
These are
EKKO > '1'
EKPO > '50'
The maintenance of additional text objects in these access sequences
is also possible of course, for example, 'TEXT'.
4. Text determination procedure assignment
Assign the new text determination procedure of the header texts to
the new delivery type and the text determination procedure of the
item texts to the relevant item categories.
In VOTXN (VOTX), this assignment is required.
Check in case of errors in the texts from purchase order procedure
1. Check: Customizing
> see above
2. Check: Table RVTXOBJ
If the system issues error message VC 220 'Only special text objects
are allowed' when you create the text objects EKKO and EKPO in
transaction VOTXN (VOTX),
check the table RVTXOBJ.
To do this, use transaction SE16 to go to the table.
If the entries EKKO and EKPO are missing there, execute the SDTXNMUP
correction report.
This reorganizes the table. -> For further information, see SAP Note
711954.
3. Check: Table TFRM
Use transaction SE16 to display the table contents of the TFRM table
and enter the 'TXNM' field value as the selection condition for the
group indicator for copying control (GRPZE).
Check if the entries for TXNM with grouping numbers (GRPNO) 018 and
019 exist > EKKO/EKPO.
> table TFRM
GRPZE GRPNO BEZEI
TXNM 001 VBBK text name
TXNM 002 VBBP text name
TXNM 003 MVKE text name
TXNM 004 TEXT text name
TXNM 005 VBKA text name
TXNM 006 KNVV text name
TXNM 007 KNVK text name
TXNM 008 KNB1 text name
TXNM 009 KNA1 text name
TXNM 010 MATERIAL text name
TXNM 011 KNMT text name
TXNM 012 VTTK text name
TXNM 013 VBBK text name
TXNM 014 VBBP text name
TXNM 015 KONA rebate payment
TXNM 016 WBRK text name
TXNM 017 WBRP text name
TXNM 018 EKKO text name <<<<<<<
TXNM 019 EKPO text name <<<<<<<
If these two entries are missing, use the solution provided in
Note 524453. The cross-client RV80INCTFRM report generates the
missing entries in TFRM.
Then start the RV80HGEN report that regenerates the relevant
includes.
You must take into account the comments in the long text of Note
524453.
Caution:
You should NOT implement the two entries manually in the FV46TNNN
include
Since this is a generated include, these entries would be lost
during the next generation (RV80HGEN).
Then you would no longer find texts from the purchase order.
Implement Note 524453 instead.
For information about the function of transaction VOFM, see also
Note 327220.
4. Error message VC 220
You receive the above error message with the text
IMPORT_LOGFILE_KEY_TOO_SHORT in the REFER_TEXT_AFTER_COMMIT function
module.
This means that an error occurred in the interface of the update
module during the local update.
To solve the problem, carry out the RSVBLOCL report for the
REFER_TEXT_AFTER_COMMIT function module.
The update module is then regenerated.
Check for a data transfer routine:
Some customers still use the workaround from Note 53593 and have defined
their own text determination routine in transaction VOFM.
As of Note 417883, this is no longer required, since the text
determination procedure from the purchase order is now supported and is
set as default.
5. Transaction ME2O - (Delivery to provision of materials for
subcontract order)
The text determination for deliveries from the provision of
materials for subcontract order is not possible in the standard
system.
- Sanjeev -
Updating text field in VF01 (header and item text)
Hi,
Consider the scenario given:
A report program in which the selection screen consists of the
invoice no for example "Fom - 1 to - 10" range .It also has the fields given below :-
1.No of package - 10
2.Header Invoice description - aaa
3.Item Invoice description - aaa
4.Insurance - aaa
5.Transformer - aaa
6.Accessories - aaa
7.LR Number - 999
8.Committed Date of Deliver - xx.xx.xxxx
9.Transporters Name - aaa
If the input value for all the above 8 fields are given in the report selection screen as above for the invoice range then it should get stored in the respective texts in the T.Code VF01 for all the invoices given.The header text and the item texts in VF01 should get updated. Suggest a solution for this scenario.
Your help will be greatly appreciated.
Thanks,
P.S.Chitra
<THREAD LOCKED. This is a question and answer forum, not a do-my-job-for-me forum. Please read the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to ask a good question.>
Edited by: Mike Pokraka on Sep 9, 2008 10:03 PMHi,
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = "What should be given here?
INSERT = SPACE
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
LINES = "What should be given here?
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Will this update the text's for the given range of invoices?
How do we relate the text to the invoices using DB table/fields/Structure/fields?
Thanks,
P.S.Chitra -
No goods receipt possible for purchase order Number and Item number.
Hello experts,
When I create a Goods Reciept with reference to Purchase Order using BAPI_GOODSMVT_CREATE, the following error message appears.
No goods receipt possible for purchase order <PO number> <line item number>.
But the GR is getting created manually using Transaction MIGO for the same PO number.
I found some blogs to check for deletion indicator and Movement type and quantity, when I searched SDN for the same Issue.
In my case
1.deletion indicator is not set for the Purchase order line items
2.And Movement type is 101
3.And gm_code is 01.
Could anyone please suggest me, what else could be the reason for this error?Here is the code what i have written.
f_gmvt_header-pstng_date = sy-datum.
f_gmvt_header-doc_date = sy-datum.
f_gmvt_header-pr_uname = sy-uname.
f_gmvt_header-ref_doc_no = p_ebeln.
f_goodsmvt_code_tmp = '01'.
* Looping the PO details.
CLEAR: gf_item,f_gmvt_item.
LOOP AT gt_item INTO gf_item.
* fill the bapi item structure details
f_gmvt_item-material = gf_item-material.
f_gmvt_item-plant = gf_sbms-werks.
f_gmvt_item-stge_loc = '0001'.
f_gmvt_item-move_type = '101'.
f_gmvt_item-po_number = p_ebeln.
f_gmvt_item-po_item = gf_item-po_item.
f_gmvt_item-entry_qnt = gf_item-quantity.
f_gmvt_item-entry_uom = 'PC'.
f_gmvt_item-entry_uom_iso = 'PCE'.
f_gmvt_item-po_pr_qnt = gf_item-quantity.
f_gmvt_item-orderpr_un = 'PC'.
f_gmvt_item-orderpr_un_iso = 'PCE'.
f_gmvt_item-no_more_gr = 'X'.
f_gmvt_item-ref_doc = p_ebeln.
f_gmvt_item-prod_date = sy-datum.
f_gmvt_item-mvt_ind = 'B'.
f_gmvt_item-move_reas = '101'.
f_gmvt_item-vendor = gf_lfm1-lifnr.
APPEND f_gmvt_item TO t_gmvt_item.
CLEAR f_gmvt_item.
ENDLOOP.
* cALL THE bapi fm FOR gr POSTING
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = f_gmvt_header
goodsmvt_code = f_goodsmvt_code_tmp
* TESTRUN = ' '
* GOODSMVT_REF_EWM =
IMPORTING
goodsmvt_headret = f_gmvt_headret
* MATERIALDOCUMENT =
* MATDOCUMENTYEAR =
TABLES
goodsmvt_item = t_gmvt_item
* GOODSMVT_SERIALNUMBER =
return = t_return
* GOODSMVT_SERV_PART_DATA =
* EXTENSIONIN =
IF sy-subrc = 0.
* For commit the changes use BAPI_TRANSACTION_COMMIT FM.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
* MOVE: f_GMVT_HEADRET-MAT_DOC TO WA_DET-MBLNR,
* f_GMVT_HEADRET-DOC_YEAR TO WA_DET-MJAHR,
* f_GMVT_HEADER-REF_DOC_NO TO WA_DET-EBELN.
* APPEND WA_DET TO IT_DET.
* CLEAR WA_DET.
ENDIF. -
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.BHi 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 -
Regarding LSMW Purchase Order header and item data
Hi Friends,
I have one requirement i.e purchase order data need to be upload through LSMW via Direct input method.
=============
pls find the belwo flat file structure
old_PO material price qty
P123 M111 10 1
P123 M222 10 1
P123 M333 20 1
===============
Normally if I upload same data into SAP, it will create three purchase orders with different SAP numbers.
I want if old_PO number is matches with the previous record all the materials should be in single transaction and single Purchase order should be created.
Can any body help how to resolve this issue. This is very urgent.
pls explain in detail. I am using LSMW. I don't have no other option.
=====
please don't post any junk amswers.
=====
Thanks in advanceHi Raghunath,
Don't think that this reply is junk one.I cannot explain you in detail but try like this.
In the fifth step of LSMW,You can find Global data definitions & Processing times.
In any of these you can just fetch the values from database with reference to flat file data like..
select PO from ...where PO = source-PO.
if sy-subrc EQ 0.
skip_transaction. Using this function you can skip this record
endif.
Award points if useful.
Thanks,
Ravee..
Maybe you are looking for
-
Additional field required in CIN Tab
Dear Experts We have a requirement, In Vendor Master CIN details, We require one additional field for capturing 'catogary of service of vendor'. Please let us know how to provide one additional field in CIN details tab in Vendor Master. The requirem
-
Yesterday I was able to take photos but around 9pm last night my rear camera stop working. I have reseted my phone and have also restored it and the camera still is not working. Also I have deleted all apps that can have access to the camera and i ha
-
I have a problem updating my Iphone4 to the latest version. When I try to update, the message comes up with You are not connected to the internet. But I am. And itunes are enabled in firewall. Plus I can go into help from itunes and connect. What
-
When I update my blog, it is immediately published on my Facebook page, but the link redirects you to the main page and not the most recent blog post. Can I change some settings to make that work? I don't want my FB friends to have to navigate first
-
Auotmate the upload of HTS xml file in GTS?
Hello Every one We receive weekly update of new HTS code files from Customs Info to upload in GTS system. Currently we go to Customs Info FTP and then download the HTS xml file and then Manually upload through transaction /SAPSLL/LLNS_UPL102. Can we