Splitting logic using LSMW
Hi gurus,
could anyone plz tell me the load logic and the splitting logic for the following scenario:
Conversion of General Ledger Balances from the various legacy systems into SAP. The balances will be loaded month for the current year only.
SAP has a Limitation of 999 line items per Document. If the conversion of the general ledger balance exceeds the 999 document line item limit, the record being loaded will need to be split into multiple documents to comply with size limitations.
The purpose of this document is to define General Ledger header and line item fields that will need to be populated.
could anyone plz tell me how 999 documents can be splitup from n number of records using LSMW.
Hi Karthik,
For handling this situtation:
1. First declare variable in global declaration wity type P
data: ws_numrec type p.
2. In the BEGIN_OF_RECORD of LSMW put this piece of code:
ws_numrec = ws_numrec + 1.
if ws_numrec GT 999.
transfer_transaction
endif.
Hope this will help you.
Regards
Krishnendu
Similar Messages
-
GraphicalMapping: Split logic using user defined function
Hi all
I am doing a mapping in which the request xml comes this way
<header> ----- occurance 1
</header>
<detail> ------- occurance 0 to unbounded
<F123ABC>1000</F123ABC> ------- occurance 0 to 1
<F456PQR>2000</F456PQR> ------- occurance 0 to 1
<G200XYZ></G200XYZ> ------- occurance 0 to 1
<G500PPP>12</G500PPP> ------- occurance 0 to 1
</detail>
<trailer>
</trailer>
Now my target structure is like this
<zheader> ----- occurance 1
</zheader>
<zdetail> ------- occurance 0 to unbounded
<record type>...............</<record type>
<Format>F</Format> ---if the tag <F123ABC> is not NULL then the data of format sortation and machine will be F,123 and ABC respectively and then whatever the between the TAG <F123ABC></F123ABC> will be fed in the *<quantity>*
<sortation>123<sortation>
<machine>ABC<machine>
<quantity>1000</quantity>
</zdetail>
<zdetail> ------- occurance 0 to unbounded
<record type>...............</<record type>
<Format>F</Format> ---if the tag <F456PQR> is not NULL then the data of format, sortation, and machine will be F,456 and PQR respectively and then whatever the between the TAG <F456PQR>2000</F456PQR> will be fed in the *<quantity>*
<sortation>456<sortation>
<machine>PQR<machine>
<quantity>2000</quantity>
</zdetail>
<ztrailer>
</ztrailer>
I tried this code in the UDF but it did not work
public void ud_splitDetail(String[] F123ABC,String[] F456PQR,String[] G200XYZ,String[] G500PPP,Detail,ResultList result,Container
//write your code here
int lenDetail=Detail.length;
for(int i=0;i<lenDetail;i++)
//int len1=A.length;
if(F123ABC<i>!=""){
result.addValue("F");
result.addContextChange();}
if(F456PQR<i>!=""){
result.addValue("F");
result.addContextChange();
if(G200XYZ<i>!=""){
result.addValue("F");
result.addContextChange();
if(G500PPP<i>!=""){
result.addValue("F");
result.addContextChange();
else
result.addValue("");
result.addContextChange();
The above code is to take F for format and the same way it is for sortation, machine and quantity
But this code is not working properly, it gives a lots of F and other values. Could anyone give me some idea of how to code for the desired output
Your help is really appreciable
Thanks
NainaSarvesh
There is one more issue....the source and target structure is like this
SOURCE
<detail> ------- occurance 0 to unbounded
<countryName>India</countryName>
<F123ABC>1000</F123ABC> ------- occurance 0 to 1
<F456PQR></F456PQR> ------- occurance 0 to 1
<G200XYZ> </G200XYZ> ------- occurance 0 to 1
<G500PPP>12</G500PPP> ------- occurance 0 to 1
</detail>
<detail> ------- occurance 0 to unbounded
<countryName>China</countryName>
<F123ABC></F123ABC> ------- occurance 0 to 1
<F456PQR>2000</F456PQR> ------- occurance 0 to 1
<G200XYZ>1</G200XYZ> ------- occurance 0 to 1
<G500PPP></G500PPP> ------- occurance 0 to 1
</detail>
TARGET
<zdetail>
<countryName>India</countryName>
<format>F</format>
<sortation>123</sortation>
</zdetail>
<zdetail>
<countryName>India</countryName>
<format>G</format>
<sortation>500</sortation>
</zdetail>
<zdetail>
<countryName>China</countryName>
<format>F</format>
<sortation>456<sortation>
</zdetail>
<zdetail>
<countryName>China</countryName>
<format>G</format>
<sortation>200</sortation>
</zdetail>
So my question is how to make multiple entries of node <countryName> because for first occurance of <detail> it will be INDIA and it will remain india till we are duplicating the first occurance of <detail>. Then it will be China for next occurance of detail till it is duplicated.
Please reply at earliest...i have to finish it today only
Thanks
Naina -
Creating Schedule lines in Scheduling agreement using LSMW
Hi,
I want to upload multiple schedule lines in scheduling agreement using LSMW. I have done the recording and maintained multiple lines in input file. However during execution LSMW creates only one line and keeps on ovewritting the same line. Please let me know how can I create multiple schedule lines.
RegardsFirst you should search for existing standard LSMW migration objects that possibly cover your scenario. These normally take care of complex header / multiple items / multiple subitems relations.
With a recording you can only load flat structures. Sometimes a "create new lines" / "enter first line" / "save transaction" logic can be constructed to load multiple items to a header (or even subitems to an item?) with a recording, but this can be pretty awkward.
Thomas -
MacPro Quad Core 32g Ram running slow Logic using only 9g in Activity Monitor
Well its taken a while, but this is my first foray into the world of forums! I'm so hacked off with this regular problem and havent been able to find anything anywhere to solve it i thought i'd see if anyone has any similiar issues and maybe even a solve to it.
So.... im an orchestrator and producer and after my mid 2008 Macbook Pro with 8g ram started freezing up i invested in this 3 years ago -
Mac Pro 2x 2.4ghz Quad Core intel Xeon and stuck in 32gb of lovely Crucial RAM and 3 seperate internal 1TB drives with one for operating system (10.6.8), one for Audio recording/saving and one for all my sample libraries.
32gb ram - should be enough i thought!
So i regularly run at least 30 VI's - Ni The giant, Spitfire Orchestral librabies (say 12 string instruments up to 0.69g per load) LASS strings, plus perc STYLUS, ABBEY road drums, Trillian basses (acoustic/electric), ominisphere etc etc. So pretty hefty sample instruments. But theyre sooo nice!!
In addition, the 32 bit server will come alive (NOT! So unstable i find) with my Waves plugs etc.
Looking at ACTIVITY MONITOR however i might be not touching 9 gig (and sometimes even less) of usage for Logic, and only say 800MB for 32 bit server and have NOTHING else open - and what do i find .....
- Mouse lag and cant really do anything with the mouse whilst playing the track - cant adjust volume - too slow, zooming problems
- Takes a good 2-3 seconds for track to stop playing
Dont get System OVERLOADS so much, its just that the system goes REALLLLLY slow.
What ive tried- - -
- Running Mountain Lion off another drive (havent had time to install it and wanted to be sure everything worked etc)
- Tried all audio prefs - large/small buffers/threads etc and yes i am on 1024.
in a nutshell how come with 32g RAM everything is so slow when barely using 10g of that???????
I dread getting to the end of a project cos i know im gonna be freezing so much, but with so much editing all the time for the orchestral parts i need everything unfrozen and working.
Sorry if this is long winded but wanted to describe what im experiencing.
Any feedback most welcome! Thankyou in advance.
Mac Pro 2x 2.4ghz Quad Core intel Xeon 32g RAM, 3TB storage
10.6.8
Logic Pro 9.1.8Hi
A few thoughts:
julian6400 wrote:
In addition, the 32 bit server will come alive (NOT! So unstable i find) with my Waves plugs etc.
The 32bit server is a pita: Waves v9 are 64bit compatible (they run fine). 32 bit VI's can be run outside Logic using Vienna Ensemble Pro (see later)
julian6400 wrote:
So i regularly run at least 30 VI's - Ni The giant, Spitfire Orchestral librabies (say 12 string instruments up to 0.69g per load) LASS strings, plus perc STYLUS, ABBEY road drums, Trillian basses (acoustic/electric), ominisphere etc etc. So pretty hefty sample instruments. But theyre sooo nice!!
Some of these VI's are extremely CPU hungry: Abbey Rd drums for example, really do hammer the CPU. What does Logic's Performance meter show in the way of CPU load. What does Activity Monitor show regarding CPU load?
With 32G of RAM, this should not be the issue, but you might have general CPU problems (see above), and you may also have Sample disk streaming limitations if all the Loibraries you mention are on the same drive. How does Activity Monitor look regarding disk access? You might find it helpful to add a second drive and split the sample libraries across 2 for faster disk access.
I presume that you have plenty of free space on the System drive?
Logic can get sluggish if the Undo info gets way too big, and also if there are loads of regions in the Arrange: check Options:Project Information.
Many are finding some benefits (me included) by running the VI's in Vienna Ensemble Pro:
Better CPU load distribution than directly in Logic
"Persistant Samples": they can remain loaded whilst you switch Logic Projects
Logic is effectively running much less itself, so generally flies.
32bit Plugs hosted separately in VEP so no 32bit Bridge issues in Logic
Something to consider,though perhaps not yet, would be setting up a Slave computer using VEP.
CCT -
Hi
Iam uploading FB01 data using LSMW.
I maintained two files, one for Header Data and one for Item Data
but only header data was written after reading
can any one give me the steps regarding this
Thanka in advance
venkatHi,
LSMW will have a Indocator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
check that single charecter field, it that is X that means the header record is processed, and do the items.
and, this is another way, try this out also
YOu can do this in "Define Source Structures" step,
the HEADER is defined first,
then the DETAIL below the HEADER.
add the fields to the structures.
Both should have some common key field
Please take care that the name of the common field is the same.
Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
Regards
Sudheer -
Problem in Customer Master Upload using LSMW
Hi,
I am using LSMW direct input method to upload customer master. I have used ZSOURCE structure as parent structure and for multilple entries like Bank details and contact details i have used other child structure like ZBANK and ZCONTACT. I am using separate flat file for Bank and contact details.
I have used one common field 'ID' as the first field both on ZSOURCE, ZBANK and ZCONTACT structure to link-up. Thus, i am able to load multiple records for Bank data. But i am unable to get contact details.
Also, value for Reconciliation account(KNB1-AKONT) and sales group(KNVV-VKGRP) is not passed to screen.
I have checked 'Generate Read Program','Read Data', 'Generate Conversion Program' and 'Convert Data' step again and again. Upto step 'Display Converted Data', data is converted successfully, but the same field values are not passed to screen.
Can you pls help me to get the value..Hi,
LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
check that single charecter field, if that is X that means the header record is processed, and do the items.
and, this is another way, try this out also
YOu can do this in "Define Source Structures" step,
the HEADER is defined first,
then the DETAIL below the HEADER.
add the fields to the structures.
Both should have some common key field
Please take care that the name of the common field is the same.
Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
Re: Table control in LSMW -
Hi Experts,
I need to a code snippet or a sample program which has the split logic functionality.
I know that in HR ABAP we have a standard functionality using PROVIDE and ENDPROVIDE which performs the split based on the records in the specific period from the infotypes.
Need the same functionality but I don't want to use PROVIDE and ENDPROVIDE.
Kindly help me in this requirement or share me your knowledge if have gone through this requirement.
Regards,
Thirumoorthy RHi,
the major advantage of PROVIDE - ENDPROVIDE ist it's greatest disadvantage as well.
The fields fencing the validity (usually BEGDA and ENDDA) for each involved table, will be set according to each resulting split-interval.
If this is, what you're trying to avoid, you'll have to do a nested loop.
Assuming you have two internal table A and B, both having BEGDA and ENDDA.
You then could do something like:
LOOP AT A into wa_a.
LOOP AT B into wa_b where begda LE wa_a-endda and endda ge wa_a-begda.
* Do something clever here
ENDLOOP.
ENDLOOP.
Note, how the intervals are built by comparing the fields overcross, thus giving you in the inner loop, all entries that are at least one day valid within the interval set by the outer loop.
Hope it helps.
Best regards - Jörg -
Batch Export Trick for Logic using Markers and XLD
I've always wanted apple to implement batch export of multiple audio files from logic using markers as delimiters. So you can mix a concert and export it in one go without having to hang around and re-start bouncing for each track.
Now you can do this (albeit in a two step process) using Logic 9.1 and the free and wonderful XLD!
Just place markers in your project and bounce as AIFF (this is the only format that seems to work with this, so you are out of luck if your bounce file is going to be larger than 2GB). I suggest placing a marker at the very beginning of the project too so you first file is not called "Timestamp_0" or some such thing. You can even name the markers with the name you want each file to have, though keep in mind files will sort alphabetically of course once they are split if you have a specific order - so maybe preface them with 01, 02, 03, etc etc.
OK - now go get XLD (the GUI version):
http://tmkk.hp.infoseek.co.jp/xld/index_e.html
download, install and run it. No window will appear at first. Open the preferences and choose your desired output format and options, directory, etc
drop the AIFF file onto XLD (I've put XLD into my Finder window toolbar for easy access). When it asks you to open the embedded cue sheet, say "OK" and your markers should appear as a list of CD tracks that you can play double click to play with a player interface and preview.
Then press "Decode" and voila! All your markers as separate audio files with the marker name, in whatever format (including the multiple formats option) you set XLD for.
You can even edit metadata at this stage (but first consider whether your output format supports it)
Some of the formats XLD can produce are
AIFF
WAV
Apple Lossless (saves some space!)
FLAC
AAC
MP3
OGG
etc etc
Personally I think this is an absolutely fantastic trick and am happy to have discovered it. Hope it helps you too.Also, if you have gaps in the original session, put a marker at the end of the previous section and call it something like "end". Then you can uncheck all the "end" 'tracks' in the cue sheet and they wont be exported in XLD.
Oh and it also seems XLD will preface your marker delimited files with their 'CD track' number. Useful to keep them in order, but they will probably want to be changed if you have gaps you took out with extra "end" markers. -
I would like to do Pricing updation using VK11 Tocde.for this can I use LSMW ..?
otherwise which one will be better for pricing updation data load?Hi
You can use BDC or LSMW or BAPI deopending on your convenience
it is the programmer choice
Final aim is right data has to be uploaded to SAP for the transactions to happen.
So depending on your easiness you use any one of the above
see the sample bdc for the VK11.
report ZSDBDCP_PRICING no standard page heading
line-size 255.
include zbdcrecx1.
*--Internal Table To hold condition records data from flat file.
Data: begin of it_pricing occurs 0,
key(4),
f1(4),
f2(4),
f3(2),
f4(18),
f5(16),
end of it_pricing.
*--Internal Table To hold condition records header .
data : begin of it_header occurs 0,
key(4),
f1(4),
f2(4),
f3(2),
end of it_header.
*--Internal Table To hold condition records details .
data : begin of it_details occurs 0,
key(4),
f4(18),
f5(16),
end of it_details.
data : v_sno(2),
v_rows type i,
v_fname(40).
start-of-selection.
refresh : it_pricing,it_header,it_details.
clear : it_pricing,it_header,it_details.
CALL FUNCTION 'UPLOAD'
EXPORTING
FILENAME = 'C:\WINDOWS\Desktop\pricing.txt'
FILETYPE = 'DAT'
TABLES
DATA_TAB = it_pricing
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7.
WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.
OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.
if sy-subrc ne 0.
write : / 'File could not be uploaded.. Check file name.'.
stop.
endif.
CLEAR : it_pricing[], it_pricing.
DO.
READ DATASET P_FNAME INTO V_STR.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
write v_str.
translate v_str using '#/'.
SPLIT V_STR AT ',' INTO it_pricing-key
it_pricing-F1 it_pricing-F2 it_pricing-F3
it_pricing-F4 it_pricing-F5 .
APPEND it_pricing.
CLEAR it_pricing.
ENDDO.
IF it_pricing[] IS INITIAL.
WRITE : / 'No data found to upload'.
STOP.
ENDIF.
loop at it_pricing.
At new key.
read table it_pricing index sy-tabix.
move-corresponding it_pricing to it_header.
append it_header.
clear it_header.
endat.
move-corresponding it_pricing to it_details.
append it_details.
clear it_details.
endloop.
perform open_group.
v_rows = sy-srows - 8.
loop at it_header.
perform bdc_dynpro using 'SAPMV13A' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RV13A-KSCHL'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RV13A-KSCHL'
it_header-f1.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_CURSOR'
'KONP-KBETR(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'KOMG-VKORG'
it_header-f2.
perform bdc_field using 'KOMG-VTWEG'
it_header-f3.
**Table Control
v_sno = 0.
loop at it_details where key eq it_header-key.
v_sno = v_sno + 1.
clear v_fname.
CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.
perform bdc_field using v_fname
it_details-f4.
clear v_fname.
CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.
perform bdc_field using v_fname
it_details-f5.
if v_sno eq v_rows.
v_sno = 0.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
endif.
endloop.
*--Save
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
perform bdc_transaction using 'VK11'.
endloop.
perform close_group.
<b>Reward points for useful Answers</b>
Regards
Anji -
Update the material quantity in the sales order using LSMW...
Hi Guru's,
I created one sales order using BAPI..now i wanted update the material quantity in the sales order using LSMW...
could you please provide the step by step process....
if anyone of you provide the program logic similar to requirement that would be helpfull to me...
thanks in advance
Srinivas....Hi Sri,
Hope it may help you.
First do the recording for VA02 transaction, in that give the existing sales order number
and update the Quantity and save it. Remaining steps are same what we used(LSMW) to upload data to applications.
Regards,
Vishvesh
if helpful, rewards it. -
Sales order Using LSMW and BAPI BUS2032
Hi Guys,
I am trying to use LSMW for creating sales order through BAPI.
Business Object BUS2032
Method CREATEFROMDAT2
Message Type SALESORDER_CREATEFROMDAT2
Basic Type SALESORDER_CREATEFROMDAT202
I can do it using a BDC program.
I want to know how the sales order flat file will look like (one header and multiple line item)if i am using LSMW with BAPI and how it is mapped for multiple line items.
Thanks in Adv.
AkhilSee if you can get something out of this.
One simple step by step example
Complete the step one (you are using the correct BAPI )
insetp 2(Maintain Source Structures) create source structures like with the header and details hierarchy
5 ZCFOF0021_HDR Header
ZCFOF0021_PARTNER Partner
ZCFOF0021_ITM Item Detail
In Step 3(Maintain Source Fields) create the fields for all source structures like below example
5 ZCFOF0021_HDR Header OLDNR C(008) Legacy JDE Sales Order Number
VKORG C(004) Sales Organization
VTWEG C(002) Distribution Channel
SPART C(002) Division
AUART C(004) Sales Document Type
VDATU C(008) Requested delivery date
BSTKD C(020) Customer purchase order number
BSARK C(004) Customer purchase order type
BSTDK C(008) Customer purchase order date
INCO1 C(003) Incoterms (part 1)
INCO2 C(028) Incoterms (part 2)
ZTERM C(004) Terms of payment key
LIFSK C(002) Delivery block (document header)
FAKSK C(002) Billing block in SD document
WAERK C(005) SD document currency
KURSK C(009) Exchange Rate for Pricing and Statistics
AUTLF C(001) Complete delivery defined for each sales order
VSBED C(002) Shipping conditions
ZOTC_PATNAME C(035) Patient Name
ZOTC_PATREFNO C(035) Patient Reference Number
ZOTC_IMPDATE C(008) Implant Date
BNAME C(030) Branching name
TAXK1 C(001) Alternative tax classification
5 ZCFOF0021_PARTNER Partner
OLDNR C(008) Legacy JDE Sales Order Number
PARVW C(002) Partner function
KUNNR C(010) Sold To
NAME1 C(035) Name 1
STRAS C(035) House number and street
STR_SUPPL1 C(040) Street 2
LAND1 C(003) Country Key
PSTLZ C(010) Postal Code
ORT01 C(035) City
REGIO C(003) Region (State, Province, County)
AUART C(004) Sales Document Type
5 ZCFOF0021_ITM Item Detail
OLDNR C(008) Legacy JDE Sales Order Number
MATNR C(018) Material Number
WERKS C(004) Plant
LGORT C(004) Storage Location
VRKME C(003) Sales unit
KSCHL2 C(004) Condition type
KBETR2C C(011) Condition rate with decimal places and minus sign
KWAER2 C(005) Currency key
WMENGC C(013) Order qty in sales units - 00009001 corresponds to 9.001
CHARG C(010) Batch Number
In Step 4 (Maintain Structure Relations) assign source structures to target strucutres like below
E1SALESORDER_CREATEFROMDAT2 Header Segment <<<< ZCFOF0021_HDR Header
E1BPSDHD1 Communication Fields: Sales and Distribution Document Header <<<< ZCFOF0021_HDR Header
E1BPSDHD1X Checkbox Fields for Sales and Distribution Document Header
E1BP_SENDER Logical System of Sender
E1BPSDLS SD Checkbox for the Logic Switch
5 E1BPSDITM Communication Fields: Sales and Distribution Document Item <<<< ZCFOF0021_ITM Item Detail
E1BPSDITM1 Communication Fields: Sales and Distribution Document Item
E1BPSDITMX Communication Fields: Sales and Distribution Document Item
E1BPPARNR Communications Fields: SD Document Partner: WWW <<<< ZCFOF0021_PARTNER Partner
E1BPSCHDL Communication Fields for Maintaining SD Doc. Schedule Lines <<<< ZCFOF0021_ITM Item Detail
E1BPSCHDLX Checkbox List for Maintaining SD Document Schedule Line
E1BPCOND Communication Fields for Maintaining Conditions in the Order <<<< ZCFOF0021_ITM Item Detail
E1BPCONDX Communication Fields for Maintaining Conditions in the Order
E1BPCUCFG CU: Configuration Data
E1BPCUINS Instances of Several Configurations
E1BPCUPRT Part_of Entries of Several Configurations
E1BPCUVAL Characteristic Values of Several Configurations
E1BPCUBLB BLOB Internal Configuration Data (SCE)
E1BPCUVK Variant Condition Keys in Configurations
E1BPCUREF CU: Reference Order Item / Instance in Configuration
E1BPCCARD Communication Table: Means of Payment Order/Billing Document
E1BPSDTEXT Communication Fields: SD Texts
E1BPSDKEY Key in Sales and Distribution Document
E1BPPAREX Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT <<<< ZCFOF0021_ITM Item Detail
5 E1BPADR1 BAPI Reference Structure for Addresses (Org./Company) <<<< ZCFOF0021_PARTNER Partner
E1BPADR11 BAPI Reference Structure for Addresses (Org./Company) <<<< ZCFOF0021_PARTNER Partner
In Step 5(Maintain Field Mapping and Conversion Rules) assign source fields to target fields
Map each filed to the target fields. -
Hi Guys Business requirement is have the fiscal year split logic
1. Fiscal year 2007 (T009b) or ODD fiscal years and not calendar 2007
2. Fiscal Yeat 2008 or Even Fiscal Year and Not Calendar 2008
I want the simple abap logic that with generate a success message in process chain for Even year and Else return Odd to go other path in process chain
Thanks
Sincerely
Soniya KapoorHi Sonia,
U can get the fiscal year by using FM:
FTI_FISCAL_YEAR_MONTH_GET or any other FM.
Then , if the fiscal year is divisible by 2, it is a even year else, odd year.give messages accordingly.
Hope it solves ur query. -
Routing Long text not populated using LSMW
I need help with the ROUTING LONG TEXT using LSMW. I'm using the standard LSMW direct input program /SAPDMC/SAP_LSMW_IMP . I'm confused with NAME field while loading the data. I have tried to create the routing long text manually after successful creation i opened the Longtext at header screen and opened GOTO--> HEADER there i have seen TEXT NAME is constructed based on CLIENT || N || GROUP || GROUPCOUNTER || INTERNAL_COUNTER (CLIENT||N||PLNTY||PLNNR||PLNAL||ZAEHL - field names) I used the same logic to construct the test data for another routings which were created and doesn't have the long text. I have run the lsmw program and executed successfully but when i open the routing in CA03 i dont see the long text populated.
Test data used looks like this:
OBJECT NAME TDID SPRAS TEXTFORM TEXTLINE
ROUTING N500000890100000001 PLKO E * THIS IS A TEST1
ROUTING N500000890100000001 PLKO E * THIS IS A TEST2
ROUTING N500000890100000001 PLKO E * THIS IS LINE3
ROUTING N500000910100000001 PLKO E * LONGTEXT1
ROUTING N500000910100000001 PLKO E * LONGTEXT2
My question here is do i need to construct the NAME as i have mentioned above or do i need to just send the Routing Group number into the file for the NAME field. Help me understand what do i need to populate into NAME field.
Please help with the mistake i have done.
Pretty much appriectiated for your replies.You asked the same question in two different forums multiple times:
Standard LSMW to load Routing Long text
Re: LSMW : Long text not visible after the import of data
Please use same one thread for one question.
I gave you most of the needed information assuming you know how to do LSMW in the first thread itself.
You need to have the following fields in your source structure in addition to other fields like long text
MANDT
PLNTY
PLNNR
PLNAL
ZAEHL
In the step Maintain Field Mapping and Conversion Rules assign the source field MANDT to the variable NAME and then again place the cursor on the variable NAME and assign variable PLNTY, (now you have two source field assigned to same variable) similarly assign all the remaining 3 source fields PLNNR, PLNAL, ZAEHL. (now you have 5 source field assigned to same variable).
Now select the variable NAME by placing the cursor click on Rule (Insert Rule) and select the radio button Concatenation .
Make sure that in your input file you have leading zeros for PLNNR PLNAL and ZAEHL etc. like below
50000089, 01, 00000001
Also, you don't need maintain the value of OBJECT, TDID, SPRAS, TEXTFORM as source fields. You can directly maintain them as constants in Maintain Field Mapping and Conversion Rules by click on the push button Rule . -
How to Delete TASK and employee retationship (B049) in HRP1001 Using LSMW .
Hi,
Please help me on below requirement.
In LSMW Transaction: PP02 is not supporting to delete the records from Table HRP1001 using task .
Input file we have below details.
Employee number
Task ID :
Relationship ( b049).
Is there any other way to delete the required records from HRP1001 using LSMW process?
Thanks & Regards,
Naresh Chava.Hi Naresh,
I am not sure about the possibility of delete the records.If you are able to do in standard transaction then you can do the same with lsmw.Create a recording method to delete the records and this delete it.
Regards,
Madhu. -
Upload of purchase order details using LSMW
Hi friends,
I encountered a problem while uploading purchase order details using LSMW . in the field mapping I could not able to fine the field TCODE. as a result I could not assign the transaction code ME21. could you please suggest me a solution.
thanksHai
Check with the following
Select fifth Radio button then follow the bellow step
<b>5) select radio-Button 5 and execute
Maintain Field Mapping and Conversion Rules
Select the Tcode and click on Rule button there you will select constant
and press continue button
give Transaction Code : ME21 and press Enter</b>
Thanks & regards
Sreenivasulu P
Maybe you are looking for
-
How do I unlink my Apple ID from another persons I tunes account? I keep getting their security questions and one of my emails can't be used. It keeps telling me I its linked to another account but it shouldn't anymore. Plus my security questions bel
-
I'm running OSX mavericks. when I open reminders app, there is no window, nothing. if I uncheck reminders in the system preferences (icloud), it comes back, but blank. If I put in a reminder then (keeping reminders open) re-check the reminders box
-
in subcontarcting scenario i have one issue issue 1: Materials (both excisable and non excisable) are supplied to subcontracting vendor. At this time in 57Fc challan only excisable items are maintained. But in sap while creating the sub contracting c
-
Hello, I am trying to upload an html email campaign i created onto Godaddy email campaign marketing. But it's not coming up completely. It gave me an error that it has CSS script, the only thing I did was use a jpeg and create a Hotspot over it to
-
How to find songs not in playlists?
Hello everyone, I deleted some songs in the playlists but they werent deleted from the music library How can i identify those songs and remove them? thanks Tibor